This commit is contained in:
parent
39c23389ae
commit
bafeea7679
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue