补充提交.

This commit is contained in:
zhangwenqing
2019-04-16 17:12:49 +08:00
parent a1998f24f7
commit f52651b382
5 changed files with 13 additions and 28 deletions

View File

@@ -30,7 +30,4 @@ public interface SysOfficeDao extends TreeDao<SysOffice> {
List<SysOffice> selectOfficeForLetter(Map<String, Object> hmap);
void clearPolicies(@Param("tableName")String tableName);
}

View File

@@ -327,10 +327,4 @@
<if test="dbName == 'mysql'">CONCAT('%,', #{id}, ',%')</if>
</update>
<update id="clearPolicies" parameterType="java.lang.String">
UPDATE ${tableName}
SET is_valid = -1, is_audit = 0
WHERE is_valid != -1
</update>
</mapper>

View File

@@ -45,4 +45,6 @@ public interface CommonPolicyDao {
public void deleteCfgBatch(@Param("tableName")String tableName,
@Param("entity")BaseCfg entity,
@Param("compileIds")List compileIds);
public void clearPolicies(@Param("tableName")String tableName);
}

View File

@@ -1042,4 +1042,10 @@
</where>
</update>
<update id="clearPolicies" parameterType="java.lang.String">
UPDATE ${tableName}
SET is_valid = -1, is_audit = 0
WHERE is_valid != -1
</update>
</mapper>