工器具问题修改

This commit is contained in:
cwchen 2025-11-17 18:47:29 +08:00
parent 4325087c78
commit 2b3eda2de9
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ public class TechnicalService {
// 1.技术方案库类别是否存在子集
int result = imdTechnicalService.hasChildData(dto);
if(result > 0){
return AjaxResult.error("技术方案库类别子集数据,无法删除");
return AjaxResult.error("技术方案库类别存在子集数据,无法删除");
}
// 2.添加技术方案库类别数据
imdTechnicalService.operTypeData(dto, 3);

View File

@ -104,10 +104,10 @@
<!--企业知识库->工器具库->查询工器具名称是否重复-->
<select id="isRepeat" resultType="java.lang.Integer">
<if test="toolId == null">
SELECT COUNT(*) FROM tb_enterprise_tool WHERE tool_name = #{toolName} AND model = #{model} AND del_flag = '0'
SELECT COUNT(*) FROM tb_enterprise_tool WHERE tool_name = #{toolName} AND model = #{model} AND enterprise_id = #{enterpriseId} AND del_flag = '0'
</if>
<if test="toolId!=null">
SELECT COUNT(*) FROM tb_enterprise_tool WHERE tool_id !=#{toolId} AND tool_name = #{toolName} AND model = #{model} AND del_flag = '0'
SELECT COUNT(*) FROM tb_enterprise_tool WHERE tool_id !=#{toolId} AND tool_name = #{toolName} AND model = #{model} AND enterprise_id = #{enterpriseId} AND del_flag = '0'
</if>
</select>
<!--企业知识库->工器具库->查询已存在的工器具-->