|
|
@@ -381,6 +381,10 @@ public class ChecklistController extends BladeController {
|
|
|
row.put("checkDate", DateUtil.format(one.getCheckDate(), pattern));
|
|
|
}
|
|
|
|
|
|
+ if ("day".equals(dataType)){
|
|
|
+ row.put("needCheckDate", theDay);
|
|
|
+ }
|
|
|
+
|
|
|
row.put("checked", checkedCount);
|
|
|
row.put("nocheck", nocheckCount);
|
|
|
row.put("over", dlistOver.size());
|
|
|
@@ -392,6 +396,38 @@ public class ChecklistController extends BladeController {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping("/getList")
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperation(value = "分页", notes = "传入checklist")
|
|
|
+ public R getList(ChecklistVO checklist) {
|
|
|
+ if (StringUtils.isNotBlank(checklist.getType())){
|
|
|
+ List<String> units = Func.toStrList(checklist.getType());
|
|
|
+ checklist.setTypes(units);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(checklist.getItem())){
|
|
|
+ List<String> contents = Func.toStrList(checklist.getItem());
|
|
|
+ checklist.setItems(contents);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(checklist.getOrgNostr())){
|
|
|
+ List<String> orgNos = Func.toStrList(checklist.getOrgNostr());
|
|
|
+ checklist.setOrgNos(orgNos);
|
|
|
+ }
|
|
|
+ List<Checklist> list = checklistService.getList(checklist);
|
|
|
+
|
|
|
+ list.forEach(item -> {
|
|
|
+ String type = item.getType();
|
|
|
+ String item1 = item.getItem();
|
|
|
+ String check_category = dictService.getValue("check_category", type);
|
|
|
+ String check_item = dictService.getValue("check_item", item1);
|
|
|
+ item.setType(check_category);
|
|
|
+ item.setItem(check_item);
|
|
|
+ });
|
|
|
+
|
|
|
+ return R.data(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取传入时间的第二天
|
|
|
* @param today
|