优化
This commit is contained in:
@@ -47,4 +47,9 @@ public class WorkOrderReq implements Serializable {
|
||||
*/
|
||||
private String ahDeviceWeight;
|
||||
|
||||
/**
|
||||
* 计算重量
|
||||
*/
|
||||
private String calculatedWeight;
|
||||
|
||||
}
|
||||
@@ -133,8 +133,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
|
||||
}
|
||||
|
||||
//计算标准重量
|
||||
MaterialInfoDO materialInfoDO = materialInfoMapper.selectById(req.getMaterialId());
|
||||
BigDecimal standardWeight = materialInfoDO.getUnitWeight().subtract(new BigDecimal(req.getInputQuantity()));
|
||||
BigDecimal standardWeight = new BigDecimal(req.getCalculatedWeight());
|
||||
BigDecimal electronicWeight = new BigDecimal(req.getAhDeviceWeight());
|
||||
|
||||
// 检查 electronicWeight 是否大于 standardWeight
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="top.wms.admin.materialProcess.mapper.MaterialProcessMapper">
|
||||
</mapper>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="top.wms.admin.materialType.mapper.MaterialTypeMapper">
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user