|
@@ -9,21 +9,20 @@ import org.apache.commons.beanutils.PropertyUtils;
|
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.aspect.annotation.PermissionData;
|
|
import org.jeecg.common.aspect.annotation.PermissionData;
|
|
|
|
|
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
|
|
+import org.jeecg.modules.smscheck.entity.SmsCheckTask;
|
|
|
import org.jeecg.modules.smscheck.entity.SmsStatisticsCheckVo;
|
|
import org.jeecg.modules.smscheck.entity.SmsStatisticsCheckVo;
|
|
|
import org.jeecg.modules.smscheck.service.SmsCheckStatisticsService;
|
|
import org.jeecg.modules.smscheck.service.SmsCheckStatisticsService;
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -74,12 +73,14 @@ public class SmsCheckStatisticsController extends JeecgController<SmsStatisticsC
|
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
+ String taskState = request.getParameterMap().get("taskState")==null?"": Arrays.toString(request.getParameterMap().get("taskState")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
|
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
|
smsStatisticsCheckVo.setType(taskType);
|
|
smsStatisticsCheckVo.setType(taskType);
|
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
|
|
|
+ smsStatisticsCheckVo.setTaskState(taskState);
|
|
|
Map<String, Object> stringObjectMap = smsCheckStatisticsService.smsCheckStatisticsList(smsStatisticsCheckVo, page,startDate,endDate,infoId);
|
|
Map<String, Object> stringObjectMap = smsCheckStatisticsService.smsCheckStatisticsList(smsStatisticsCheckVo, page,startDate,endDate,infoId);
|
|
|
return Result.OK(stringObjectMap);
|
|
return Result.OK(stringObjectMap);
|
|
|
}
|
|
}
|
|
@@ -101,12 +102,13 @@ public class SmsCheckStatisticsController extends JeecgController<SmsStatisticsC
|
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
+ String taskState = request.getParameterMap().get("taskState")==null?"": Arrays.toString(request.getParameterMap().get("taskState")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
|
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
|
-
|
|
|
|
|
|
|
+ smsStatisticsCheckVo.setTaskState(taskState);
|
|
|
Map<String, Object> stringObjectMap = smsCheckStatisticsService.statisticsCountListByType(taskType, startDate, endDate,infoId,smsStatisticsCheckVo);
|
|
Map<String, Object> stringObjectMap = smsCheckStatisticsService.statisticsCountListByType(taskType, startDate, endDate,infoId,smsStatisticsCheckVo);
|
|
|
|
|
|
|
|
return Result.OK(stringObjectMap);
|
|
return Result.OK(stringObjectMap);
|
|
@@ -129,12 +131,14 @@ public class SmsCheckStatisticsController extends JeecgController<SmsStatisticsC
|
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerNo = request.getParameterMap().get("customerNo")==null?"": Arrays.toString(request.getParameterMap().get("customerNo")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String customerName = request.getParameterMap().get("customerName")==null?"": Arrays.toString(request.getParameterMap().get("customerName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
String taskName = request.getParameterMap().get("taskName")==null?"": Arrays.toString(request.getParameterMap().get("taskName")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
+ String taskState = request.getParameterMap().get("taskState")==null?"": Arrays.toString(request.getParameterMap().get("taskState")).replace("[", "").replace("]", "").replace("*", "");
|
|
|
|
|
|
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
SmsStatisticsCheckVo smsStatisticsCheckVo=new SmsStatisticsCheckVo();
|
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
smsStatisticsCheckVo.setCustomerName(customerName);
|
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
smsStatisticsCheckVo.setCustomerNo(customerNo);
|
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
smsStatisticsCheckVo.setTaskName(taskName);
|
|
|
smsStatisticsCheckVo.setType(taskType);
|
|
smsStatisticsCheckVo.setType(taskType);
|
|
|
|
|
+ smsStatisticsCheckVo.setTaskState(taskState);
|
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
|
|
|
|
long totalNum = (long) smsCheckStatisticsService.statisticsCountListByType(null,endDate,startDate,infoId,smsStatisticsCheckVo).get("totalNum");
|
|
long totalNum = (long) smsCheckStatisticsService.statisticsCountListByType(null,endDate,startDate,infoId,smsStatisticsCheckVo).get("totalNum");
|
|
@@ -175,17 +179,37 @@ public class SmsCheckStatisticsController extends JeecgController<SmsStatisticsC
|
|
|
return mv;
|
|
return mv;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 批量删除
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param ids 主键
|
|
|
|
|
+ * @return 结果
|
|
|
|
|
+ */
|
|
|
|
|
+ @AutoLog(value = "稽核统计-批量删除")
|
|
|
|
|
+ @ApiOperation(value = "稽核统计-批量删除", notes = "稽核统计-批量删除")
|
|
|
|
|
+ @DeleteMapping(value = "/deleteBatch")
|
|
|
|
|
+ public Result<String> deleteBatch(@RequestParam(name = "ids") String ids) {
|
|
|
|
|
+ this.smsCheckStatisticsService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
|
|
+ return Result.OK("批量删除成功!");
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
- * 获取对象ID
|
|
|
|
|
|
|
+ * 通过id查询
|
|
|
*
|
|
*
|
|
|
- * @return
|
|
|
|
|
|
|
+ * @param id 主键
|
|
|
|
|
+ * @return 数据
|
|
|
*/
|
|
*/
|
|
|
- private String getId(T item) {
|
|
|
|
|
- try {
|
|
|
|
|
- return PropertyUtils.getProperty(item, "id").toString();
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ //@AutoLog(value = "稽核统计-通过id查询")
|
|
|
|
|
+ @ApiOperation(value = "物联网稽核记录-通过id查询", notes = "物联网稽核记录-通过id查询")
|
|
|
|
|
+ @GetMapping(value = "/queryById")
|
|
|
|
|
+ public Result< List<Map<String,Object>>> queryById(@RequestParam(name = "id") String id) {
|
|
|
|
|
+ List<Map<String,Object>> byId = smsCheckStatisticsService.statisticsWorkLogById(id);
|
|
|
|
|
+
|
|
|
|
|
+ if (byId == null) {
|
|
|
|
|
+ return Result.error("未找到对应数据");
|
|
|
}
|
|
}
|
|
|
|
|
+ return Result.OK(byId);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|