This commit is contained in:
parent
39c23389ae
commit
bafeea7679
|
|
@ -218,7 +218,7 @@ public class DeviceOfBdServiceImpl implements IDeviceOfBdService {
|
||||||
}
|
}
|
||||||
int result = mapper.isBdDeviceDetailExist(vo);
|
int result = mapper.isBdDeviceDetailExist(vo);
|
||||||
if (result > 0) {
|
if (result > 0) {
|
||||||
return AjaxResult.error("检测不能重复");
|
return AjaxResult.error("检测名称不能重复");
|
||||||
}
|
}
|
||||||
if (StringUtils.isEmpty(vo.getId())) {
|
if (StringUtils.isEmpty(vo.getId())) {
|
||||||
String id = IdUtils.getuid();
|
String id = IdUtils.getuid();
|
||||||
|
|
|
||||||
|
|
@ -169,11 +169,7 @@
|
||||||
</trim>
|
</trim>
|
||||||
</if>
|
</if>
|
||||||
<if test="type == 2">
|
<if test="type == 2">
|
||||||
UPDATE tb_device_value
|
UPDATE tb_device_value SET unit = #{unit} WHERE attribute_id = #{id}
|
||||||
<set>
|
|
||||||
<if test="unit != null and unit != ''">unit = #{unit},</if>
|
|
||||||
</set>
|
|
||||||
WHERE attribute_id = #{id}
|
|
||||||
</if>
|
</if>
|
||||||
</insert>
|
</insert>
|
||||||
<!--删除边带设备-->
|
<!--删除边带设备-->
|
||||||
|
|
@ -274,6 +270,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY tbd.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<!--边带设备编码是否重复-->
|
<!--边带设备编码是否重复-->
|
||||||
<select id="isDeviceCodeExist" resultType="java.lang.Integer">
|
<select id="isDeviceCodeExist" resultType="java.lang.Integer">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue