kangwei: 完善接口
正在显示
5 个修改的文件
包含
12 行增加
和
10 行删除
... | @@ -14,6 +14,7 @@ import com.skua.core.util.DateUtils; | ... | @@ -14,6 +14,7 @@ import com.skua.core.util.DateUtils; |
14 | import com.skua.modules.common.service.ICommonSqlService; | 14 | import com.skua.modules.common.service.ICommonSqlService; |
15 | import com.skua.modules.erp.entity.ErpSettlement; | 15 | import com.skua.modules.erp.entity.ErpSettlement; |
16 | import com.skua.modules.erp.entity.ErpSettlementItem; | 16 | import com.skua.modules.erp.entity.ErpSettlementItem; |
17 | import com.skua.modules.erp.entity.MaterialIN; | ||
17 | import com.skua.modules.erp.service.IErpSettlementService; | 18 | import com.skua.modules.erp.service.IErpSettlementService; |
18 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 19 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
19 | import com.baomidou.mybatisplus.core.metadata.IPage; | 20 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | @@ -255,13 +256,13 @@ public class ErpSettlementController { | ... | @@ -255,13 +256,13 @@ public class ErpSettlementController { |
255 | 256 | ||
256 | @AutoLog(value = "药剂结算单详情-审批") | 257 | @AutoLog(value = "药剂结算单详情-审批") |
257 | @ApiOperation(value="药剂结算单详情-审批", notes="药剂结算单详情-审批") | 258 | @ApiOperation(value="药剂结算单详情-审批", notes="药剂结算单详情-审批") |
258 | @GetMapping(value = "/audit") | 259 | @PutMapping(value = "/audit") |
259 | public Result<?> audit(@RequestParam(name="id",required=true) String id,Integer auditStatus ,String approveMessage ) { | 260 | public Result<?> audit(@RequestBody ApprovalRecordVO approvalRecordVO ) { |
260 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); | 261 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); |
261 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); | 262 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(approvalRecordVO.getId()); |
262 | erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); | 263 | erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); |
263 | erpSettlementEntity.setAuditStatus(auditStatus); | 264 | erpSettlementEntity.setAuditStatus(Integer.parseInt(approvalRecordVO.getAuditStatus())); |
264 | erpSettlementEntity.setApproveMessage(approveMessage); | 265 | erpSettlementEntity.setApproveMessage(approvalRecordVO.getApproveMessage()); |
265 | erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName()); | 266 | erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName()); |
266 | if(erpSettlementEntity==null) { | 267 | if(erpSettlementEntity==null) { |
267 | result.error500("未找到对应实体"); | 268 | result.error500("未找到对应实体"); | ... | ... |
... | @@ -374,7 +374,7 @@ public class MaterialINController { | ... | @@ -374,7 +374,7 @@ public class MaterialINController { |
374 | @AutoLog(value = "erp--药剂入库-回退") | 374 | @AutoLog(value = "erp--药剂入库-回退") |
375 | @ApiOperation(value="erp--药剂入库-回退", notes="erp--药剂入库-回退") | 375 | @ApiOperation(value="erp--药剂入库-回退", notes="erp--药剂入库-回退") |
376 | @PutMapping(value = "/rollback") | 376 | @PutMapping(value = "/rollback") |
377 | public Result<MaterialIN> rollback(ApprovalRecordVO approvalRecordVO) { | 377 | public Result<MaterialIN> rollback(@RequestBody ApprovalRecordVO approvalRecordVO) { |
378 | Result<MaterialIN> result = new Result<MaterialIN>(); | 378 | Result<MaterialIN> result = new Result<MaterialIN>(); |
379 | MaterialIN materialIN = null; | 379 | MaterialIN materialIN = null; |
380 | result.setSuccess(true);//默认成功! | 380 | result.setSuccess(true);//默认成功! | ... | ... |
... | @@ -208,7 +208,7 @@ public class EquipmentInfoMonthReportController { | ... | @@ -208,7 +208,7 @@ public class EquipmentInfoMonthReportController { |
208 | sql += " )aaa left join sys_depart d on aaa.depart_id = d.id "; | 208 | sql += " )aaa left join sys_depart d on aaa.depart_id = d.id "; |
209 | 209 | ||
210 | if(StringUtils.isNotEmpty(departIds)){ | 210 | if(StringUtils.isNotEmpty(departIds)){ |
211 | sql += " and aaa.id in ("+ JSUtils.quoteEach(departIds,",") +") "; | 211 | sql += " and aaa.depart_id in ("+ JSUtils.quoteEach(departIds,",") +") "; |
212 | } | 212 | } |
213 | return commonSqlService.queryForList(sql); | 213 | return commonSqlService.queryForList(sql); |
214 | } | 214 | } |
... | @@ -226,7 +226,7 @@ public class EquipmentInfoMonthReportController { | ... | @@ -226,7 +226,7 @@ public class EquipmentInfoMonthReportController { |
226 | sql += " where t.install_date >= '"+startDate+"' and t.install_date <= '"+endDate+"' "; | 226 | sql += " where t.install_date >= '"+startDate+"' and t.install_date <= '"+endDate+"' "; |
227 | sql += ")aaa left join sys_depart d on aaa.depart_id = d.id "; | 227 | sql += ")aaa left join sys_depart d on aaa.depart_id = d.id "; |
228 | if(StringUtils.isNotEmpty(departIds)){ | 228 | if(StringUtils.isNotEmpty(departIds)){ |
229 | sql += " and aaa.id in ("+ JSUtils.quoteEach(departIds,",") +") "; | 229 | sql += " and aaa.depart_id in ("+ JSUtils.quoteEach(departIds,",") +") "; |
230 | } | 230 | } |
231 | return commonSqlService.queryForList(sql); | 231 | return commonSqlService.queryForList(sql); |
232 | } | 232 | } | ... | ... |
... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
91 | </select> | 91 | </select> |
92 | <select id="getMaintainCost" parameterType="java.lang.String" resultType="java.lang.Double"> | 92 | <select id="getMaintainCost" parameterType="java.lang.String" resultType="java.lang.Double"> |
93 | SELECT | 93 | SELECT |
94 | IFNULL(SUM(emt.material_cost),0) AS cost | 94 | IFNULL(SUM(emt.maintenance_cost),0) AS cost |
95 | FROM | 95 | FROM |
96 | equipment_maintain_task emt | 96 | equipment_maintain_task emt |
97 | WHERE | 97 | WHERE | ... | ... |
-
请 注册 或 登录 后发表评论