From 40b9c9fd237b5f568760b7d78577f4077690422a Mon Sep 17 00:00:00 2001 From: jiasudu Date: Tue, 28 May 2019 16:30:13 +0800 Subject: [PATCH] Bug type DLS_DEAD_LOCAL_STORE (click for details) In class com.zzjee.BI.BiCostController In method com.zzjee.BI.BiCostController.dayCountmonth(HttpServletRequest, String, HttpServletResponse) Local variable named hc At BiCostController.java:[line 104] --- .../service/impl/JeecgDemoServiceImpl.java | 16 ++-- .../java/com/zzjee/BI/BiBinController.java | 62 +++++++------- src/main/java/com/zzjee/BI/BiController.java | 51 ++++++------ .../java/com/zzjee/BI/BiCostController.java | 46 +++++------ .../com/zzjee/BI/BiCustomerController.java | 46 +++++------ .../java/com/zzjee/BI/BiStaffController.java | 46 +++++------ .../java/com/zzjee/api/wmomController.java | 82 +++++++++---------- .../ba/controller/BaCostConfController.java | 63 ++++++-------- .../bm/controller/WvDayCostSumController.java | 2 +- 9 files changed, 198 insertions(+), 216 deletions(-) diff --git a/src/main/java/com/jeecg/demo/service/impl/JeecgDemoServiceImpl.java b/src/main/java/com/jeecg/demo/service/impl/JeecgDemoServiceImpl.java index 890d2450..06fd3395 100644 --- a/src/main/java/com/jeecg/demo/service/impl/JeecgDemoServiceImpl.java +++ b/src/main/java/com/jeecg/demo/service/impl/JeecgDemoServiceImpl.java @@ -1,19 +1,19 @@ package com.jeecg.demo.service.impl; -import com.jeecg.demo.service.JeecgDemoServiceI; -import org.jeecgframework.core.common.service.impl.CommonServiceImpl; -import com.jeecg.demo.entity.JeecgDemoEntity; - -import org.springframework.dao.support.DaoSupport; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; +import java.io.Serializable; import java.util.HashMap; import java.util.Map; import java.util.UUID; -import java.io.Serializable; + +import org.jeecgframework.core.common.service.impl.CommonServiceImpl; import org.jeecgframework.core.util.ApplicationContextUtil; import org.jeecgframework.core.util.MyClassLoader; import org.jeecgframework.core.util.StringUtil; import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import com.jeecg.demo.entity.JeecgDemoEntity; +import com.jeecg.demo.service.JeecgDemoServiceI; @Service("jeecgDemoService") @Transactional diff --git a/src/main/java/com/zzjee/BI/BiBinController.java b/src/main/java/com/zzjee/BI/BiBinController.java index de295688..1bc4976a 100644 --- a/src/main/java/com/zzjee/BI/BiBinController.java +++ b/src/main/java/com/zzjee/BI/BiBinController.java @@ -1,6 +1,14 @@ package com.zzjee.BI; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + import org.jeecgframework.core.common.controller.BaseController; import org.jeecgframework.core.common.model.json.Highchart; import org.jeecgframework.web.system.service.SystemService; @@ -10,21 +18,13 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.validation.Validator; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - @Controller @RequestMapping("/BiBinController") public class BiBinController extends BaseController { @Autowired private SystemService systemService; - @Autowired - private Validator validator; +// @Autowired +// private Validator validator; @RequestMapping(params = "homebi") public ModelAndView bi(HttpServletRequest request) { String num1= "0"; @@ -120,7 +120,7 @@ public class BiBinController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); +// hc = new Highchart(); hc.setName("近七日下架数量"); hc.setType(reportType); Map map; @@ -132,12 +132,12 @@ public class BiBinController extends BaseController { Map obj = object; map.put("name", obj.get("create_date").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -180,7 +180,7 @@ public class BiBinController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); +// hc = new Highchart(); hc.setName("上架数量前6"); hc.setType(reportType); Map map; @@ -192,12 +192,12 @@ public class BiBinController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -239,7 +239,7 @@ public class BiBinController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("下架数量前6"); hc.setType(reportType); Map map; @@ -251,12 +251,12 @@ public class BiBinController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; diff --git a/src/main/java/com/zzjee/BI/BiController.java b/src/main/java/com/zzjee/BI/BiController.java index 386ea330..eda74b85 100644 --- a/src/main/java/com/zzjee/BI/BiController.java +++ b/src/main/java/com/zzjee/BI/BiController.java @@ -1,9 +1,16 @@ package com.zzjee.BI; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + import org.jeecgframework.core.common.controller.BaseController; import org.jeecgframework.core.common.model.json.Highchart; -import org.jeecgframework.core.util.DateUtils; import org.jeecgframework.web.system.service.SystemService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -11,21 +18,13 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.validation.Validator; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - @Controller @RequestMapping("/BiController") public class BiController extends BaseController { @Autowired private SystemService systemService; - @Autowired - private Validator validator; +// @Autowired +// private Validator validator; @RequestMapping(params = "homebi") public ModelAndView bi(HttpServletRequest request) { String num1= "0"; @@ -133,7 +132,7 @@ public class BiController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("近七日下架数量"); hc.setType(reportType); Map map; @@ -193,7 +192,7 @@ public class BiController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("上架数量前6"); hc.setType(reportType); Map map; @@ -205,12 +204,12 @@ public class BiController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -252,7 +251,7 @@ public class BiController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("下架数量前6"); hc.setType(reportType); Map map; @@ -264,12 +263,12 @@ public class BiController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; diff --git a/src/main/java/com/zzjee/BI/BiCostController.java b/src/main/java/com/zzjee/BI/BiCostController.java index 32ef8eb6..8c503798 100644 --- a/src/main/java/com/zzjee/BI/BiCostController.java +++ b/src/main/java/com/zzjee/BI/BiCostController.java @@ -23,8 +23,8 @@ import java.util.Map; public class BiCostController extends BaseController { @Autowired private SystemService systemService; - @Autowired - private Validator validator; +// @Autowired +// private Validator validator; @RequestMapping(params = "homebi") public ModelAndView bi(HttpServletRequest request) { String num1= "0"; @@ -120,7 +120,7 @@ public class BiCostController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("近七日下架数量"); hc.setType(reportType); Map map; @@ -132,12 +132,12 @@ public class BiCostController extends BaseController { Map obj = object; map.put("name", obj.get("create_date").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -180,7 +180,7 @@ public class BiCostController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("上架数量前6"); hc.setType(reportType); Map map; @@ -192,12 +192,12 @@ public class BiCostController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -239,7 +239,7 @@ public class BiCostController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("下架数量前6"); hc.setType(reportType); Map map; @@ -251,12 +251,12 @@ public class BiCostController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; diff --git a/src/main/java/com/zzjee/BI/BiCustomerController.java b/src/main/java/com/zzjee/BI/BiCustomerController.java index e888358f..8ebcd1c4 100644 --- a/src/main/java/com/zzjee/BI/BiCustomerController.java +++ b/src/main/java/com/zzjee/BI/BiCustomerController.java @@ -23,8 +23,8 @@ import java.util.Map; public class BiCustomerController extends BaseController { @Autowired private SystemService systemService; - @Autowired - private Validator validator; +// @Autowired +// private Validator validator; @RequestMapping(params = "homebi") public ModelAndView bi(HttpServletRequest request) { String num1= "0"; @@ -120,7 +120,7 @@ public class BiCustomerController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("近七日下架数量"); hc.setType(reportType); Map map; @@ -132,12 +132,12 @@ public class BiCustomerController extends BaseController { Map obj = object; map.put("name", obj.get("create_date").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -180,7 +180,7 @@ public class BiCustomerController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); +// hc = new Highchart(); hc.setName("上架数量前6"); hc.setType(reportType); Map map; @@ -192,12 +192,12 @@ public class BiCustomerController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -239,7 +239,7 @@ public class BiCustomerController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); +// hc = new Highchart(); hc.setName("下架数量前6"); hc.setType(reportType); Map map; @@ -251,12 +251,12 @@ public class BiCustomerController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; diff --git a/src/main/java/com/zzjee/BI/BiStaffController.java b/src/main/java/com/zzjee/BI/BiStaffController.java index 467acf46..962b430b 100644 --- a/src/main/java/com/zzjee/BI/BiStaffController.java +++ b/src/main/java/com/zzjee/BI/BiStaffController.java @@ -23,8 +23,8 @@ import java.util.Map; public class BiStaffController extends BaseController { @Autowired private SystemService systemService; - @Autowired - private Validator validator; +// @Autowired +// private Validator validator; @RequestMapping(params = "homebi") public ModelAndView bi(HttpServletRequest request) { String num1= "0"; @@ -120,7 +120,7 @@ public class BiStaffController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + //hc = new Highchart(); hc.setName("近七日下架数量"); hc.setType(reportType); Map map; @@ -132,12 +132,12 @@ public class BiStaffController extends BaseController { Map obj = object; map.put("name", obj.get("create_date").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -180,7 +180,7 @@ public class BiStaffController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); + // hc = new Highchart(); hc.setName("上架数量前6"); hc.setType(reportType); Map map; @@ -192,12 +192,12 @@ public class BiStaffController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; @@ -239,7 +239,7 @@ public class BiStaffController extends BaseController { // List> mapcount=systemService.findForJdbc(sbconut.toString()); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); List lt = new ArrayList(); - hc = new Highchart(); +// hc = new Highchart(); hc.setName("下架数量前6"); hc.setType(reportType); Map map; @@ -251,12 +251,12 @@ public class BiStaffController extends BaseController { Map obj = object; map.put("name", obj.get("goodsid").toString()); map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); - Double groupCount = 0.00; - try{ - groupCount = Double.parseDouble(obj.get("amount").toString()); - }catch (Exception e){ - - } +// Double groupCount = 0.00; +// try{ +// groupCount = Double.parseDouble(obj.get("amount").toString()); +// }catch (Exception e){ +// +// } // Double percentage = 0.0; // if (count != null && count.intValue() != 0) { // percentage = new Double(groupCount)/count; diff --git a/src/main/java/com/zzjee/api/wmomController.java b/src/main/java/com/zzjee/api/wmomController.java index d2adb47d..a1543e34 100644 --- a/src/main/java/com/zzjee/api/wmomController.java +++ b/src/main/java/com/zzjee/api/wmomController.java @@ -1,48 +1,45 @@ package com.zzjee.api; -import com.alibaba.fastjson.JSONArray; -import com.zzjee.conf.entity.FxjOtherLoginEntity; -import com.zzjee.conf.entity.WxConfigEntity; +import static com.xiaoleilu.hutool.date.DateTime.now; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.log4j.Logger; +import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; +import org.jeecgframework.core.util.ExceptionUtil; +import org.jeecgframework.core.util.MyBeanUtils; +import org.jeecgframework.core.util.StringUtil; +import org.jeecgframework.jwt.util.ResponseMessage; +import org.jeecgframework.jwt.util.Result; +import org.jeecgframework.web.system.pojo.base.TSNotice; +import org.jeecgframework.web.system.pojo.base.TSUser; +import org.jeecgframework.web.system.service.SystemService; +import org.jeecgframework.web.system.sms.util.Constants; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.MediaType; +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.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + import com.zzjee.wm.entity.WmNoticeConfEntity; import com.zzjee.wm.entity.WmOmNoticeHEntity; import com.zzjee.wm.entity.WmOmNoticeIEntity; import com.zzjee.wm.entity.WmToDownGoodsEntity; import com.zzjee.wm.page.WmOmNoticeHPage; import com.zzjee.wmutil.wmUtil; + import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; -import org.apache.commons.lang3.StringUtils; -import org.apache.log4j.Logger; -import org.jeecgframework.core.beanvalidator.BeanValidators; -import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; -import org.jeecgframework.core.constant.Globals; -import org.jeecgframework.core.util.MyBeanUtils; -import org.jeecgframework.core.util.ResourceUtil; -import org.jeecgframework.core.util.StringUtil; -import org.jeecgframework.jwt.util.ResponseMessage; -import org.jeecgframework.jwt.util.Result; -import org.jeecgframework.web.system.pojo.base.TSFunction; -import org.jeecgframework.web.system.pojo.base.TSNotice; -import org.jeecgframework.web.system.pojo.base.TSUser; -import org.jeecgframework.web.system.service.SystemService; -import org.jeecgframework.web.system.service.UserService; -import org.jeecgframework.web.system.sms.util.Constants; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.util.Assert; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletRequest; -import javax.validation.ConstraintViolation; -import java.io.*; -import java.text.SimpleDateFormat; -import java.util.*; - -import static com.xiaoleilu.hutool.date.DateTime.now; /** * 获取和删除token的请求地址, @@ -55,8 +52,8 @@ import static com.xiaoleilu.hutool.date.DateTime.now; @RequestMapping("/wmom") public class wmomController { private static final Logger logger = Logger.getLogger(wmomController.class); - @Autowired - private UserService userService; +// @Autowired +// private UserService userService; @Autowired SystemService systemService; @@ -81,7 +78,7 @@ public class wmomController { if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){ query.like("delvAddr","%"+request.getParameter("delvAddr")+"%"); } - String orgcode = ""; +// String orgcode = ""; TSUser task = wmUtil.getsysorgcode(username); if (task != null) { query.like("reCarno", "%" + task.getUserName() + "%"); @@ -121,7 +118,7 @@ public class wmomController { if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){ query.like("delvAddr","%"+request.getParameter("delvAddr")+"%"); } - String orgcode = ""; +// String orgcode = ""; TSUser task = wmUtil.getsysorgcode(username); if (task != null) { query.like("reCarno", "%" + task.getUserName() + "%"); @@ -150,14 +147,14 @@ public class wmomController { task = systemService.get(WmOmNoticeHEntity.class, id); } catch (Exception e) { - + logger.error(ExceptionUtil.getExceptionMessage(e)); } if (task == null) { try { task = systemService.findUniqueByProperty(WmOmNoticeHEntity.class, "omNoticeId", id); } catch (Exception e) { - + logger.error(ExceptionUtil.getExceptionMessage(e)); } if (task == null) { return Result.error("根据ID获取订单信息为空"); @@ -172,6 +169,7 @@ public class wmomController { page.setWmOmNoticeIList(WmOmNoticeIEntityList); } catch (Exception e) { e.printStackTrace(); + } return Result.success(page); } @@ -210,7 +208,7 @@ public class wmomController { List list = new ArrayList<>(); TSUser task = wmUtil.getsysorgcode(username); List> resultList2 = null; - String orgcode = ""; +// String orgcode = ""; Integer isRead = null; if (task != null) { try { @@ -226,7 +224,7 @@ public class wmomController { List> noticeList = systemService.findForJdbcParam(sql, 1, 10, task.getId(), isRead.intValue()); //将List转换成JSON存储 - net.sf.json.JSONArray result = new net.sf.json.JSONArray(); +// net.sf.json.JSONArray result = new net.sf.json.JSONArray(); if (noticeList != null && noticeList.size() > 0) { for (int i = 0; i < noticeList.size(); i++) { TSNotice tsNotice = new TSNotice(); diff --git a/src/main/java/com/zzjee/ba/controller/BaCostConfController.java b/src/main/java/com/zzjee/ba/controller/BaCostConfController.java index 208f98f4..988e0d83 100644 --- a/src/main/java/com/zzjee/ba/controller/BaCostConfController.java +++ b/src/main/java/com/zzjee/ba/controller/BaCostConfController.java @@ -1,70 +1,55 @@ package com.zzjee.ba.controller; -import com.zzjee.ba.entity.BaCostConfEntity; -import com.zzjee.ba.service.BaCostConfServiceI; +import java.io.IOException; +import java.net.URI; import java.util.ArrayList; import java.util.List; -import java.text.SimpleDateFormat; +import java.util.Map; +import java.util.Set; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import javax.validation.ConstraintViolation; +import javax.validation.Validator; import org.apache.log4j.Logger; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.servlet.ModelAndView; - +import org.jeecgframework.core.beanvalidator.BeanValidators; 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.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.ExceptionUtil; 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.core.util.ResourceUtil; +import org.jeecgframework.core.util.StringUtil; 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.jeecgframework.tag.core.easyui.TagUtil; +import org.jeecgframework.web.system.service.SystemService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; 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 java.net.URI; -import org.springframework.http.MediaType; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; import org.springframework.web.util.UriComponentsBuilder; +import com.zzjee.ba.entity.BaCostConfEntity; +import com.zzjee.ba.service.BaCostConfServiceI; + /** * @Title: Controller * @Description: 计费配置 diff --git a/src/main/java/com/zzjee/bm/controller/WvDayCostSumController.java b/src/main/java/com/zzjee/bm/controller/WvDayCostSumController.java index 9852604a..a4500798 100644 --- a/src/main/java/com/zzjee/bm/controller/WvDayCostSumController.java +++ b/src/main/java/com/zzjee/bm/controller/WvDayCostSumController.java @@ -404,7 +404,7 @@ public class WvDayCostSumController extends BaseController { try { file.getInputStream().close(); } catch (IOException e) { - e.printStackTrace(); + logger.error(ExceptionUtil.getExceptionMessage(e)); } } }