From ce8e087fedd5e6949ab98b0859b824236f042841 Mon Sep 17 00:00:00 2001
From: 1098226878@qq.com <1098226878@qq.com>
Date: 星期二, 28 十二月 2021 22:21:07 +0800
Subject: [PATCH] 优化代码

---
 /dev/null |   79 ---------------------------------------
 1 files changed, 0 insertions(+), 79 deletions(-)

diff --git a/service-acct/src/main/java/com/java110/acct/cmd/couponShopPool/UpdateCouponShopPoolCmd.java b/service-acct/src/main/java/com/java110/acct/cmd/couponShopPool/UpdateCouponShopPoolCmd.java
deleted file mode 100644
index 2bbccbf..0000000
--- a/service-acct/src/main/java/com/java110/acct/cmd/couponShopPool/UpdateCouponShopPoolCmd.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright 2017-2020 鍚村鏂� and java110 team.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.java110.acct.cmd.couponShopPool;
-
-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.AbstractServiceCmdListener;
-import com.java110.core.event.cmd.CmdEvent;
-import com.java110.core.factory.GenerateCodeFactory;
-import com.java110.intf.acct.ICouponShopPoolV1InnerServiceSMO;
-import com.java110.po.couponShopPool.CouponShopPoolPo;
-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;
-
-
-/**
- * 绫昏〃杩帮細鏇存柊
- * 鏈嶅姟缂栫爜锛歝ouponShopPool.updateCouponShopPool
- * 璇锋眰璺姴锛�/app/couponShopPool.UpdateCouponShopPool
- * add by 鍚村鏂� at 2021-11-24 00:11:45 mail: 928255095@qq.com
- * open source address: https://gitee.com/wuxw7/MicroCommunity
- * 瀹樼綉锛歨ttp://www.homecommunity.cn
- * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
- * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
- */
-@Java110Cmd(serviceCode = "couponShopPool.updateCouponShopPool")
-public class UpdateCouponShopPoolCmd extends AbstractServiceCmdListener {
-
-    private static Logger logger = LoggerFactory.getLogger(UpdateCouponShopPoolCmd.class);
-
-
-    @Autowired
-    private ICouponShopPoolV1InnerServiceSMO couponShopPoolV1InnerServiceSMOImpl;
-
-    @Override
-    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
-        Assert.hasKeyAndValue(reqJson, "spId", "spId涓嶈兘涓虹┖");
-        Assert.hasKeyAndValue(reqJson, "poolId", "璇锋眰鎶ユ枃涓湭鍖呭惈poolId");
-        Assert.hasKeyAndValue(reqJson, "shopId", "璇锋眰鎶ユ枃涓湭鍖呭惈shopId");
-        Assert.hasKeyAndValue(reqJson, "couponName", "璇锋眰鎶ユ枃涓湭鍖呭惈couponName");
-        Assert.hasKeyAndValue(reqJson, "actualPrice", "璇锋眰鎶ユ枃涓湭鍖呭惈actualPrice");
-        Assert.hasKeyAndValue(reqJson, "stock", "璇锋眰鎶ユ枃涓湭鍖呭惈stock");
-        Assert.hasKeyAndValue(reqJson, "validityDay", "璇锋眰鎶ユ枃涓湭鍖呭惈validityDay");
-    }
-
-    @Override
-    @Java110Transactional
-    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
-
-        CouponShopPoolPo couponShopPoolPo = BeanConvertUtil.covertBean(reqJson, CouponShopPoolPo.class);
-        int flag = couponShopPoolV1InnerServiceSMOImpl.updateCouponShopPool(couponShopPoolPo);
-
-        if (flag < 1) {
-            throw new CmdException("鏇存柊鏁版嵁澶辫触");
-        }
-
-        cmdDataFlowContext.setResponseEntity(ResultVo.success());
-    }
-}

--
Gitblit v1.8.0