增加期间报表
parent
03d84a90bc
commit
5feb2287fd
File diff suppressed because one or more lines are too long
|
@ -114,7 +114,6 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
public void datagrid(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
public void datagrid(RpPeriodInOutEntity rpPeriodInOut,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||||
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
||||||
//查询条件组装器
|
//查询条件组装器
|
||||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
|
||||||
try{
|
try{
|
||||||
//自定义追加查询条件
|
//自定义追加查询条件
|
||||||
String query_datePeriod_begin = request.getParameter("datePeriod_begin");
|
String query_datePeriod_begin = request.getParameter("datePeriod_begin");
|
||||||
|
@ -129,12 +128,15 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
wmUtil.genrp(query_datePeriod_begin,query_datePeriod_end,ResourceUtil.getSessionUserName().getUserName());
|
wmUtil.genrp(query_datePeriod_begin,query_datePeriod_end,ResourceUtil.getSessionUserName().getUserName());
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
}
|
}
|
||||||
if(StringUtil.isNotEmpty(query_datePeriod_begin)){
|
// if(StringUtil.isNotEmpty(query_datePeriod_begin)){
|
||||||
cq.ge("datePeriod", Integer.parseInt(query_datePeriod_begin));
|
// cq.ge("datePeriod", Integer.parseInt(query_datePeriod_begin));
|
||||||
}
|
// }
|
||||||
if(StringUtil.isNotEmpty(query_datePeriod_end)){
|
// if(StringUtil.isNotEmpty(query_datePeriod_end)){
|
||||||
cq.le("datePeriod", Integer.parseInt(query_datePeriod_end));
|
// cq.le("datePeriod", Integer.parseInt(query_datePeriod_end));
|
||||||
}
|
// }
|
||||||
|
rpPeriodInOut.setDatePeriod(null);
|
||||||
|
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
||||||
|
|
||||||
cq.eq("username",ResourceUtil.getSessionUserName().getUserName());
|
cq.eq("username",ResourceUtil.getSessionUserName().getUserName());
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
throw new BusinessException(e.getMessage());
|
throw new BusinessException(e.getMessage());
|
||||||
|
@ -157,18 +159,19 @@ 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("datePeriod_begin");
|
String query_datePeriod_begin = request.getParameter("datePeriod_begin");
|
||||||
// String query_datePeriod_end = request.getParameter("datePeriod_end");
|
String query_datePeriod_end = request.getParameter("datePeriod_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";
|
||||||
// }
|
}
|
||||||
// if(!StringUtil.isNotEmpty(query_datePeriod_end)){
|
if(!StringUtil.isNotEmpty(query_datePeriod_end)){
|
||||||
// query_datePeriod_end = "2099-01-01";
|
query_datePeriod_end = "2099-01-01";
|
||||||
// }
|
}
|
||||||
// wmUtil.genrp(query_datePeriod_begin,query_datePeriod_end,ResourceUtil.getSessionUserName().getUserName());
|
wmUtil.genrp(query_datePeriod_begin,query_datePeriod_end,ResourceUtil.getSessionUserName().getUserName());
|
||||||
// }catch (Exception e){
|
}catch (Exception e){
|
||||||
// }
|
}
|
||||||
|
rpPeriodInOut.setDatePeriod(null);
|
||||||
rpPeriodInOut.setUsername(ResourceUtil.getSessionUserName().getUserName());
|
rpPeriodInOut.setUsername(ResourceUtil.getSessionUserName().getUserName());
|
||||||
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
CriteriaQuery cq = new CriteriaQuery(RpPeriodInOutEntity.class, dataGrid);
|
||||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#mysql
|
#mysql
|
||||||
diver_name=com.mysql.jdbc.Driver
|
diver_name=com.mysql.jdbc.Driver
|
||||||
url=jdbc:mysql://localhost:3306/zzjee?useUnicode=true&characterEncoding=UTF-8
|
url=jdbc:mysql://localhost:3306/wms?useUnicode=true&characterEncoding=UTF-8
|
||||||
username=root
|
username=root
|
||||||
password=Zzerp123
|
password=Zzerp123
|
||||||
database_name=zzjee
|
database_name=wms
|
||||||
|
|
||||||
#oracle
|
#oracle
|
||||||
#diver_name=oracle.jdbc.driver.OracleDriver
|
#diver_name=oracle.jdbc.driver.OracleDriver
|
||||||
|
|
Loading…
Reference in New Issue