效期预警导出
parent
4e58967fba
commit
0ca4a7107a
|
@ -112,12 +112,14 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(params = "datagrid")
|
@RequestMapping(params = "datagrid")
|
||||||
public void datagrid(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
public void datagrid(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||||
|
rpPeriodInOut.setCreateDate(null);
|
||||||
|
|
||||||
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
||||||
//查询条件组装器
|
//查询条件组装器
|
||||||
try{
|
try{
|
||||||
//自定义追加查询条件
|
//自定义追加查询条件
|
||||||
String query_datePeriod_begin = request.getParameter("createDate_begin");
|
String query_datePeriod_begin = request.getParameter("createDate1_begin");
|
||||||
String query_datePeriod_end = request.getParameter("createDate_end");
|
String query_datePeriod_end = request.getParameter("createDate1_end");
|
||||||
try{
|
try{
|
||||||
if(!StringUtil.isNotEmpty(query_datePeriod_begin)){
|
if(!StringUtil.isNotEmpty(query_datePeriod_begin)){
|
||||||
query_datePeriod_begin = "2018-01-01";
|
query_datePeriod_begin = "2018-01-01";
|
||||||
|
@ -159,8 +161,8 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
public String exportXls(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request,HttpServletResponse response
|
public String exportXls(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request,HttpServletResponse response
|
||||||
, DataGrid dataGrid,ModelMap modelMap) {
|
, DataGrid dataGrid,ModelMap modelMap) {
|
||||||
//自定义追加查询条件
|
//自定义追加查询条件
|
||||||
String query_datePeriod_begin = request.getParameter("createDate_begin");
|
String query_datePeriod_begin = request.getParameter("createDate1_begin");
|
||||||
String query_datePeriod_end = request.getParameter("createDate_end");
|
String query_datePeriod_end = request.getParameter("createDate1_end");
|
||||||
try{
|
try{
|
||||||
if(!StringUtil.isNotEmpty(query_datePeriod_begin)){
|
if(!StringUtil.isNotEmpty(query_datePeriod_begin)){
|
||||||
query_datePeriod_begin = "2018-01-01";
|
query_datePeriod_begin = "2018-01-01";
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
<t:dgCol title="期间选择" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="期间选择" field="createDate1" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
|
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
|
||||||
|
@ -35,7 +35,6 @@
|
||||||
</t:datagrid>
|
</t:datagrid>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src = "webpage/com/zzjee/bireport/rpPeriodInOutList.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue