耗材帐盘单生成:入库帐盘数为小数开头是设置为0

develop/hrl20241202_wzzps
hrl_081 2 months ago
parent 9b8ee59124
commit 164a876f8e
  1. 8
      WEB-INF/src/com/mms/service/MMSKcpdService.java

@ -79,7 +79,13 @@ public class MMSKcpdService {
if(rkdw.equals(jbdw)){
mmskcpdmxdao.setColumnValue(i,"RKDWZPS", kysl);
}else{
mmskcpdmxdao.setColumnValue(i,"RKDWZPS", MathUtil.divide(kysl, zhxs));
String rkdzps = MathUtil.divide(kysl, zhxs);
if(rkdzps.startsWith("0.")) {
mmskcpdmxdao.setColumnValue(i,"RKDWZPS","0");
}else {
mmskcpdmxdao.setColumnValue(i,"RKDWZPS", MathUtil.divide(kysl, zhxs));
}
}
if("6.91".equals(mmskcpdmxdao.getColumnValueAsString(i,"RKDWZPS"))) {

Loading…
Cancel
Save