wuxw il y a 3 ans
Parent
commit
6245f043c4

+ 52 - 28
java110-bean/src/main/java/com/java110/dto/couponPropertyPool/CouponPropertyPoolDto.java

@@ -1,6 +1,7 @@
 package com.java110.dto.couponPropertyPool;
 
 import com.java110.dto.PageDto;
+
 import java.io.Serializable;
 import java.util.Date;
 
@@ -14,16 +15,20 @@ import java.util.Date;
  **/
 public class CouponPropertyPoolDto extends PageDto implements Serializable {
 
+    public static final String FROM_TYPE_CUSTOM = "2002";
+
+    public static final String STATE_Y = "Y";
+
     private String couponName;
-private String toType;
-private String fromType;
-private String validityDay;
-private String cppId;
-private String communityName;
-private String state;
-private String communityId;
-private String stock;
-private String fromId;
+    private String toType;
+    private String fromType;
+    private String validityDay;
+    private String cppId;
+    private String communityName;
+    private String state;
+    private String communityId;
+    private String stock;
+    private String fromId;
 
 
     private Date createTime;
@@ -34,61 +39,80 @@ private String fromId;
     public String getCouponName() {
         return couponName;
     }
-public void setCouponName(String couponName) {
+
+    public void setCouponName(String couponName) {
         this.couponName = couponName;
     }
-public String getToType() {
+
+    public String getToType() {
         return toType;
     }
-public void setToType(String toType) {
+
+    public void setToType(String toType) {
         this.toType = toType;
     }
-public String getFromType() {
+
+    public String getFromType() {
         return fromType;
     }
-public void setFromType(String fromType) {
+
+    public void setFromType(String fromType) {
         this.fromType = fromType;
     }
-public String getValidityDay() {
+
+    public String getValidityDay() {
         return validityDay;
     }
-public void setValidityDay(String validityDay) {
+
+    public void setValidityDay(String validityDay) {
         this.validityDay = validityDay;
     }
-public String getCppId() {
+
+    public String getCppId() {
         return cppId;
     }
-public void setCppId(String cppId) {
+
+    public void setCppId(String cppId) {
         this.cppId = cppId;
     }
-public String getCommunityName() {
+
+    public String getCommunityName() {
         return communityName;
     }
-public void setCommunityName(String communityName) {
+
+    public void setCommunityName(String communityName) {
         this.communityName = communityName;
     }
-public String getState() {
+
+    public String getState() {
         return state;
     }
-public void setState(String state) {
+
+    public void setState(String state) {
         this.state = state;
     }
-public String getCommunityId() {
+
+    public String getCommunityId() {
         return communityId;
     }
-public void setCommunityId(String communityId) {
+
+    public void setCommunityId(String communityId) {
         this.communityId = communityId;
     }
-public String getStock() {
+
+    public String getStock() {
         return stock;
     }
-public void setStock(String stock) {
+
+    public void setStock(String stock) {
         this.stock = stock;
     }
-public String getFromId() {
+
+    public String getFromId() {
         return fromId;
     }
-public void setFromId(String fromId) {
+
+    public void setFromId(String fromId) {
         this.fromId = fromId;
     }
 

+ 55 - 34
java110-bean/src/main/java/com/java110/po/couponPropertyPool/CouponPropertyPoolPo.java

@@ -16,7 +16,7 @@
 package com.java110.po.couponPropertyPool;
 
 import java.io.Serializable;
-import java.util.Date;
+
 /**
  * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
  * add by 吴学文 at 2022-11-19 23:00:42 mail: 928255095@qq.com
@@ -28,83 +28,104 @@ import java.util.Date;
 public class CouponPropertyPoolPo implements Serializable {
 
     private String couponName;
-private String toType;
-private String fromType;
-private String validityDay;
-private String cppId;
-private String communityName;
-private String statusCd = "0";
-private String state;
-private String communityId;
-private String stock;
-private String fromId;
-public String getCouponName() {
+    private String toType;
+    private String fromType;
+    private String validityDay;
+    private String cppId;
+    private String communityName;
+    private String statusCd = "0";
+    private String state;
+    private String communityId;
+    private String stock;
+    private String fromId;
+
+    public String getCouponName() {
         return couponName;
     }
-public void setCouponName(String couponName) {
+
+    public void setCouponName(String couponName) {
         this.couponName = couponName;
     }
-public String getToType() {
+
+    public String getToType() {
         return toType;
     }
-public void setToType(String toType) {
+
+    public void setToType(String toType) {
         this.toType = toType;
     }
-public String getFromType() {
+
+    public String getFromType() {
         return fromType;
     }
-public void setFromType(String fromType) {
+
+    public void setFromType(String fromType) {
         this.fromType = fromType;
     }
-public String getValidityDay() {
+
+    public String getValidityDay() {
         return validityDay;
     }
-public void setValidityDay(String validityDay) {
+
+    public void setValidityDay(String validityDay) {
         this.validityDay = validityDay;
     }
-public String getCppId() {
+
+    public String getCppId() {
         return cppId;
     }
-public void setCppId(String cppId) {
+
+    public void setCppId(String cppId) {
         this.cppId = cppId;
     }
-public String getCommunityName() {
+
+    public String getCommunityName() {
         return communityName;
     }
-public void setCommunityName(String communityName) {
+
+    public void setCommunityName(String communityName) {
         this.communityName = communityName;
     }
-public String getStatusCd() {
+
+    public String getStatusCd() {
         return statusCd;
     }
-public void setStatusCd(String statusCd) {
+
+    public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
-public String getState() {
+
+    public String getState() {
         return state;
     }
-public void setState(String state) {
+
+    public void setState(String state) {
         this.state = state;
     }
-public String getCommunityId() {
+
+    public String getCommunityId() {
         return communityId;
     }
-public void setCommunityId(String communityId) {
+
+    public void setCommunityId(String communityId) {
         this.communityId = communityId;
     }
-public String getStock() {
+
+    public String getStock() {
         return stock;
     }
-public void setStock(String stock) {
+
+    public void setStock(String stock) {
         this.stock = stock;
     }
-public String getFromId() {
+
+    public String getFromId() {
         return fromId;
     }
-public void setFromId(String fromId) {
+
+    public void setFromId(String fromId) {
         this.fromId = fromId;
     }
 
 
-
 }

+ 4 - 6
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/DeleteCouponPropertyPoolCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -21,7 +21,6 @@ import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolV1InnerServiceSMO;
 import com.java110.po.couponPropertyPool.CouponPropertyPoolPo;
 import com.java110.utils.exception.CmdException;
@@ -33,15 +32,15 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 /**
  * 类表述:删除
- * 服务编码:couponPropertyPool.deleteCouponPropertyPool
- * 请求路劲:/app/couponPropertyPool.DeleteCouponPropertyPool
+ * 服务编码:couponProperty.deleteCouponPropertyPool
+ * 请求路劲:/app/couponProperty.DeleteCouponPropertyPool
  * add by 吴学文 at 2022-11-19 23:00:42 mail: 928255095@qq.com
  * open source address: https://gitee.com/wuxw7/MicroCommunity
  * 官网:http://www.homecommunity.cn
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.deleteCouponPropertyPool")
+@Java110Cmd(serviceCode = "couponProperty.deleteCouponPropertyPool")
 public class DeleteCouponPropertyPoolCmd extends Cmd {
   private static Logger logger = LoggerFactory.getLogger(DeleteCouponPropertyPoolCmd.class);
 
@@ -51,7 +50,6 @@ public class DeleteCouponPropertyPoolCmd extends Cmd {
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "cppId", "cppId不能为空");
-Assert.hasKeyAndValue(reqJson, "cppId", "cppId不能为空");
 
     }
 

+ 2 - 3
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/DeleteCouponPropertyPoolConfigCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -21,7 +21,6 @@ import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolConfigV1InnerServiceSMO;
 import com.java110.po.couponPropertyPoolConfig.CouponPropertyPoolConfigPo;
 import com.java110.utils.exception.CmdException;
@@ -41,7 +40,7 @@ import org.slf4j.LoggerFactory;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.deleteCouponPropertyPoolConfig")
+@Java110Cmd(serviceCode = "couponProperty.deleteCouponPropertyPoolConfig")
 public class DeleteCouponPropertyPoolConfigCmd extends Cmd {
   private static Logger logger = LoggerFactory.getLogger(DeleteCouponPropertyPoolConfigCmd.class);
 

+ 4 - 8
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/ListCouponPropertyPoolCmd.java

@@ -13,19 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
-import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolV1InnerServiceSMO;
-import com.java110.po.couponPropertyPool.CouponPropertyPoolPo;
 import com.java110.utils.exception.CmdException;
-import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -40,15 +36,15 @@ import org.slf4j.LoggerFactory;
 
 /**
  * 类表述:查询
- * 服务编码:couponPropertyPool.listCouponPropertyPool
- * 请求路劲:/app/couponPropertyPool.ListCouponPropertyPool
+ * 服务编码:couponProperty.listCouponPropertyPool
+ * 请求路劲:/app/couponProperty.ListCouponPropertyPool
  * add by 吴学文 at 2022-11-19 23:00:42 mail: 928255095@qq.com
  * open source address: https://gitee.com/wuxw7/MicroCommunity
  * 官网:http://www.homecommunity.cn
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.listCouponPropertyPool")
+@Java110Cmd(serviceCode = "couponProperty.listCouponPropertyPool")
 public class ListCouponPropertyPoolCmd extends Cmd {
 
   private static Logger logger = LoggerFactory.getLogger(ListCouponPropertyPoolCmd.class);

+ 2 - 6
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/ListCouponPropertyPoolConfigCmd.java

@@ -13,19 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
-import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolConfigV1InnerServiceSMO;
-import com.java110.po.couponPropertyPoolConfig.CouponPropertyPoolConfigPo;
 import com.java110.utils.exception.CmdException;
-import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -48,7 +44,7 @@ import org.slf4j.LoggerFactory;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.listCouponPropertyPoolConfig")
+@Java110Cmd(serviceCode = "couponProperty.listCouponPropertyPoolConfig")
 public class ListCouponPropertyPoolConfigCmd extends Cmd {
 
   private static Logger logger = LoggerFactory.getLogger(ListCouponPropertyPoolConfigCmd.class);

+ 28 - 11
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/SaveCouponPropertyPoolCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -22,27 +22,32 @@ import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
 import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.dto.community.CommunityDto;
+import com.java110.dto.couponPropertyPool.CouponPropertyPoolDto;
 import com.java110.intf.acct.ICouponPropertyPoolV1InnerServiceSMO;
+import com.java110.intf.community.ICommunityV1InnerServiceSMO;
 import com.java110.po.couponPropertyPool.CouponPropertyPoolPo;
 import com.java110.utils.exception.CmdException;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.List;
 
 /**
  * 类表述:保存
- * 服务编码:couponPropertyPool.saveCouponPropertyPool
- * 请求路劲:/app/couponPropertyPool.SaveCouponPropertyPool
+ * 服务编码:couponProperty.saveCouponPropertyPool
+ * 请求路劲:/app/couponProperty.SaveCouponPropertyPool
  * add by 吴学文 at 2022-11-19 23:00:42 mail: 928255095@qq.com
  * open source address: https://gitee.com/wuxw7/MicroCommunity
  * 官网:http://www.homecommunity.cn
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.saveCouponPropertyPool")
+@Java110Cmd(serviceCode = "couponProperty.saveCouponPropertyPool")
 public class SaveCouponPropertyPoolCmd extends Cmd {
 
     private static Logger logger = LoggerFactory.getLogger(SaveCouponPropertyPoolCmd.class);
@@ -52,14 +57,16 @@ public class SaveCouponPropertyPoolCmd extends Cmd {
     @Autowired
     private ICouponPropertyPoolV1InnerServiceSMO couponPropertyPoolV1InnerServiceSMOImpl;
 
+    @Autowired
+    private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl;
+
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "couponName", "请求报文中未包含couponName");
-Assert.hasKeyAndValue(reqJson, "fromType", "请求报文中未包含fromType");
-Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
-Assert.hasKeyAndValue(reqJson, "toType", "请求报文中未包含toType");
-Assert.hasKeyAndValue(reqJson, "stock", "请求报文中未包含stock");
-Assert.hasKeyAndValue(reqJson, "validityDay", "请求报文中未包含validityDay");
+        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
+        Assert.hasKeyAndValue(reqJson, "toType", "请求报文中未包含toType");
+        Assert.hasKeyAndValue(reqJson, "stock", "请求报文中未包含stock");
+        Assert.hasKeyAndValue(reqJson, "validityDay", "请求报文中未包含validityDay");
 
     }
 
@@ -67,8 +74,18 @@ Assert.hasKeyAndValue(reqJson, "validityDay", "请求报文中未包含validityD
     @Java110Transactional
     public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
-       CouponPropertyPoolPo couponPropertyPoolPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolPo.class);
+        CommunityDto communityDto = new CommunityDto();
+        communityDto.setCommunityId(reqJson.getString("communityId"));
+        List<CommunityDto> communityDtos = communityV1InnerServiceSMOImpl.queryCommunitys(communityDto);
+
+        Assert.listOnlyOne(communityDtos,"小区不存在");
+
+        CouponPropertyPoolPo couponPropertyPoolPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolPo.class);
         couponPropertyPoolPo.setCppId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        couponPropertyPoolPo.setCommunityName(communityDtos.get(0).getName());
+        couponPropertyPoolPo.setFromType(CouponPropertyPoolDto.FROM_TYPE_CUSTOM);
+        couponPropertyPoolPo.setFromId(couponPropertyPoolPo.getCppId());
+        couponPropertyPoolPo.setState(CouponPropertyPoolDto.STATE_Y);
         int flag = couponPropertyPoolV1InnerServiceSMOImpl.saveCouponPropertyPool(couponPropertyPoolPo);
 
         if (flag < 1) {

+ 6 - 6
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/SaveCouponPropertyPoolConfigCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -28,9 +28,9 @@ import com.java110.utils.exception.CmdException;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
 
 /**
  * 类表述:保存
@@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.saveCouponPropertyPoolConfig")
+@Java110Cmd(serviceCode = "couponProperty.saveCouponPropertyPoolConfig")
 public class SaveCouponPropertyPoolConfigCmd extends Cmd {
 
     private static Logger logger = LoggerFactory.getLogger(SaveCouponPropertyPoolConfigCmd.class);
@@ -55,8 +55,8 @@ public class SaveCouponPropertyPoolConfigCmd extends Cmd {
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "couponId", "请求报文中未包含couponId");
-Assert.hasKeyAndValue(reqJson, "columnKey", "请求报文中未包含columnKey");
-Assert.hasKeyAndValue(reqJson, "columnValue", "请求报文中未包含columnValue");
+        Assert.hasKeyAndValue(reqJson, "columnKey", "请求报文中未包含columnKey");
+        Assert.hasKeyAndValue(reqJson, "columnValue", "请求报文中未包含columnValue");
 
     }
 
@@ -64,7 +64,7 @@ Assert.hasKeyAndValue(reqJson, "columnValue", "请求报文中未包含columnVal
     @Java110Transactional
     public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
-       CouponPropertyPoolConfigPo couponPropertyPoolConfigPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolConfigPo.class);
+        CouponPropertyPoolConfigPo couponPropertyPoolConfigPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolConfigPo.class);
         couponPropertyPoolConfigPo.setConfigId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
         int flag = couponPropertyPoolConfigV1InnerServiceSMOImpl.saveCouponPropertyPoolConfig(couponPropertyPoolConfigPo);
 

+ 7 - 9
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/UpdateCouponPropertyPoolCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -21,32 +21,31 @@ import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolV1InnerServiceSMO;
 import com.java110.po.couponPropertyPool.CouponPropertyPoolPo;
 import com.java110.utils.exception.CmdException;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
 
 
 /**
  * 类表述:更新
- * 服务编码:couponPropertyPool.updateCouponPropertyPool
- * 请求路劲:/app/couponPropertyPool.UpdateCouponPropertyPool
+ * 服务编码:couponProperty.updateCouponPropertyPool
+ * 请求路劲:/app/couponProperty.UpdateCouponPropertyPool
  * add by 吴学文 at 2022-11-19 23:00:42 mail: 928255095@qq.com
  * open source address: https://gitee.com/wuxw7/MicroCommunity
  * 官网:http://www.homecommunity.cn
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.updateCouponPropertyPool")
+@Java110Cmd(serviceCode = "couponProperty.updateCouponPropertyPool")
 public class UpdateCouponPropertyPoolCmd extends Cmd {
 
-  private static Logger logger = LoggerFactory.getLogger(UpdateCouponPropertyPoolCmd.class);
+    private static Logger logger = LoggerFactory.getLogger(UpdateCouponPropertyPoolCmd.class);
 
 
     @Autowired
@@ -55,7 +54,6 @@ public class UpdateCouponPropertyPoolCmd extends Cmd {
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "cppId", "cppId不能为空");
-Assert.hasKeyAndValue(reqJson, "cppId", "cppId不能为空");
 
     }
 
@@ -63,7 +61,7 @@ Assert.hasKeyAndValue(reqJson, "cppId", "cppId不能为空");
     @Java110Transactional
     public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
-       CouponPropertyPoolPo couponPropertyPoolPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolPo.class);
+        CouponPropertyPoolPo couponPropertyPoolPo = BeanConvertUtil.covertBean(reqJson, CouponPropertyPoolPo.class);
         int flag = couponPropertyPoolV1InnerServiceSMOImpl.updateCouponPropertyPool(couponPropertyPoolPo);
 
         if (flag < 1) {

+ 2 - 3
service-acct/src/main/java/com/java110/acct/cmd/couponPropertyPool/UpdateCouponPropertyPoolConfigCmd.java

@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.java110.acct.cmd.couponPropertyPool;
+package com.java110.acct.cmd.couponProperty;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
@@ -21,7 +21,6 @@ import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.acct.ICouponPropertyPoolConfigV1InnerServiceSMO;
 import com.java110.po.couponPropertyPoolConfig.CouponPropertyPoolConfigPo;
 import com.java110.utils.exception.CmdException;
@@ -43,7 +42,7 @@ import org.slf4j.LoggerFactory;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Java110Cmd(serviceCode = "couponPropertyPool.updateCouponPropertyPoolConfig")
+@Java110Cmd(serviceCode = "couponProperty.updateCouponPropertyPoolConfig")
 public class UpdateCouponPropertyPoolConfigCmd extends Cmd {
 
   private static Logger logger = LoggerFactory.getLogger(UpdateCouponPropertyPoolConfigCmd.class);