增加配置批量审核不通过和删除操作

除高级功能菜单下配置
This commit is contained in:
zhangwenqing
2019-04-12 19:10:21 +08:00
parent 47029f0eaf
commit 84f5646f86
23 changed files with 832 additions and 232 deletions

View File

@@ -41,4 +41,8 @@ public interface CommonPolicyDao {
public List<CachePolicyUserRegion> getCachePolicyUserRegionList(CachePolicyUserRegion entity);
public List<CachePolicyUserRegion> getCachePolicyByUserRegionList(@Param("ids")String ids);
public void deleteCfgBatch(@Param("tableName")String tableName,
@Param("entity")BaseCfg entity,
@Param("compileIds")List compileIds);
}

View File

@@ -1013,5 +1013,17 @@
where a.CFG_ID in (${ids})
</select>
<update id="deleteCfgBatch">
UPDATE ${tableName}
SET is_valid =-1,is_audit=0,
editor_id = #{entity.editorId,jdbcType=INTEGER},
edit_time = #{entity.editTime,jdbcType=TIMESTAMP}
<where>
AND compile_id IN
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
#{compileId}
</foreach>
</where>
</update>
</mapper>