工器具问题修改
This commit is contained in:
parent
4325087c78
commit
2b3eda2de9
|
|
@ -136,7 +136,7 @@ public class TechnicalService {
|
||||||
// 1.技术方案库类别是否存在子集
|
// 1.技术方案库类别是否存在子集
|
||||||
int result = imdTechnicalService.hasChildData(dto);
|
int result = imdTechnicalService.hasChildData(dto);
|
||||||
if(result > 0){
|
if(result > 0){
|
||||||
return AjaxResult.error("技术方案库类别子集数据,无法删除");
|
return AjaxResult.error("技术方案库类别存在子集数据,无法删除");
|
||||||
}
|
}
|
||||||
// 2.添加技术方案库类别数据
|
// 2.添加技术方案库类别数据
|
||||||
imdTechnicalService.operTypeData(dto, 3);
|
imdTechnicalService.operTypeData(dto, 3);
|
||||||
|
|
|
||||||
|
|
@ -104,10 +104,10 @@
|
||||||
<!--企业知识库->工器具库->查询工器具名称是否重复-->
|
<!--企业知识库->工器具库->查询工器具名称是否重复-->
|
||||||
<select id="isRepeat" resultType="java.lang.Integer">
|
<select id="isRepeat" resultType="java.lang.Integer">
|
||||||
<if test="toolId == null">
|
<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>
|
||||||
<if test="toolId!=null">
|
<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>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<!--企业知识库->工器具库->查询已存在的工器具-->
|
<!--企业知识库->工器具库->查询已存在的工器具-->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue