This commit is contained in:
cwchen 2024-04-18 19:34:06 +08:00
parent 39c23389ae
commit bafeea7679
2 changed files with 3 additions and 6 deletions

View File

@ -218,7 +218,7 @@ public class DeviceOfBdServiceImpl implements IDeviceOfBdService {
}
int result = mapper.isBdDeviceDetailExist(vo);
if (result > 0) {
return AjaxResult.error("检测不能重复");
return AjaxResult.error("检测名称不能重复");
}
if (StringUtils.isEmpty(vo.getId())) {
String id = IdUtils.getuid();

View File

@ -169,11 +169,7 @@
</trim>
</if>
<if test="type == 2">
UPDATE tb_device_value
<set>
<if test="unit != null and unit != ''">unit = #{unit},</if>
</set>
WHERE attribute_id = #{id}
UPDATE tb_device_value SET unit = #{unit} WHERE attribute_id = #{id}
</if>
</insert>
<!--删除边带设备-->
@ -274,6 +270,7 @@
)
</if>
</where>
ORDER BY tbd.create_time DESC
</select>
<!--边带设备编码是否重复-->
<select id="isDeviceCodeExist" resultType="java.lang.Integer">