njs 1 year ago
parent
commit
60ea8e8c0c

+ 5 - 5
suishenbang-sync/suishenbang-sync-common/src/main/java/com/dgtly/sync/service/AnalysisDiyCustomerComponent.java

@@ -1286,19 +1286,19 @@ public class AnalysisDiyCustomerComponent {
      *
      *3.7经销商经销人员门店
      * **/
-    public Integer buildSysUserBz(JSONArray STAFF, Set<String> loginNameSet,Set<String> diyNameSet, List<SyncFailDetail> failDetails,String packageId, Map<String,Customers> cusMap,Integer isManager){
+    public Integer buildSysUserBz(JSONArray BZ, Set<String> loginNameSet,Set<String> diyNameSet, List<SyncFailDetail> failDetails,String packageId, Map<String,Customers> cusMap,Integer isManager){
         //JSONArray jsonArray = json.getJSONArray("data");
         int count = 0;
         List<String > interfaceList10=new ArrayList<>();
-        for(int x =0;x<STAFF.size();x++){
-            JSONObject jsonObject = STAFF.getJSONObject(x);
+        for(int x =0;x<BZ.size();x++){
+            JSONObject jsonObject = BZ.getJSONObject(x);
             String loginName = jsonObject.getString("userid");
             if(loginName !=null && !"".equals(loginName)){
                     interfaceList10.add(loginName);
             }
         }
-        for(int i =0;i<STAFF.size();i++){
-            JSONObject jo = STAFF.getJSONObject(i);
+        for(int i =0;i<BZ.size();i++){
+            JSONObject jo = BZ.getJSONObject(i);
 
             try {
                 String userNo = jo.getString("userNo");

+ 1 - 1
suishenbang-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -349,7 +349,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="remark != null">remark = #{remark},</if>
  			<if test="isConsignee != null">is_consignee = #{isConsignee},</if>
  			<if test="isSync != null">is_sync = #{isSync},</if>
-			quit = #{quit},
+			<if test="quit != null">quit = #{quit},</if>
  			update_time = sysdate()
  		</set>
  		where user_id = #{userId}