kangwei:修改bug,优化代码
正在显示
3 个修改的文件
包含
22 行增加
和
2 行删除
... | @@ -166,14 +166,14 @@ public class MaterialINServiceImpl extends ServiceImpl<MaterialINMapper, Materia | ... | @@ -166,14 +166,14 @@ public class MaterialINServiceImpl extends ServiceImpl<MaterialINMapper, Materia |
166 | */ | 166 | */ |
167 | @Transactional | 167 | @Transactional |
168 | public String auditMaterialINVO(MaterialINVO materialINVO)throws Exception { | 168 | public String auditMaterialINVO(MaterialINVO materialINVO)throws Exception { |
169 | String errMsg = auditMaterialIn(materialINVO.getId(),materialINVO.getApproveState(),materialINVO.getApproveMessage()); | 169 | String errMsg = auditMaterialIn(materialINVO.getMaterialInId(),materialINVO.getApproveState(),materialINVO.getApproveMessage()); |
170 | return errMsg; | 170 | return errMsg; |
171 | } | 171 | } |
172 | 172 | ||
173 | @Transactional | 173 | @Transactional |
174 | public String auditMaterialIn(String id , String approveState,String approveMessage) throws Exception{ | 174 | public String auditMaterialIn(String id , String approveState,String approveMessage) throws Exception{ |
175 | String errMsg = null; | 175 | String errMsg = null; |
176 | boolean inAndOutStock = false; | 176 | boolean inAndOutStock = false; |
177 | //保存 | 177 | //保存 |
178 | MaterialIN materialINTemp = this.baseMapper.queryById(id); | 178 | MaterialIN materialINTemp = this.baseMapper.queryById(id); |
179 | if(!"3".equals(materialINTemp.getAuditStatus())){ | 179 | if(!"3".equals(materialINTemp.getAuditStatus())){ | ... | ... |
... | @@ -26,6 +26,9 @@ public class MaterialINVO extends MaterialIN { | ... | @@ -26,6 +26,9 @@ public class MaterialINVO extends MaterialIN { |
26 | @ApiModelProperty(value = "权限厂站编号集合") | 26 | @ApiModelProperty(value = "权限厂站编号集合") |
27 | private String departIds; | 27 | private String departIds; |
28 | 28 | ||
29 | @ApiModelProperty(value = "药剂入库编号") | ||
30 | private String materialInId; | ||
31 | |||
29 | 32 | ||
30 | @ApiModelProperty(value = "物料编码") | 33 | @ApiModelProperty(value = "物料编码") |
31 | private String sparepartCode; | 34 | private String sparepartCode; | ... | ... |
... | @@ -4,6 +4,7 @@ import com.skua.core.aspect.annotation.Dict; | ... | @@ -4,6 +4,7 @@ import com.skua.core.aspect.annotation.Dict; |
4 | import com.skua.tool.util.JSUtils; | 4 | import com.skua.tool.util.JSUtils; |
5 | import io.swagger.annotations.ApiModel; | 5 | import io.swagger.annotations.ApiModel; |
6 | import io.swagger.annotations.ApiModelProperty; | 6 | import io.swagger.annotations.ApiModelProperty; |
7 | import liquibase.util.StringUtils; | ||
7 | import lombok.Data; | 8 | import lombok.Data; |
8 | 9 | ||
9 | import java.util.List; | 10 | import java.util.List; |
... | @@ -59,4 +60,20 @@ public class ReportTargetStatisticsVO { | ... | @@ -59,4 +60,20 @@ public class ReportTargetStatisticsVO { |
59 | expression = "100 * ( "+monthValue+"/"+monthTarget+" )"; | 60 | expression = "100 * ( "+monthValue+"/"+monthTarget+" )"; |
60 | this.monthWcBL = JSUtils.executeExpression(expression,"0.00"); | 61 | this.monthWcBL = JSUtils.executeExpression(expression,"0.00"); |
61 | } | 62 | } |
63 | |||
64 | public String getYearWcBL() { | ||
65 | if(StringUtils.isEmpty(this.yearWcBL) && StringUtils.isNotEmpty(this.yearTarget) && StringUtils.isNotEmpty(this.yearValue)){ | ||
66 | String expression = "100 * ( "+this.yearValue+"/"+this.yearTarget+" )"; | ||
67 | this.yearWcBL = JSUtils.executeExpression(expression,"0.00"); | ||
68 | } | ||
69 | return yearWcBL; | ||
70 | } | ||
71 | |||
72 | public String getMonthWcBL() { | ||
73 | if(StringUtils.isEmpty(this.monthWcBL) && StringUtils.isNotEmpty(this.monthTarget) && StringUtils.isNotEmpty(this.monthValue)){ | ||
74 | String expression = "100 * ( "+this.monthValue+"/"+this.monthTarget+" )"; | ||
75 | this.monthWcBL = JSUtils.executeExpression(expression,"0.00"); | ||
76 | } | ||
77 | return monthWcBL; | ||
78 | } | ||
62 | } | 79 | } | ... | ... |
-
请 注册 或 登录 后发表评论