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
parent
f1c3dbc6ec
commit
40b9c9fd23
|
@ -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
|
||||
|
|
|
@ -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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -132,12 +132,12 @@ public class BiBinController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -192,12 +192,12 @@ public class BiBinController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -251,12 +251,12 @@ public class BiBinController extends BaseController {
|
|||
Map<String,Object> 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;
|
||||
|
|
|
@ -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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -193,7 +192,7 @@ public class BiController extends BaseController {
|
|||
// List<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -205,12 +204,12 @@ public class BiController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -264,12 +263,12 @@ public class BiController extends BaseController {
|
|||
Map<String,Object> 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;
|
||||
|
|
|
@ -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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -132,12 +132,12 @@ public class BiCostController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -192,12 +192,12 @@ public class BiCostController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -251,12 +251,12 @@ public class BiCostController extends BaseController {
|
|||
Map<String,Object> 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;
|
||||
|
|
|
@ -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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -132,12 +132,12 @@ public class BiCustomerController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -192,12 +192,12 @@ public class BiCustomerController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -251,12 +251,12 @@ public class BiCustomerController extends BaseController {
|
|||
Map<String,Object> 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;
|
||||
|
|
|
@ -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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -132,12 +132,12 @@ public class BiStaffController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -192,12 +192,12 @@ public class BiStaffController extends BaseController {
|
|||
Map<String,Object> 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<Map<String,Object>> 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<String, Object> map;
|
||||
|
@ -251,12 +251,12 @@ public class BiStaffController extends BaseController {
|
|||
Map<String,Object> 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;
|
||||
|
|
|
@ -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<TSNotice> list = new ArrayList<>();
|
||||
TSUser task = wmUtil.getsysorgcode(username);
|
||||
List<Map<String, Object>> resultList2 = null;
|
||||
String orgcode = "";
|
||||
// String orgcode = "";
|
||||
Integer isRead = null;
|
||||
if (task != null) {
|
||||
try {
|
||||
|
@ -226,7 +224,7 @@ public class wmomController {
|
|||
List<Map<String, Object>> 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();
|
||||
|
|
|
@ -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: 计费配置
|
||||
|
|
|
@ -404,7 +404,7 @@ public class WvDayCostSumController extends BaseController {
|
|||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
logger.error(ExceptionUtil.getExceptionMessage(e));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue