|
|
@ -88,6 +88,8 @@ public class HighDiscountController { |
|
|
|
highDiscount.setCompanyId(userInfoModel.getBsCompany().getId()); |
|
|
|
highDiscount.setCompanyId(userInfoModel.getBsCompany().getId()); |
|
|
|
highDiscount.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
highDiscount.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
highDiscount.setOperatorName(userInfoModel.getSecUser().getUserName()); |
|
|
|
highDiscount.setOperatorName(userInfoModel.getSecUser().getUserName()); |
|
|
|
|
|
|
|
highDiscount.setCreateTime(new Date()); |
|
|
|
|
|
|
|
highDiscount.setUpdateTime(new Date()); |
|
|
|
highDiscount.setStatus(1); |
|
|
|
highDiscount.setStatus(1); |
|
|
|
highDiscountService.insertDiscount(highDiscount); |
|
|
|
highDiscountService.insertDiscount(highDiscount); |
|
|
|
|
|
|
|
|
|
|
@ -136,7 +138,7 @@ public class HighDiscountController { |
|
|
|
discount.setDiscountImg(highDiscount.getDiscountImg()); |
|
|
|
discount.setDiscountImg(highDiscount.getDiscountImg()); |
|
|
|
discount.setDiscountCarouselImg(highDiscount.getDiscountCarouselImg()); |
|
|
|
discount.setDiscountCarouselImg(highDiscount.getDiscountCarouselImg()); |
|
|
|
discount.setEffectiveDay(highDiscount.getEffectiveDay()); |
|
|
|
discount.setEffectiveDay(highDiscount.getEffectiveDay()); |
|
|
|
|
|
|
|
discount.setUpdateTime(new Date()); |
|
|
|
highDiscountService.updateDiscount(highDiscount); |
|
|
|
highDiscountService.updateDiscount(highDiscount); |
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
@ -192,10 +194,16 @@ public class HighDiscountController { |
|
|
|
@RequestParam(name = "discountName", required = false) String discountName, |
|
|
|
@RequestParam(name = "discountName", required = false) String discountName, |
|
|
|
@RequestParam(name = "discountType", required = false) Integer discountType, |
|
|
|
@RequestParam(name = "discountType", required = false) Integer discountType, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize, HttpServletRequest request) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
|
|
|
if (userInfoModel.getBsCompany() == null) { |
|
|
|
|
|
|
|
log.error("HighDiscountController -> updateDiscount() error!","该主角色没有权限"); |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("companyId", userInfoModel.getBsCompany().getId()); |
|
|
|
map.put("discountKey", discountKey); |
|
|
|
map.put("discountKey", discountKey); |
|
|
|
map.put("discountName", discountName); |
|
|
|
map.put("discountName", discountName); |
|
|
|
map.put("discountType", discountType); |
|
|
|
map.put("discountType", discountType); |
|
|
|