kangwei: material_info 待审核只显示审核中的数据,取消驳回的数据
正在显示
5 个修改的文件
包含
15 行增加
和
7 行删除
... | @@ -50,7 +50,6 @@ public class AlarmParamStandardConfigController { | ... | @@ -50,7 +50,6 @@ public class AlarmParamStandardConfigController { |
50 | public Result<AlarmParamStandardConfig> addAlarmParamStandardInfo(@RequestBody AlarmParamStandardConfig alarmParamStandardConfig){ | 50 | public Result<AlarmParamStandardConfig> addAlarmParamStandardInfo(@RequestBody AlarmParamStandardConfig alarmParamStandardConfig){ |
51 | 51 | ||
52 | Result<AlarmParamStandardConfig> result = new Result<>(); | 52 | Result<AlarmParamStandardConfig> result = new Result<>(); |
53 | |||
54 | try{ | 53 | try{ |
55 | //设置isDelete的字段1,表示为有效数据 | 54 | //设置isDelete的字段1,表示为有效数据 |
56 | alarmParamStandardConfig.setDelFlag(1); | 55 | alarmParamStandardConfig.setDelFlag(1); |
... | @@ -209,4 +208,4 @@ public class AlarmParamStandardConfigController { | ... | @@ -209,4 +208,4 @@ public class AlarmParamStandardConfigController { |
209 | 208 | ||
210 | } | 209 | } |
211 | 210 | ||
212 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
211 | } | ... | ... |
... | @@ -31,7 +31,7 @@ public class ErpReportController { | ... | @@ -31,7 +31,7 @@ public class ErpReportController { |
31 | @AutoLog(value = "赋能中心-药剂统购分销") | 31 | @AutoLog(value = "赋能中心-药剂统购分销") |
32 | @ApiOperation(value="赋能中心-药剂统购分销", notes="赋能中心-药剂统购分销") | 32 | @ApiOperation(value="赋能中心-药剂统购分销", notes="赋能中心-药剂统购分销") |
33 | @GetMapping(value = "/agentiaStatistics") | 33 | @GetMapping(value = "/agentiaStatistics") |
34 | public Result<List<AgentiaStatisticsVO>> agentiaStatistics() { | 34 | public Result<List<AgentiaStatisticsVO>> agentiaStatistics(String year) { |
35 | Result<List<AgentiaStatisticsVO>> result = new Result<List<AgentiaStatisticsVO>>(); | 35 | Result<List<AgentiaStatisticsVO>> result = new Result<List<AgentiaStatisticsVO>>(); |
36 | 36 | ||
37 | String sql ="select d.depart_name , mi.material_num ,sm.supp_name 'supplier_name' ,aaa.* from ("; | 37 | String sql ="select d.depart_name , mi.material_num ,sm.supp_name 'supplier_name' ,aaa.* from ("; | ... | ... |
... | @@ -117,7 +117,7 @@ public class MaterialInfoController { | ... | @@ -117,7 +117,7 @@ public class MaterialInfoController { |
117 | queryWrapper.eq("rules_type",materialInfo.getRulesType()); | 117 | queryWrapper.eq("rules_type",materialInfo.getRulesType()); |
118 | } | 118 | } |
119 | if(StringUtils.isNotEmpty(materialInfo.getLawsType())){ | 119 | if(StringUtils.isNotEmpty(materialInfo.getLawsType())){ |
120 | queryWrapper.eq("laws_type",materialInfo.getLawsType()); | 120 | queryWrapper.like("laws_type",materialInfo.getLawsType()); |
121 | } | 121 | } |
122 | if(StringUtils.isNotEmpty(materialInfo.getStandardsType())){ | 122 | if(StringUtils.isNotEmpty(materialInfo.getStandardsType())){ |
123 | queryWrapper.eq("standards_type",materialInfo.getStandardsType()); | 123 | queryWrapper.eq("standards_type",materialInfo.getStandardsType()); |
... | @@ -138,7 +138,9 @@ public class MaterialInfoController { | ... | @@ -138,7 +138,9 @@ public class MaterialInfoController { |
138 | Result<IPage<MaterialInfo>> result = new Result<IPage<MaterialInfo>>(); | 138 | Result<IPage<MaterialInfo>> result = new Result<IPage<MaterialInfo>>(); |
139 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); | 139 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); |
140 | QueryWrapper<MaterialInfo> queryWrapper = getMaterialInfoQueryWrapper(materialInfo); | 140 | QueryWrapper<MaterialInfo> queryWrapper = getMaterialInfoQueryWrapper(materialInfo); |
141 | queryWrapper.in("status","'1','2'"); | 141 | //queryWrapper.in("status","'1','2'"); |
142 | queryWrapper.eq("status","1"); | ||
143 | //queryWrapper.le("status","2"); | ||
142 | IPage<MaterialInfo> pageList = materialInfoService.page(page, queryWrapper); | 144 | IPage<MaterialInfo> pageList = materialInfoService.page(page, queryWrapper); |
143 | result.setSuccess(true); | 145 | result.setSuccess(true); |
144 | result.setResult(pageList); | 146 | result.setResult(pageList); |
... | @@ -187,7 +189,7 @@ public class MaterialInfoController { | ... | @@ -187,7 +189,7 @@ public class MaterialInfoController { |
187 | queryWrapper.eq("rules_type",materialInfo.getRulesType()); | 189 | queryWrapper.eq("rules_type",materialInfo.getRulesType()); |
188 | } | 190 | } |
189 | if(StringUtils.isNotEmpty(materialInfo.getLawsType())){ | 191 | if(StringUtils.isNotEmpty(materialInfo.getLawsType())){ |
190 | queryWrapper.eq("laws_type",materialInfo.getLawsType()); | 192 | queryWrapper.like("laws_type",materialInfo.getLawsType()); |
191 | } | 193 | } |
192 | if(StringUtils.isNotEmpty(materialInfo.getStandardsType())){ | 194 | if(StringUtils.isNotEmpty(materialInfo.getStandardsType())){ |
193 | queryWrapper.eq("standards_type",materialInfo.getStandardsType()); | 195 | queryWrapper.eq("standards_type",materialInfo.getStandardsType()); |
... | @@ -216,6 +218,11 @@ public class MaterialInfoController { | ... | @@ -216,6 +218,11 @@ public class MaterialInfoController { |
216 | //materialInfo.setDepartId(materialInfoService.queryFacByUserId(userCode)); | 218 | //materialInfo.setDepartId(materialInfoService.queryFacByUserId(userCode)); |
217 | materialInfo.setDepartId(BaseContextHandler.getRealDepartId()); | 219 | materialInfo.setDepartId(BaseContextHandler.getRealDepartId()); |
218 | } | 220 | } |
221 | materialInfo.setUserId( BaseContextHandler.getUserId() ); | ||
222 | if(StringUtils.isEmpty(materialInfo.getStatus())){ | ||
223 | materialInfo.setStatus("0"); | ||
224 | } | ||
225 | |||
219 | materialInfoService.save(materialInfo); | 226 | materialInfoService.save(materialInfo); |
220 | result.success("添加成功!"); | 227 | result.success("添加成功!"); |
221 | } catch (Exception e) { | 228 | } catch (Exception e) { | ... | ... |
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/xml/WaterAnalysisNewMapper.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | <mapper namespace="com.skua.modules.dataAnalysis.mapper.WaterAnalysisNewMapper"> | 3 | <mapper namespace="com.skua.modules.dataAnalysis.mapper.WaterAnalysisNewMapper"> |
4 | <!-- 根据出水标准查询达标率--> | ||
4 | <select id="queryFacListBySummary" resultType="java.util.Map"> | 5 | <select id="queryFacListBySummary" resultType="java.util.Map"> |
5 | SELECT | 6 | SELECT |
6 | sd.depart_name factoryName, | 7 | sd.depart_name factoryName, |
... | @@ -18,7 +19,7 @@ | ... | @@ -18,7 +19,7 @@ |
18 | LEFT JOIN ( | 19 | LEFT JOIN ( |
19 | SELECT | 20 | SELECT |
20 | t.factory_id, | 21 | t.factory_id, |
21 | 100- round( count( 1 ) / #{dayCount} * 100, 2 ) count | 22 | 100 - round( count( 1 ) / #{dayCount} * 100, 2 ) count |
22 | FROM | 23 | FROM |
23 | ( | 24 | ( |
24 | SELECT | 25 | SELECT | ... | ... |
... | @@ -301,6 +301,7 @@ public class WaterAnalysisNewServiceImpl implements WaterAnalysisNewService { | ... | @@ -301,6 +301,7 @@ public class WaterAnalysisNewServiceImpl implements WaterAnalysisNewService { |
301 | } | 301 | } |
302 | return csbzCharData; | 302 | return csbzCharData; |
303 | } | 303 | } |
304 | //根据出水标准查询达标率 | ||
304 | @Override | 305 | @Override |
305 | public List<Map<String, Object>> queryFacListBySummary(String time) { | 306 | public List<Map<String, Object>> queryFacListBySummary(String time) { |
306 | String departIds = BaseContextHandler.getDeparts(); | 307 | String departIds = BaseContextHandler.getDeparts(); | ... | ... |
-
请 注册 或 登录 后发表评论