各业务配置批量下发功能提交
This commit is contained in:
@@ -777,55 +777,66 @@
|
||||
|
||||
</update>
|
||||
<update id="auditCfgBatch">
|
||||
<if test="tableName != 'config_group_info'" >
|
||||
update ${tableName} set is_audit = #{entity.isAudit,jdbcType=INTEGER},
|
||||
auditor_id = #{entity.auditorId,jdbcType=INTEGER},
|
||||
audit_time = #{entity.auditTime,jdbcType=TIMESTAMP}
|
||||
<if test="entity.isValid != null" >
|
||||
,is_valid = #{entity.isValid,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="requestId != null" >
|
||||
,cancel_request_id = #{requestId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<where>
|
||||
<choose>
|
||||
<when test="tableName == 'app_ip_cfg'">
|
||||
and user_region1 in
|
||||
<choose>
|
||||
<when test="tableName == 'config_group_info'" >
|
||||
update ${tableName} set is_issued = #{entity.isValid,jdbcType=INTEGER},
|
||||
update_time = #{entity.auditTime,jdbcType=TIMESTAMP}
|
||||
<where>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<when test=" tableName == 'asn_ip_cfg'">
|
||||
and region_id in
|
||||
</where>
|
||||
</when>
|
||||
<when test="tableName == 'asn_group_info'" >
|
||||
update ${tableName} set is_valid = #{entity.isValid,jdbcType=INTEGER}
|
||||
<where>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<when test=" tableName == 'pxy_obj_trusted_ca_crl'">
|
||||
and cert_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<otherwise>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</if>
|
||||
<if test="tableName == 'config_group_info'" >
|
||||
update ${tableName} set is_issued = #{entity.isAudit,jdbcType=INTEGER},
|
||||
update_time = #{entity.auditTime,jdbcType=TIMESTAMP}
|
||||
<where>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</where>
|
||||
</if>
|
||||
</where>
|
||||
</when>
|
||||
<otherwise>
|
||||
update ${tableName} set is_audit = #{entity.isAudit,jdbcType=INTEGER},
|
||||
auditor_id = #{entity.auditorId,jdbcType=INTEGER},
|
||||
audit_time = #{entity.auditTime,jdbcType=TIMESTAMP}
|
||||
<if test="entity.isValid != null" >
|
||||
,is_valid = #{entity.isValid,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="requestId != null" >
|
||||
,cancel_request_id = #{requestId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<where>
|
||||
<choose>
|
||||
<when test="tableName == 'app_ip_cfg'">
|
||||
and user_region1 in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<when test=" tableName == 'asn_ip_cfg'">
|
||||
and region_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<when test=" tableName == 'pxy_obj_trusted_ca_crl'">
|
||||
and cert_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</when >
|
||||
<otherwise>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</otherwise>
|
||||
</choose>
|
||||
</update>
|
||||
<update id="deleteHttpUrlCfg">
|
||||
update ${tableName} set is_valid =-1,is_audit = 0,
|
||||
|
||||
Reference in New Issue
Block a user