Commit 94601bb0 authored by 温志超's avatar 温志超

更新生产版本的版号数字问题

parent 02f39e80
...@@ -215,9 +215,10 @@ public class ProProductionSolutionServiceImpl implements IProProductionSolutionS ...@@ -215,9 +215,10 @@ public class ProProductionSolutionServiceImpl implements IProProductionSolutionS
//判断产品相关编号大小 //判断产品相关编号大小
proProductionSolutions = proProductionSolutionMapper.selectProductionSolutionCode(mdItem.getItemId(),null); proProductionSolutions = proProductionSolutionMapper.selectProductionSolutionCode(mdItem.getItemId(),null);
if(proProductionSolutions.size() > 0){ if(proProductionSolutions.size() > 0){
if(StringUtils.isNotEmpty(proProductionSolutions.get(0).getProductionSolutionCode()) if(StringUtils.isNotEmpty(proProductionSolutions.get(0).getProductionSolutionCode())){
&& proProductionSolutions.get(0).getProductionSolutionCode().compareTo(proProductionSolutionVo.getProductionSolutionCode()) > 0){ Long longOld = new Long(proProductionSolutions.get(0).getProductionSolutionCode());
ExceptionUtil.checkTrueThrowException(true, MessageUtils.message("md.workStation.error.productionSolutionCode.size")); Long longNew = new Long(proProductionSolutionVo.getProductionSolutionCode());
ExceptionUtil.checkTrueThrowException(longOld > longNew, MessageUtils.message("md.workStation.error.productionSolutionCode.size"));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment