f1ad7e99 康伟

Merge remote-tracking branch 'origin/master'

2 个父辈 36e0ce87 82687c6c
...@@ -79,6 +79,28 @@ public class DocumentManageController { ...@@ -79,6 +79,28 @@ public class DocumentManageController {
79 return result; 79 return result;
80 } 80 }
81 81
82 /**
83 * 分页列表查询
84 * @param documentManageVO
85 * @param pageNo
86 * @param pageSize
87 * @return
88 */
89 @AutoLog(value = "智慧图书馆-分页列表查询")
90 @ApiOperation(value="智慧图书馆-分页列表查询", notes="智慧图书馆-分页列表查询")
91 @GetMapping(value = "/educationList")
92 public Result<IPage<DocumentManageVO>> queryPageEducationdataList(DocumentManageVO documentManageVO,
93 @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
94 @RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
95 documentManageVO.setDocuType("education");
96 Result<IPage<DocumentManageVO>> result = new Result<IPage<DocumentManageVO>>();
97 Page<DocumentManageVO> pageList = new Page<DocumentManageVO>(pageNo,pageSize);
98 pageList = documentManageService.queryCustomPageList(pageList,documentManageVO);//自定义查询
99 result.setSuccess(true);
100 result.setResult(pageList);
101 return result;
102 }
103
82 @AutoLog(value = "智慧图书馆-分页列表查询") 104 @AutoLog(value = "智慧图书馆-分页列表查询")
83 @ApiOperation(value="智慧图书馆-分页列表查询", notes="智慧图书馆-分页列表查询") 105 @ApiOperation(value="智慧图书馆-分页列表查询", notes="智慧图书馆-分页列表查询")
84 @GetMapping(value = "/contractList") 106 @GetMapping(value = "/contractList")
......
...@@ -62,5 +62,11 @@ ...@@ -62,5 +62,11 @@
62 <if test="materialInfo.rulesType!=null and materialInfo.rulesType!=''"> 62 <if test="materialInfo.rulesType!=null and materialInfo.rulesType!=''">
63 and rules_type like CONCAT(CONCAT('%', #{materialInfo.rulesType}),'%') 63 and rules_type like CONCAT(CONCAT('%', #{materialInfo.rulesType}),'%')
64 </if> 64 </if>
65 <if test="materialInfo.lawsType!=null and materialInfo.lawsType!=''">
66 and laws_type like CONCAT(CONCAT('%', #{materialInfo.lawsType}),'%')
67 </if>
68 <if test="materialInfo.standardsType!=null and materialInfo.standardsType!=''">
69 and standards_type like CONCAT(CONCAT('%', #{materialInfo.standardsType}),'%')
70 </if>
65 </select> 71 </select>
66 </mapper> 72 </mapper>
......
...@@ -33,23 +33,47 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat ...@@ -33,23 +33,47 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
33 String dictCode = "rules_type";//标准规范:bzgf 法律法规:flfg 公司制度章程:gzzd 33 String dictCode = "rules_type";//标准规范:bzgf 法律法规:flfg 公司制度章程:gzzd
34 if("gzzd".equals(facInfo.getFacInformationtype())){ 34 if("gzzd".equals(facInfo.getFacInformationtype())){
35 dictCode = "rules_type"; 35 dictCode = "rules_type";
36 List<Map<String, Object>> typeList = baseMapper.getAnalysis(dictCode);
37 for (Map<String, Object> map : typeList) {
38 String type = map.get("id").toString();
39 int count = 0;
40 for(MaterialInfo materialInfo: list){
41 if(materialInfo.getRulesType().contains(type)){
42 count++;
43 }
44 }
45 map.put("count",count);
46 tList.add(map);
47 }
36 }else if("bzgf".equals(facInfo.getFacInformationtype())){ 48 }else if("bzgf".equals(facInfo.getFacInformationtype())){
37 dictCode = "standards_type"; 49 dictCode = "standards_type";
50 List<Map<String, Object>> typeList = baseMapper.getAnalysis(dictCode);
51 for (Map<String, Object> map : typeList) {
52 String type = map.get("id").toString();
53 int count = 0;
54 for(MaterialInfo materialInfo: list){
55 if(materialInfo.getStandardsType().contains(type)){
56 count++;
57 }
58 }
59 map.put("count",count);
60 tList.add(map);
61 }
38 }else if("flfg".equals(facInfo.getFacInformationtype())){ 62 }else if("flfg".equals(facInfo.getFacInformationtype())){
39 dictCode = "laws_type"; 63 dictCode = "laws_type";
40 }
41 List<Map<String, Object>> typeList = baseMapper.getAnalysis(dictCode); 64 List<Map<String, Object>> typeList = baseMapper.getAnalysis(dictCode);
42 for (Map<String, Object> map : typeList) { 65 for (Map<String, Object> map : typeList) {
43 String type = map.get("id").toString(); 66 String type = map.get("id").toString();
44 int count = 0; 67 int count = 0;
45 for(MaterialInfo materialInfo: list){ 68 for(MaterialInfo materialInfo: list){
46 if(materialInfo.getRulesType().contains(type)){ 69 if(materialInfo.getLawsType().contains(type)){
47 count++; 70 count++;
48 } 71 }
49 } 72 }
50 map.put("count",count); 73 map.put("count",count);
51 tList.add(map); 74 tList.add(map);
52 } 75 }
76 }
53 return tList; 77 return tList;
54 } 78 }
55 79
......
...@@ -154,8 +154,8 @@ public class ReportDataController { ...@@ -154,8 +154,8 @@ public class ReportDataController {
154 return Result.ok(valueMap); 154 return Result.ok(valueMap);
155 } 155 }
156 156
157 @AutoLog(value = "运营周报展示") 157 @AutoLog(value = "运营周报word展示")
158 @ApiOperation(value = "运营周报展示", notes = "运营周报展示") 158 @ApiOperation(value = "运营周报word展示", notes = "运营周报word展示")
159 @GetMapping(value = "/reportWeekShow") 159 @GetMapping(value = "/reportWeekShow")
160 public Result<Map<String,Object>> reportWeekShow(HttpServletRequest req) { 160 public Result<Map<String,Object>> reportWeekShow(HttpServletRequest req) {
161 Result<Map<String,Object>> result = new Result<>(); 161 Result<Map<String,Object>> result = new Result<>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!