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]
master
jiasudu 2019-05-28 16:30:13 +08:00
parent f1c3dbc6ec
commit 40b9c9fd23
9 changed files with 198 additions and 216 deletions

View File

@ -1,19 +1,19 @@
package com.jeecg.demo.service.impl; package com.jeecg.demo.service.impl;
import com.jeecg.demo.service.JeecgDemoServiceI; import java.io.Serializable;
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.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.UUID; 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.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader; import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil; import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter; 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") @Service("jeecgDemoService")
@Transactional @Transactional

View File

@ -1,6 +1,14 @@
package com.zzjee.BI; 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.controller.BaseController;
import org.jeecgframework.core.common.model.json.Highchart; import org.jeecgframework.core.common.model.json.Highchart;
import org.jeecgframework.web.system.service.SystemService; 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.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; 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 @Controller
@RequestMapping("/BiBinController") @RequestMapping("/BiBinController")
public class BiBinController extends BaseController { public class BiBinController extends BaseController {
@Autowired @Autowired
private SystemService systemService; private SystemService systemService;
@Autowired // @Autowired
private Validator validator; // private Validator validator;
@RequestMapping(params = "homebi") @RequestMapping(params = "homebi")
public ModelAndView bi(HttpServletRequest request) { public ModelAndView bi(HttpServletRequest request) {
String num1= "0"; String num1= "0";
@ -120,7 +120,7 @@ public class BiBinController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("近七日下架数量"); hc.setName("近七日下架数量");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -132,12 +132,12 @@ public class BiBinController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("create_date").toString()); map.put("name", obj.get("create_date").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -180,7 +180,7 @@ public class BiBinController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("上架数量前6"); hc.setName("上架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -192,12 +192,12 @@ public class BiBinController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -239,7 +239,7 @@ public class BiBinController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("下架数量前6"); hc.setName("下架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -251,12 +251,12 @@ public class BiBinController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;

View File

@ -1,9 +1,16 @@
package com.zzjee.BI; 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.controller.BaseController;
import org.jeecgframework.core.common.model.json.Highchart; import org.jeecgframework.core.common.model.json.Highchart;
import org.jeecgframework.core.util.DateUtils;
import org.jeecgframework.web.system.service.SystemService; 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;
@ -11,21 +18,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; 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 @Controller
@RequestMapping("/BiController") @RequestMapping("/BiController")
public class BiController extends BaseController { public class BiController extends BaseController {
@Autowired @Autowired
private SystemService systemService; private SystemService systemService;
@Autowired // @Autowired
private Validator validator; // private Validator validator;
@RequestMapping(params = "homebi") @RequestMapping(params = "homebi")
public ModelAndView bi(HttpServletRequest request) { public ModelAndView bi(HttpServletRequest request) {
String num1= "0"; String num1= "0";
@ -133,7 +132,7 @@ public class BiController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("近七日下架数量"); hc.setName("近七日下架数量");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -193,7 +192,7 @@ public class BiController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("上架数量前6"); hc.setName("上架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -205,12 +204,12 @@ public class BiController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -252,7 +251,7 @@ public class BiController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("下架数量前6"); hc.setName("下架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -264,12 +263,12 @@ public class BiController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;

View File

@ -23,8 +23,8 @@ import java.util.Map;
public class BiCostController extends BaseController { public class BiCostController extends BaseController {
@Autowired @Autowired
private SystemService systemService; private SystemService systemService;
@Autowired // @Autowired
private Validator validator; // private Validator validator;
@RequestMapping(params = "homebi") @RequestMapping(params = "homebi")
public ModelAndView bi(HttpServletRequest request) { public ModelAndView bi(HttpServletRequest request) {
String num1= "0"; String num1= "0";
@ -120,7 +120,7 @@ public class BiCostController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("近七日下架数量"); hc.setName("近七日下架数量");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -132,12 +132,12 @@ public class BiCostController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("create_date").toString()); map.put("name", obj.get("create_date").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -180,7 +180,7 @@ public class BiCostController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("上架数量前6"); hc.setName("上架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -192,12 +192,12 @@ public class BiCostController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -239,7 +239,7 @@ public class BiCostController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("下架数量前6"); hc.setName("下架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -251,12 +251,12 @@ public class BiCostController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;

View File

@ -23,8 +23,8 @@ import java.util.Map;
public class BiCustomerController extends BaseController { public class BiCustomerController extends BaseController {
@Autowired @Autowired
private SystemService systemService; private SystemService systemService;
@Autowired // @Autowired
private Validator validator; // private Validator validator;
@RequestMapping(params = "homebi") @RequestMapping(params = "homebi")
public ModelAndView bi(HttpServletRequest request) { public ModelAndView bi(HttpServletRequest request) {
String num1= "0"; String num1= "0";
@ -120,7 +120,7 @@ public class BiCustomerController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("近七日下架数量"); hc.setName("近七日下架数量");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -132,12 +132,12 @@ public class BiCustomerController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("create_date").toString()); map.put("name", obj.get("create_date").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -180,7 +180,7 @@ public class BiCustomerController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("上架数量前6"); hc.setName("上架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -192,12 +192,12 @@ public class BiCustomerController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -239,7 +239,7 @@ public class BiCustomerController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("下架数量前6"); hc.setName("下架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -251,12 +251,12 @@ public class BiCustomerController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;

View File

@ -23,8 +23,8 @@ import java.util.Map;
public class BiStaffController extends BaseController { public class BiStaffController extends BaseController {
@Autowired @Autowired
private SystemService systemService; private SystemService systemService;
@Autowired // @Autowired
private Validator validator; // private Validator validator;
@RequestMapping(params = "homebi") @RequestMapping(params = "homebi")
public ModelAndView bi(HttpServletRequest request) { public ModelAndView bi(HttpServletRequest request) {
String num1= "0"; String num1= "0";
@ -120,7 +120,7 @@ public class BiStaffController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); //hc = new Highchart();
hc.setName("近七日下架数量"); hc.setName("近七日下架数量");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -132,12 +132,12 @@ public class BiStaffController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("create_date").toString()); map.put("name", obj.get("create_date").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -180,7 +180,7 @@ public class BiStaffController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("上架数量前6"); hc.setName("上架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -192,12 +192,12 @@ public class BiStaffController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;
@ -239,7 +239,7 @@ public class BiStaffController extends BaseController {
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString()); // List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1"); // Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
List lt = new ArrayList(); List lt = new ArrayList();
hc = new Highchart(); // hc = new Highchart();
hc.setName("下架数量前6"); hc.setName("下架数量前6");
hc.setType(reportType); hc.setType(reportType);
Map<String, Object> map; Map<String, Object> map;
@ -251,12 +251,12 @@ public class BiStaffController extends BaseController {
Map<String,Object> obj = object; Map<String,Object> obj = object;
map.put("name", obj.get("goodsid").toString()); map.put("name", obj.get("goodsid").toString());
map.put("y", (int) Double.parseDouble(obj.get("amount").toString())); map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
Double groupCount = 0.00; // Double groupCount = 0.00;
try{ // try{
groupCount = Double.parseDouble(obj.get("amount").toString()); // groupCount = Double.parseDouble(obj.get("amount").toString());
}catch (Exception e){ // }catch (Exception e){
//
} // }
// Double percentage = 0.0; // Double percentage = 0.0;
// if (count != null && count.intValue() != 0) { // if (count != null && count.intValue() != 0) {
// percentage = new Double(groupCount)/count; // percentage = new Double(groupCount)/count;

View File

@ -1,48 +1,45 @@
package com.zzjee.api; package com.zzjee.api;
import com.alibaba.fastjson.JSONArray; import static com.xiaoleilu.hutool.date.DateTime.now;
import com.zzjee.conf.entity.FxjOtherLoginEntity;
import com.zzjee.conf.entity.WxConfigEntity; 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.WmNoticeConfEntity;
import com.zzjee.wm.entity.WmOmNoticeHEntity; import com.zzjee.wm.entity.WmOmNoticeHEntity;
import com.zzjee.wm.entity.WmOmNoticeIEntity; import com.zzjee.wm.entity.WmOmNoticeIEntity;
import com.zzjee.wm.entity.WmToDownGoodsEntity; import com.zzjee.wm.entity.WmToDownGoodsEntity;
import com.zzjee.wm.page.WmOmNoticeHPage; import com.zzjee.wm.page.WmOmNoticeHPage;
import com.zzjee.wmutil.wmUtil; import com.zzjee.wmutil.wmUtil;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; 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 * token
@ -55,8 +52,8 @@ import static com.xiaoleilu.hutool.date.DateTime.now;
@RequestMapping("/wmom") @RequestMapping("/wmom")
public class wmomController { public class wmomController {
private static final Logger logger = Logger.getLogger(wmomController.class); private static final Logger logger = Logger.getLogger(wmomController.class);
@Autowired // @Autowired
private UserService userService; // private UserService userService;
@Autowired @Autowired
SystemService systemService; SystemService systemService;
@ -81,7 +78,7 @@ public class wmomController {
if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){ if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){
query.like("delvAddr","%"+request.getParameter("delvAddr")+"%"); query.like("delvAddr","%"+request.getParameter("delvAddr")+"%");
} }
String orgcode = ""; // String orgcode = "";
TSUser task = wmUtil.getsysorgcode(username); TSUser task = wmUtil.getsysorgcode(username);
if (task != null) { if (task != null) {
query.like("reCarno", "%" + task.getUserName() + "%"); query.like("reCarno", "%" + task.getUserName() + "%");
@ -121,7 +118,7 @@ public class wmomController {
if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){ if(StringUtil.isNotEmpty(request.getParameter("delvAddr"))){
query.like("delvAddr","%"+request.getParameter("delvAddr")+"%"); query.like("delvAddr","%"+request.getParameter("delvAddr")+"%");
} }
String orgcode = ""; // String orgcode = "";
TSUser task = wmUtil.getsysorgcode(username); TSUser task = wmUtil.getsysorgcode(username);
if (task != null) { if (task != null) {
query.like("reCarno", "%" + task.getUserName() + "%"); query.like("reCarno", "%" + task.getUserName() + "%");
@ -150,14 +147,14 @@ public class wmomController {
task = systemService.get(WmOmNoticeHEntity.class, id); task = systemService.get(WmOmNoticeHEntity.class, id);
} catch (Exception e) { } catch (Exception e) {
logger.error(ExceptionUtil.getExceptionMessage(e));
} }
if (task == null) { if (task == null) {
try { try {
task = systemService.findUniqueByProperty(WmOmNoticeHEntity.class, "omNoticeId", id); task = systemService.findUniqueByProperty(WmOmNoticeHEntity.class, "omNoticeId", id);
} catch (Exception e) { } catch (Exception e) {
logger.error(ExceptionUtil.getExceptionMessage(e));
} }
if (task == null) { if (task == null) {
return Result.error("根据ID获取订单信息为空"); return Result.error("根据ID获取订单信息为空");
@ -172,6 +169,7 @@ public class wmomController {
page.setWmOmNoticeIList(WmOmNoticeIEntityList); page.setWmOmNoticeIList(WmOmNoticeIEntityList);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
return Result.success(page); return Result.success(page);
} }
@ -210,7 +208,7 @@ public class wmomController {
List<TSNotice> list = new ArrayList<>(); List<TSNotice> list = new ArrayList<>();
TSUser task = wmUtil.getsysorgcode(username); TSUser task = wmUtil.getsysorgcode(username);
List<Map<String, Object>> resultList2 = null; List<Map<String, Object>> resultList2 = null;
String orgcode = ""; // String orgcode = "";
Integer isRead = null; Integer isRead = null;
if (task != null) { if (task != null) {
try { try {
@ -226,7 +224,7 @@ public class wmomController {
List<Map<String, Object>> noticeList = systemService.findForJdbcParam(sql, 1, 10, task.getId(), isRead.intValue()); List<Map<String, Object>> noticeList = systemService.findForJdbcParam(sql, 1, 10, task.getId(), isRead.intValue());
//将List转换成JSON存储 //将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) { if (noticeList != null && noticeList.size() > 0) {
for (int i = 0; i < noticeList.size(); i++) { for (int i = 0; i < noticeList.size(); i++) {
TSNotice tsNotice = new TSNotice(); TSNotice tsNotice = new TSNotice();

View File

@ -1,70 +1,55 @@
package com.zzjee.ba.controller; package com.zzjee.ba.controller;
import com.zzjee.ba.entity.BaCostConfEntity; import java.io.IOException;
import com.zzjee.ba.service.BaCostConfServiceI; import java.net.URI;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.jeecgframework.core.beanvalidator.BeanValidators;
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.common.controller.BaseController; import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.core.common.exception.BusinessException; import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; 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.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid; import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals; import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil; import org.jeecgframework.core.util.ExceptionUtil;
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 org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.OutputStream; import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.entity.ExportParams; import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams; 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.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants; import org.jeecgframework.tag.core.easyui.TagUtil;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.ResourceUtil; import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException; import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.http.HttpStatus;
import org.springframework.web.multipart.MultipartFile; import org.springframework.http.MediaType;
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.http.ResponseEntity;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders; import org.springframework.web.multipart.MultipartFile;
import org.springframework.http.HttpStatus; import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.jeecgframework.core.beanvalidator.BeanValidators; import org.springframework.web.servlet.ModelAndView;
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.util.UriComponentsBuilder; import org.springframework.web.util.UriComponentsBuilder;
import com.zzjee.ba.entity.BaCostConfEntity;
import com.zzjee.ba.service.BaCostConfServiceI;
/** /**
* @Title: Controller * @Title: Controller
* @Description: * @Description:

View File

@ -404,7 +404,7 @@ public class WvDayCostSumController extends BaseController {
try { try {
file.getInputStream().close(); file.getInputStream().close();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); logger.error(ExceptionUtil.getExceptionMessage(e));
} }
} }
} }