Bladeren bron

优化代码

java110 4 jaren geleden
bovenliggende
commit
9363303c07
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      java110-db/src/main/resources/mapper/user/UserAttrV1ServiceDaoImplMapper.xml

+ 3 - 3
java110-db/src/main/resources/mapper/user/UserAttrV1ServiceDaoImplMapper.xml

@@ -53,9 +53,6 @@
         <if test="newBId != null and newBId != ''">
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
             ,t.b_id = #{newBId}
         </if>
         </if>
-        <if test="attrId !=null and attrId != ''">
-            , t.attr_id= #{attrId}
-        </if>
         <if test="specCd !=null and specCd != ''">
         <if test="specCd !=null and specCd != ''">
             , t.spec_cd= #{specCd}
             , t.spec_cd= #{specCd}
         </if>
         </if>
@@ -69,6 +66,9 @@
         <if test="userId !=null and userId != ''">
         <if test="userId !=null and userId != ''">
             and t.user_id= #{userId}
             and t.user_id= #{userId}
         </if>
         </if>
+        <if test="attrId !=null and attrId != ''">
+            and t.attr_id= #{attrId}
+        </if>
 
 
     </update>
     </update>