rev:质检模块
This commit is contained in:
@@ -114,7 +114,7 @@ public class PcsIfPurchaseorder implements Serializable {
|
||||
/**
|
||||
* 提交人
|
||||
*/
|
||||
private String audit_optid;
|
||||
private String audit_id;
|
||||
|
||||
/**
|
||||
* 提交时间
|
||||
@@ -124,17 +124,17 @@ public class PcsIfPurchaseorder implements Serializable {
|
||||
/**
|
||||
* 提交人姓名
|
||||
*/
|
||||
private String audit_optname;
|
||||
private String audit_name;
|
||||
|
||||
/**
|
||||
* 确认人
|
||||
*/
|
||||
private String confirm_optid;
|
||||
private String confirm_id;
|
||||
|
||||
/**
|
||||
* 确认人姓名
|
||||
*/
|
||||
private String confirm_optname;
|
||||
private String confirm_name;
|
||||
|
||||
/**
|
||||
* 确认时间
|
||||
|
||||
@@ -60,15 +60,15 @@ public class PcsIfPurchaseorderServiceImpl extends ServiceImpl<PcsIfPurchaseorde
|
||||
}
|
||||
PcsIfPurchaseorder purchaseorder = this.getOne(new QueryWrapper<PcsIfPurchaseorder>().eq("po_code", po_code));
|
||||
|
||||
if (purchaseorder.getSTATUS().equals(PCSEnum.BILL_STATUS.code("确认"))) {
|
||||
if (purchaseorder.getSTATUS().equals(PCSEnum.BILL_STATUS.code("完成"))) {
|
||||
throw new BadRequestException("当前单据状态已经完成,无法进行入库数修改!");
|
||||
}
|
||||
|
||||
BigDecimal new_instor_qty = NumberUtil.add(instor_qty, purchaseorder.getInstor_qty(), 3);
|
||||
if (purchaseorder.getTotal_qty().compareTo(new_instor_qty) <= 0) {
|
||||
purchaseorder.setSTATUS(PCSEnum.BILL_STATUS.code("完成"));
|
||||
purchaseorder.setConfirm_optid(SecurityUtils.getCurrentUserId());
|
||||
purchaseorder.setConfirm_optname(SecurityUtils.getCurrentNickName());
|
||||
purchaseorder.setConfirm_id(SecurityUtils.getCurrentUserId());
|
||||
purchaseorder.setConfirm_name(SecurityUtils.getCurrentNickName());
|
||||
purchaseorder.setConfirm_time(DateUtil.now());
|
||||
} else {
|
||||
purchaseorder.setSTATUS(PCSEnum.BILL_STATUS.code("到货中"));
|
||||
|
||||
Reference in New Issue
Block a user