订单完工判断优化
This commit is contained in:
parent
ccaa4996a2
commit
fbe65333da
|
|
@ -80,12 +80,15 @@ public class ReWrite20ForOrderBP {
|
|||
for(PraybillItemVO itemvo : itemvos) {
|
||||
if (lbids.contains(itemvo.getPk_praybill_b())) {
|
||||
|
||||
if (itemvo.getNaccumulatenum().compareTo(itemvo.getNnum()) < 0 && ( null != itemvo.getAttributeValue("vbdef33") && itemvo.getNaccumulatenum().compareTo(new UFDouble(new UFDouble(String.valueOf(itemvo.getAttributeValue("vbdef33"))))) == 0)) {
|
||||
if (itemvo.getNaccumulatenum().compareTo(itemvo.getNnum()) < 0) {
|
||||
itemvo.setStatus(1);
|
||||
itemvo.setBrowclose(UFBoolean.FALSE);
|
||||
} else {
|
||||
} else if(itemvo.getNaccumulatenum().compareTo(itemvo.getNnum()) > 0 && ( null != itemvo.getAttributeValue("vbdef33") && itemvo.getNaccumulatenum().compareTo(new UFDouble(new UFDouble(String.valueOf(itemvo.getAttributeValue("vbdef33"))))) == 0)) {
|
||||
itemvo.setStatus(1);
|
||||
itemvo.setBrowclose(UFBoolean.TRUE);
|
||||
}else{
|
||||
itemvo.setStatus(1);
|
||||
itemvo.setBrowclose(UFBoolean.FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue