代码优化
parent
4e14482d14
commit
558e0916d6
|
@ -1,78 +1,36 @@
|
||||||
package com.zzjee.bireport.controller;
|
package com.zzjee.bireport.controller;
|
||||||
|
|
||||||
import com.zzjee.bireport.entity.RpPeriodInOutEntity;
|
import com.zzjee.bireport.entity.RpPeriodInOutEntity;
|
||||||
import com.zzjee.bireport.service.RpPeriodInOutServiceI;
|
import com.zzjee.bireport.service.RpPeriodInOutServiceI;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import com.zzjee.wmutil.wmUtil;
|
import com.zzjee.wmutil.wmUtil;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
import org.jeecgframework.core.common.controller.BaseController;
|
||||||
|
import org.jeecgframework.core.common.exception.BusinessException;
|
||||||
|
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
||||||
|
import org.jeecgframework.core.common.model.json.DataGrid;
|
||||||
|
import org.jeecgframework.core.util.ResourceUtil;
|
||||||
|
import org.jeecgframework.core.util.StringUtil;
|
||||||
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||||
|
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
||||||
|
import org.jeecgframework.tag.core.easyui.TagUtil;
|
||||||
|
import org.jeecgframework.web.system.service.SystemService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
import org.jeecgframework.core.common.controller.BaseController;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import org.jeecgframework.core.common.exception.BusinessException;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
|
||||||
import org.jeecgframework.core.common.model.common.TreeChildCount;
|
|
||||||
import org.jeecgframework.core.common.model.json.AjaxJson;
|
|
||||||
import org.jeecgframework.core.common.model.json.DataGrid;
|
|
||||||
import org.jeecgframework.core.constant.Globals;
|
|
||||||
import org.jeecgframework.core.util.StringUtil;
|
|
||||||
import org.jeecgframework.tag.core.easyui.TagUtil;
|
|
||||||
import org.jeecgframework.web.system.pojo.base.TSDepart;
|
|
||||||
import org.jeecgframework.web.system.service.SystemService;
|
|
||||||
import org.jeecgframework.core.util.MyBeanUtils;
|
|
||||||
|
|
||||||
import java.io.OutputStream;
|
|
||||||
import org.jeecgframework.core.util.BrowserUtils;
|
|
||||||
import org.jeecgframework.poi.excel.ExcelExportUtil;
|
|
||||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
||||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
||||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
||||||
import org.jeecgframework.poi.excel.entity.TemplateExportParams;
|
|
||||||
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
|
||||||
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
||||||
import org.jeecgframework.core.util.ResourceUtil;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import org.jeecgframework.core.util.ExceptionUtil;
|
|
||||||
|
|
||||||
import org.springframework.http.ResponseEntity;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
||||||
import org.springframework.http.HttpHeaders;
|
|
||||||
import org.springframework.http.HttpStatus;
|
|
||||||
import org.jeecgframework.core.beanvalidator.BeanValidators;
|
|
||||||
import java.util.Set;
|
|
||||||
import javax.validation.ConstraintViolation;
|
|
||||||
import javax.validation.Validator;
|
import javax.validation.Validator;
|
||||||
import java.net.URI;
|
import java.util.List;
|
||||||
import org.springframework.http.MediaType;
|
|
||||||
import org.springframework.web.util.UriComponentsBuilder;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @author onlineGenerator
|
||||||
|
* @version V1.0
|
||||||
* @Title: Controller
|
* @Title: Controller
|
||||||
* @Description: 期间出货统计
|
* @Description: 期间出货统计
|
||||||
* @author onlineGenerator
|
|
||||||
* @date 2019-01-17 12:55:46
|
* @date 2019-01-17 12:55:46
|
||||||
* @version V1.0
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/rpPeriodInOutController")
|
@RequestMapping("/rpPeriodInOutController")
|
||||||
|
@ -90,7 +48,6 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
private Validator validator;
|
private Validator validator;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 期间出货统计列表 页面跳转
|
* 期间出货统计列表 页面跳转
|
||||||
*
|
*
|
||||||
|
@ -130,12 +87,6 @@ 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)){
|
|
||||||
// cq.ge("datePeriod", Integer.parseInt(query_datePeriod_begin));
|
|
||||||
// }
|
|
||||||
// if(StringUtil.isNotEmpty(query_datePeriod_end)){
|
|
||||||
// cq.le("datePeriod", Integer.parseInt(query_datePeriod_end));
|
|
||||||
// }
|
|
||||||
rpPeriodInOut.setCreateDate(null);
|
rpPeriodInOut.setCreateDate(null);
|
||||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, rpPeriodInOut, request.getParameterMap());
|
||||||
|
|
||||||
|
@ -149,8 +100,6 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出excel
|
* 导出excel
|
||||||
*
|
*
|
||||||
|
@ -188,8 +137,4 @@ public class RpPeriodInOutController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue