|
|
@ -189,27 +189,26 @@ public class HighCouponServiceImpl implements HighCouponService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 状态: 1:待审批 2:驳回 3:通过
|
|
|
|
// 状态: 1:待审批 2:驳回 3:通过
|
|
|
|
if (highApprove.getStatus() == 1) { |
|
|
|
if (highApprove.getStatus() == 2) { |
|
|
|
couponDetail.setStatus(2); |
|
|
|
couponDetail.setStatus(102); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (highApprove.getStatus() == 3) { |
|
|
|
|
|
|
|
couponDetail.setStatus(2); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("objectType", 1); |
|
|
|
map.put("objectType", 1); |
|
|
|
map.put("objectId", couponDetail.getId()); |
|
|
|
map.put("objectId", couponDetail.getId()); |
|
|
|
map.put("status", 1); |
|
|
|
map.put("status", 1); |
|
|
|
List<HighGoodsPriceRefer> list = highGoodsPriceReferService.getPriceList(map); |
|
|
|
List<HighGoodsPriceRefer> list = highGoodsPriceReferService.getPriceList(map); |
|
|
|
if (list != null && list.size() > 0) { |
|
|
|
if (list != null && list.size() > 0) { |
|
|
|
for (HighGoodsPriceRefer priceRefer : list) { |
|
|
|
for (HighGoodsPriceRefer priceRefer : list) { |
|
|
|
priceRefer.setEffectiveTime(new Date()); |
|
|
|
priceRefer.setEffectiveTime(new Date()); |
|
|
|
priceRefer.setStatus(3); |
|
|
|
priceRefer.setStatus(3); |
|
|
|
highGoodsPriceReferService.updatePriceRefer(priceRefer); |
|
|
|
highGoodsPriceReferService.updatePriceRefer(priceRefer); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (highApprove.getStatus() == 2) { |
|
|
|
|
|
|
|
couponDetail.setStatus(102); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
highCouponMapper.updateByPrimaryKey(couponDetail); |
|
|
|
highCouponMapper.updateByPrimaryKey(couponDetail); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|