|
@@ -21,16 +21,16 @@ import com.java110.core.annotation.Java110Transactional;
|
|
|
import com.java110.core.context.ICmdDataFlowContext;
|
|
import com.java110.core.context.ICmdDataFlowContext;
|
|
|
import com.java110.core.event.cmd.Cmd;
|
|
import com.java110.core.event.cmd.Cmd;
|
|
|
import com.java110.core.event.cmd.CmdEvent;
|
|
import com.java110.core.event.cmd.CmdEvent;
|
|
|
-import com.java110.core.factory.GenerateCodeFactory;
|
|
|
|
|
import com.java110.intf.acct.ICouponRuleV1InnerServiceSMO;
|
|
import com.java110.intf.acct.ICouponRuleV1InnerServiceSMO;
|
|
|
import com.java110.po.couponRule.CouponRulePo;
|
|
import com.java110.po.couponRule.CouponRulePo;
|
|
|
import com.java110.utils.exception.CmdException;
|
|
import com.java110.utils.exception.CmdException;
|
|
|
import com.java110.utils.util.Assert;
|
|
import com.java110.utils.util.Assert;
|
|
|
import com.java110.utils.util.BeanConvertUtil;
|
|
import com.java110.utils.util.BeanConvertUtil;
|
|
|
import com.java110.vo.ResultVo;
|
|
import com.java110.vo.ResultVo;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 类表述:删除
|
|
* 类表述:删除
|
|
|
* 服务编码:couponRule.deleteCouponRule
|
|
* 服务编码:couponRule.deleteCouponRule
|
|
@@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
|
|
|
*/
|
|
*/
|
|
|
@Java110Cmd(serviceCode = "couponRule.deleteCouponRule")
|
|
@Java110Cmd(serviceCode = "couponRule.deleteCouponRule")
|
|
|
public class DeleteCouponRuleCmd extends Cmd {
|
|
public class DeleteCouponRuleCmd extends Cmd {
|
|
|
- private static Logger logger = LoggerFactory.getLogger(DeleteCouponRuleCmd.class);
|
|
|
|
|
|
|
+ private static Logger logger = LoggerFactory.getLogger(DeleteCouponRuleCmd.class);
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ICouponRuleV1InnerServiceSMO couponRuleV1InnerServiceSMOImpl;
|
|
private ICouponRuleV1InnerServiceSMO couponRuleV1InnerServiceSMOImpl;
|
|
@@ -51,7 +51,7 @@ public class DeleteCouponRuleCmd extends Cmd {
|
|
|
@Override
|
|
@Override
|
|
|
public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
|
|
public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
|
|
|
Assert.hasKeyAndValue(reqJson, "ruleId", "ruleId不能为空");
|
|
Assert.hasKeyAndValue(reqJson, "ruleId", "ruleId不能为空");
|
|
|
-Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
|
|
|
|
|
|
|
+ Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -59,7 +59,7 @@ Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
|
|
|
@Java110Transactional
|
|
@Java110Transactional
|
|
|
public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
|
|
public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
|
|
|
|
|
|
|
|
- CouponRulePo couponRulePo = BeanConvertUtil.covertBean(reqJson, CouponRulePo.class);
|
|
|
|
|
|
|
+ CouponRulePo couponRulePo = BeanConvertUtil.covertBean(reqJson, CouponRulePo.class);
|
|
|
int flag = couponRuleV1InnerServiceSMOImpl.deleteCouponRule(couponRulePo);
|
|
int flag = couponRuleV1InnerServiceSMOImpl.deleteCouponRule(couponRulePo);
|
|
|
|
|
|
|
|
if (flag < 1) {
|
|
if (flag < 1) {
|