Commit 1efb21b1 by ice

修改采购订单审核时必填项是否填入的校验

parent 8bac25a4
...@@ -129,6 +129,11 @@ public class PurOrderHeaderController { ...@@ -129,6 +129,11 @@ public class PurOrderHeaderController {
errorList.add("采购单号为:"+purOrderHeader.getOrderNumber()+"的状态不为新建,审核失败!"); errorList.add("采购单号为:"+purOrderHeader.getOrderNumber()+"的状态不为新建,审核失败!");
continue label; continue label;
} }
//判断必填项是否有填入
if(null == purOrderHeader.getSupplierId() || "".equals(purOrderHeader.getSupplierId()) || null == purOrderHeader.getOrderCurrency() || "".equals(purOrderHeader.getOrderCurrency()) || null == purOrderHeader.getBuyerId() || "".equals(purOrderHeader.getBuyerId())){
errorList.add("采购单号为:"+purOrderHeader.getOrderNumber()+"的必填项未填入,审核失败!");
continue label;
}
if("000000006c60dba1016c60f588e00002".equals(purOrderHeader.getOrderType())) { if("000000006c60dba1016c60f588e00002".equals(purOrderHeader.getOrderType())) {
List<PurOrderLine> purOrderLineList = purOrderLineService.findOrderLineByHeaderId(purOrderHeader.getId()); List<PurOrderLine> purOrderLineList = purOrderLineService.findOrderLineByHeaderId(purOrderHeader.getId());
for (PurOrderLine purOrderLine : purOrderLineList) { for (PurOrderLine purOrderLine : purOrderLineList) {
......
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 sign in to comment