Merge branch 'master' of http://121.40.234.130:8899/root/hl_one
This commit is contained in:
@@ -416,7 +416,11 @@ public class DeviceScreenServiceImpl implements DeviceScreenService {
|
|||||||
//计算该工序下工单的实际生产数量
|
//计算该工序下工单的实际生产数量
|
||||||
int nowproductivity = WQL.getWO("QDEVICE_SCREEN").addParam("flag", "13").addParam("workprocedure_id", workprocedure_id).addParam("produce_date", today)
|
int nowproductivity = WQL.getWO("QDEVICE_SCREEN").addParam("flag", "13").addParam("workprocedure_id", workprocedure_id).addParam("produce_date", today)
|
||||||
.process().uniqueResult(0).getIntValue("real_qty");
|
.process().uniqueResult(0).getIntValue("real_qty");
|
||||||
BigDecimal teep = NumberUtil.round(NumberUtil.div(nowproductivity * 100, Maxproductivity), 2);
|
BigDecimal teep = new BigDecimal(0);
|
||||||
|
if (nowproductivity != 0) {
|
||||||
|
teep = NumberUtil.round(NumberUtil.div(nowproductivity * 100, Maxproductivity), 2);
|
||||||
|
|
||||||
|
}
|
||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
jo.put("workprocedure_name", workprocedure_name);
|
jo.put("workprocedure_name", workprocedure_name);
|
||||||
jo.put("teep", teep);
|
jo.put("teep", teep);
|
||||||
|
|||||||
Reference in New Issue
Block a user