Browse Source

账户2.0——导入账户初版

zhaoxian 3 years ago
parent
commit
4165183286

+ 1 - 1
ruixuan-live/src/main/java/com/ruixuan/live/service/impl/KuaishouLiveUserAccountServiceImpl.java

@@ -239,8 +239,8 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
                     obj.put("accountName", account.getAccountName());
                     obj.put("createrId", account.getCreaterId());
                 }
+                accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
                 if (Check.isNotNull(collaborators)) {
-                    accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
                     accountPartMapper.replaceBatch(collaborators);
                 }
             }

+ 8 - 8
ruixuan-live/src/main/resources/mapper/live/KuaishouLiveUserAccountMapper.xml

@@ -312,17 +312,17 @@
         update kuaishou_live_user_account
         <trim prefix="SET" suffixOverrides=",">
             <if test="projectId != null">project_id = #{projectId},</if>
-            <if test="ksId != null">ks_id = #{ksId},</if>
-            <if test="ksName != null">ks_name = #{ksName},</if>
-            <if test="accountId != null">account_id = #{accountId},</if>
-            <if test="accountName != null">account_name = #{accountName},</if>
-            <if test="accountType != null">account_type = #{accountType},</if>
+            ks_id = #{ksId},
+           ks_name = #{ksName},
+            account_id = #{accountId},
+            account_name = #{accountName},
+            account_type = #{accountType},
             <if test="paymentMethod != null">payment_method = #{paymentMethod},</if>
-            <if test="saleLeaderId != null">sale_leader_id = #{saleLeaderId},</if>
+            sale_leader_id = #{saleLeaderId},
             <if test="saleLeader != null">sale_leader = #{saleLeader},</if>
-            <if test="operatorLeaderId != null">operator_leader_id = #{operatorLeaderId},</if>
+            operator_leader_id = #{operatorLeaderId},
             <if test="operatorLeader != null">operator_leader = #{operatorLeader},</if>
-            <if test="designerLeaderId != null">designer_leader_id = #{designerLeaderId},</if>
+            designer_leader_id = #{designerLeaderId},
             <if test="designerLeader != null">designer_leader = #{designerLeader},</if>
             <if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
             <if test="firstIndustry != null">first_industry = #{firstIndustry},</if>