From 5d167ea6e943dd1574e0e6ed70ff25b8d4830f61 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 16 六月 2022 11:47:49 +0800
Subject: [PATCH] 优化代码

---
 service-user/src/main/java/com/java110/user/cmd/ownerCar/SaveOwnerCarCmd.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/service-user/src/main/java/com/java110/user/cmd/ownerCar/SaveOwnerCarCmd.java b/service-user/src/main/java/com/java110/user/cmd/ownerCar/SaveOwnerCarCmd.java
index dbdad47..79a4ab1 100644
--- a/service-user/src/main/java/com/java110/user/cmd/ownerCar/SaveOwnerCarCmd.java
+++ b/service-user/src/main/java/com/java110/user/cmd/ownerCar/SaveOwnerCarCmd.java
@@ -19,7 +19,7 @@
 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.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
 import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.intf.user.IOwnerCarV1InnerServiceSMO;
@@ -29,7 +29,7 @@
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
 import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 
 /**
@@ -43,7 +43,7 @@
  * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
  */
 @Java110Cmd(serviceCode = "ownerCar.saveOwnerCar")
-public class SaveOwnerCarCmd extends AbstractServiceCmdListener {
+public class SaveOwnerCarCmd extends Cmd {
 
     private static Logger logger = LoggerFactory.getLogger(SaveOwnerCarCmd.class);
 
@@ -56,9 +56,7 @@
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "carId", "璇锋眰鎶ユ枃涓湭鍖呭惈carId");
         Assert.hasKeyAndValue(reqJson, "carNum", "璇锋眰鎶ユ枃涓湭鍖呭惈carNum");
-        Assert.hasKeyAndValue(reqJson, "carBrand", "璇锋眰鎶ユ枃涓湭鍖呭惈carBrand");
         Assert.hasKeyAndValue(reqJson, "carType", "璇锋眰鎶ユ枃涓湭鍖呭惈carType");
-        Assert.hasKeyAndValue(reqJson, "carColor", "璇锋眰鎶ユ枃涓湭鍖呭惈carColor");
         Assert.hasKeyAndValue(reqJson, "psId", "璇锋眰鎶ユ枃涓湭鍖呭惈psId");
         Assert.hasKeyAndValue(reqJson, "userId", "璇锋眰鎶ユ枃涓湭鍖呭惈userId");
         Assert.hasKeyAndValue(reqJson, "statusCd", "璇锋眰鎶ユ枃涓湭鍖呭惈statusCd");

--
Gitblit v1.8.0