编译配置生效时,校验编译下是否存在已经被删除的asn域配置。如果存在,提示用户重新编辑。
This commit is contained in:
@@ -32,4 +32,5 @@ public interface AsnGroupInfoDao extends CrudDao<AsnGroupInfo> {
|
||||
List<AsnGroupInfo> findAsnGroupInfoByAsnGroup(AsnGroupInfo asnGroupInfo);
|
||||
void updateIsUsedAndIsValid(@Param("groupIds")List groupIds,@Param("isUsed")Integer isUsed,@Param("isValid")Integer isValid);
|
||||
List<AsnGroupInfo> findAsnGroupInfoByGroupIds(@Param("groupIds")List groupIds,@Param("isUsed")Integer isUsed);
|
||||
List<String> findAsnGroupIdByGroupIds(@Param("groupIds")String groupIds);
|
||||
}
|
||||
@@ -377,4 +377,14 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="findAsnGroupIdByGroupIds" resultType="java.lang.String">
|
||||
SELECT
|
||||
group_id
|
||||
FROM
|
||||
asn_group_info r
|
||||
<where>
|
||||
AND r.is_valid != -1
|
||||
and r.group_id in (${groupIds})
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -58,4 +58,6 @@ public interface StringCfgDao extends CrudDao<BaseStringCfg>{
|
||||
// 导入配置时数据批量入库使用
|
||||
public void saveStringCfgBatch(BaseStringCfg cfg);
|
||||
public void saveComplexkeywordCfgBatch(ComplexkeywordCfg cfg);
|
||||
|
||||
public List<AsnKeywordCfg> findAsnKeywordCfgByCompileId(@Param("compileIds")String compileIds);
|
||||
}
|
||||
|
||||
@@ -977,4 +977,8 @@
|
||||
#{isHexbin,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<select id="findAsnKeywordCfgByCompileId" resultMap="AsnKeywordMap" >
|
||||
select <include refid="AsnKeywordCfg_Column" /> from asn_keyword_cfg r
|
||||
where r.compile_id in (${compileIds}) and r.is_audit=0 and r.is_valid=0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user