dev-discount
袁野 4 years ago
commit 94852421cd
  1. 2
      hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java
  2. 11
      hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java

@ -107,7 +107,7 @@ public class HighGoodsPriceReferController {
highGoodsPriceRefer.setStatus(101); // 状态: 0:删除 1:待编辑 2:待生效 3:已生效 4:已失效 101.审批中 102.审批驳回
highGoodsPriceRefer.setOperatorId(userInfoModel.getSecUser().getId());
highGoodsPriceRefer.setOperatorName(userInfoModel.getSecUser().getUserName());
// highApproveService.insertApprove();
highGoodsPriceReferService.submitApprove(highGoodsPriceRefer);
return ResponseMsgUtil.success("操作成功");

@ -189,9 +189,12 @@ public class HighCouponServiceImpl implements HighCouponService {
}
// 状态: 1:待审批 2:驳回 3:通过
if (highApprove.getStatus() == 1) {
couponDetail.setStatus(2);
if (highApprove.getStatus() == 2) {
couponDetail.setStatus(102);
}
if (highApprove.getStatus() == 3) {
couponDetail.setStatus(2);
Map<String, Object> map = new HashMap<>();
map.put("objectType", 1);
map.put("objectId", couponDetail.getId());
@ -206,10 +209,6 @@ public class HighCouponServiceImpl implements HighCouponService {
}
}
if (highApprove.getStatus() == 2) {
couponDetail.setStatus(102);
}
highCouponMapper.updateByPrimaryKey(couponDetail);
}

Loading…
Cancel
Save