1.添加手机号和身份证的安全性和保密性
2.添加对应的定时任务
This commit is contained in:
@@ -137,4 +137,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<update id="batchUpdateEncrypt">
|
||||
UPDATE company
|
||||
SET legal_id_card = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalIdCard}
|
||||
</foreach>
|
||||
END,
|
||||
legal_id_card_cipher = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalIdCardCipher}
|
||||
</foreach>
|
||||
END,
|
||||
legal_id_card_encrypt = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalIdCardEncrypt}
|
||||
</foreach>
|
||||
END,
|
||||
legal_phone = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalPhone}
|
||||
</foreach>
|
||||
END,
|
||||
legal_phone_cipher = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalPhoneCipher}
|
||||
</foreach>
|
||||
END,
|
||||
legal_phone_encrypt = CASE
|
||||
<foreach collection="list" item="item" separator="">
|
||||
WHEN company_id = #{item.companyId} THEN #{item.legalPhoneEncrypt}
|
||||
</foreach>
|
||||
END
|
||||
WHERE company_id IN
|
||||
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||
#{item.companyId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectCompanyEncryptList" parameterType="Company" resultMap="CompanyResult">
|
||||
<include refid="selectCompanyVo"/>
|
||||
<where> del_flag = '0' and (legal_id_card is not null or legal_phone is not null)
|
||||
<if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="location != null and location != ''"> and location like concat('%', cast(#{location, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
||||
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
|
||||
<if test="nature != null and nature != ''"> and nature = #{nature}</if>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
|
||||
<if test="regionCode != null and regionCode != ''"> and region_code = #{regionCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user