|
@@ -6,6 +6,7 @@ import com.steerinfo.dil.mapper.RmsMaterialMapper;
|
|
|
import com.steerinfo.dil.mapper.RmsMaterialSteelMapper;
|
|
|
import com.steerinfo.dil.model.RmsMaterialSteel;
|
|
|
import com.steerinfo.dil.service.IRmsMaterialSteelService;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.DecompileUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -92,14 +93,15 @@ public class RmsMaterialSteelServiceImpl implements IRmsMaterialSteelService {
|
|
|
//设置物资理重
|
|
|
//如果物资支数为空,就设置物资磅重
|
|
|
if (materialCount.length()==0) {
|
|
|
- rmsMaterialSteel.setMaterialSingleBundleWeight(new BigDecimal(TheoreticalWeight));
|
|
|
+ rmsMaterialSteel.setMaterialSingleBundleWeight(DataChange.dataToBigDecimal(TheoreticalWeight));
|
|
|
//反编译物资理重
|
|
|
- DecompileUtil decompileUtil=new DecompileUtil();
|
|
|
- int weight = decompileUtil.DecompileUtiltest(TheoreticalWeight);
|
|
|
- rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(weight));
|
|
|
-
|
|
|
+ if(TheoreticalWeight != null && !"".equals(TheoreticalWeight) ){
|
|
|
+ DecompileUtil decompileUtil=new DecompileUtil();
|
|
|
+ int weight = decompileUtil.DecompileUtiltest(TheoreticalWeight);
|
|
|
+ rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(weight));
|
|
|
+ }
|
|
|
}else {
|
|
|
- rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(TheoreticalWeight));
|
|
|
+ rmsMaterialSteel.setMaterialTheoreticalWeight(DataChange.dataToBigDecimal(TheoreticalWeight));
|
|
|
}
|
|
|
//设置物资支数
|
|
|
//判断支数不为空
|
|
@@ -174,16 +176,17 @@ public class RmsMaterialSteelServiceImpl implements IRmsMaterialSteelService {
|
|
|
//设置炉号
|
|
|
rmsMaterialSteel.setMaterialFurnaceNumber(FurnaceNumber);
|
|
|
//设置物资理重
|
|
|
- //如果物资支数为空,就设置物资磅重
|
|
|
+ //如果物资支数为空,就设置物资榜重
|
|
|
if (materialCount.length()==0) {
|
|
|
- rmsMaterialSteel.setMaterialSingleBundleWeight(new BigDecimal(TheoreticalWeight));
|
|
|
+ rmsMaterialSteel.setMaterialSingleBundleWeight(DataChange.dataToBigDecimal(TheoreticalWeight));
|
|
|
//反编译物资理重
|
|
|
- DecompileUtil decompileUtil=new DecompileUtil();
|
|
|
- int weight = decompileUtil.DecompileUtiltest(TheoreticalWeight);
|
|
|
- rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(weight));
|
|
|
-
|
|
|
+ if(TheoreticalWeight != null && !"".equals(TheoreticalWeight) ){
|
|
|
+ DecompileUtil decompileUtil=new DecompileUtil();
|
|
|
+ int weight = decompileUtil.DecompileUtiltest(TheoreticalWeight);
|
|
|
+ rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(weight));
|
|
|
+ }
|
|
|
}else {
|
|
|
- rmsMaterialSteel.setMaterialTheoreticalWeight(new BigDecimal(TheoreticalWeight));
|
|
|
+ rmsMaterialSteel.setMaterialTheoreticalWeight(DataChange.dataToBigDecimal(TheoreticalWeight));
|
|
|
}
|
|
|
//设置物资支数
|
|
|
//判断支数不为空
|