|
@@ -207,12 +207,21 @@ public class GoodsApplyLogic {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (ifStatus)
|
|
|
+ if (ifStatus) {
|
|
|
goodsApplyAddUp.setStatus(ExamineStatusEnum.OK.getKey());
|
|
|
- else
|
|
|
+ }else {
|
|
|
goodsApplyAddUp.setStatus(ExamineStatusEnum.WAIT.getKey());
|
|
|
+ goodsApplyAddUp.updateById();
|
|
|
+
|
|
|
+ goodsApplyService.lambdaUpdate()
|
|
|
+ .set(GoodsApply::getApproveName,null)
|
|
|
+ .set(GoodsApply::getApproveRemark,null)
|
|
|
+ .set(GoodsApply::getApproveTime,null)
|
|
|
+ .eq(GoodsApply::getGoodsApplyId,goodsApplyAddUp.getGoodsApplyId())
|
|
|
+ .update();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- goodsApplyAddUp.updateById();
|
|
|
goodsApplyItemService.saveBatch(goodsApplyItemList);
|
|
|
}
|
|
|
|