Selaa lähdekoodia

修改sm4加密

zyl 3 kuukautta sitten
vanhempi
commit
a08e6fc434
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/resources/mapper/JiaMiMapper.xml

+ 2 - 2
src/main/resources/mapper/JiaMiMapper.xml

@@ -5,12 +5,12 @@
 
 
     <select id="handleEncryption" resultType="com.citygis.pojo.ColumnInfo">
-        select ${id} as id, ${column} as value from ${tableName}
+        select ${id} as id, ${column} as value from ${tableName} where IS_ENCRYPT is null
     </select>
 
 
     <update id="updateEncryption">
-        update ${tableName} set ${column} = #{encryString}  where ID = ${id}
+        update ${tableName} set ${column} = #{encryString} , IS_ENCRYPT = 1 where ID = ${id}
     </update>
 
 </mapper>