记得上下班打卡 | git大法好,push需谨慎

Commit fe1b257c authored by 张国柄's avatar 张国柄

PM临时+券发放类型:积分兑换;

parent e00a7329
......@@ -161,9 +161,6 @@ public class CandyMgtCouponAdminController extends BaseController {
@ResponseBody
public AjaxResult addSave(@RequestBody @Validated CandyMgtCouponBuildParam buildParam) {
logger.info("operator:{},buildParam:{}", ShiroUtils.getLoginName(), JsonUtils.toJson(buildParam));
if (buildParam.getBindType() == 1 && buildParam.getEventType() == 2 && StringUtils.isBlank(buildParam.getEventLimit())) {
buildParam.setBindType(2);// TODO: 2021/11/9 PM上线前两天临时加的发放类型,页面交互只做逻辑实现,这里根据条件纠正`bindType`
}
AjaxResult ajaxResult = this.buildValidProcessing(buildParam);
if (((int) ajaxResult.get(AjaxResult.CODE_TAG)) != 0) {
return ajaxResult;
......
......@@ -254,7 +254,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
initMgtCoupon.setMcouponId(IDGenerator.nextMilliId());
initMgtCoupon.setCouponId(initCoupon.getCouponId());
// initMgtCoupon.setState(0);
initMgtCoupon.setState(initCoupon.getBindType() == 2 ? 1 : 0);// TODO: 2021/11/9 PM上线前两天临时加的发放类型,页面交互只做逻辑实现,这里根据条件设置该记录不执行发放逻辑
initMgtCoupon.setState(initCoupon.getBindType() == 2 ? 1 : 0);// TODO: 2021/11/9 PM上线前临时加的发放类型(积分兑换),这里根据条件设置该记录不执行发放逻辑
initMgtCoupon.setEventAmt(parameter.getEventAmt());
initMgtCoupon.setEventType(parameter.getEventType());
initMgtCoupon.setEventLimit(parameter.getEventLimit());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment