From d937205d5824dc44ab1567cf6f84fbfa817baa92 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 17 一月 2022 17:56:13 +0800
Subject: [PATCH] 优化代码

---
 service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java b/service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java
index 6731e7a..2585c58 100755
--- a/service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java
+++ b/service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java
@@ -20,12 +20,14 @@
 import com.java110.intf.community.IRepairUserInnerServiceSMO;
 import com.java110.intf.store.ISmallWeChatInnerServiceSMO;
 import com.java110.intf.store.ISmallWechatAttrInnerServiceSMO;
-import com.java110.intf.user.*;
+import com.java110.intf.user.IOwnerAppUserInnerServiceSMO;
+import com.java110.intf.user.IStaffAppAuthInnerServiceSMO;
+import com.java110.intf.user.IUserInnerServiceSMO;
 import com.java110.job.adapt.DatabusAdaptImpl;
 import com.java110.utils.cache.MappingCache;
 import com.java110.utils.util.StringUtil;
 import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Component;
@@ -132,7 +134,7 @@
                 sendMsg(paramIn, communityDtos.get(0));
                 //娲惧崟鎴愬姛缁欎笟涓绘帹閫佷俊鎭�
                 publishMsg(paramIn, communityDtos.get(0));
-            } else if (repairState.equals("1100") && repairWay.equals("100")) {
+            } else if (repairState.equals("1100") && (repairWay.equals("100") || repairWay.equals("300"))) {
                 String staffId = "";
                 if (repairUserDtos.size() > 1) {
                     staffId = repairUserDtos.get(1).getStaffId();
@@ -156,7 +158,7 @@
                 if (repairUserDtos.size() > 1) {
                     //缁欑淮淇笀鍌呮帹閫佷俊鎭�
                     sendMsg(paramIn, communityDtos.get(0));
-                }else {
+                } else {
                     //鎶㈠崟鎴愬姛缁欑淮淇笀鍌呮帹閫佷俊鎭�
                     publishMessage(paramIn, communityDtos.get(0));
                 }
@@ -389,8 +391,7 @@
      * @param paramIn
      * @param communityDto
      */
-    private void
-    publishMessage(JSONObject paramIn, CommunityDto communityDto) {
+    private void publishMessage(JSONObject paramIn, CommunityDto communityDto) {
         //鏌ヨ鍏紬鍙烽厤缃�
         SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
         smallWeChatDto.setWeChatType("1100");

--
Gitblit v1.8.0