比较数量调整
This commit is contained in:
parent
79630893c6
commit
5d713f84dd
|
|
@ -309,7 +309,10 @@ public class CompareReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
//比较数量
|
//比较数量
|
||||||
if (!ObjectUtil.equal(from.getNum(), to.getNum())) {
|
if(ObjectUtil.isNull(from.getNum()) || ObjectUtil.isNull(to.getNum())){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ( from.getNum().compareTo(to.getNum()) !=0) {
|
||||||
compareReportVO.setSymbol(ReportConstant.SymbolEnum.NON_EQ.getValue());
|
compareReportVO.setSymbol(ReportConstant.SymbolEnum.NON_EQ.getValue());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
@ -329,7 +332,7 @@ public class CompareReportService {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//比较单位
|
//比较单位
|
||||||
if (!ObjectUtil.equal(from.getMaterialUnit(), to.getMaterialUnit())) {
|
if (!ObjectUtil.equal(from.getMaterialUnit().toUpperCase(), to.getMaterialUnit().toUpperCase())) {
|
||||||
compareReportVO.setSymbol(ReportConstant.SymbolEnum.NON_EQ.getValue());
|
compareReportVO.setSymbol(ReportConstant.SymbolEnum.NON_EQ.getValue());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue