|
@@ -26,15 +26,15 @@ public interface CodeOnlyOneMapper extends MiniserviceBaseDao {
|
|
|
* @param pumpcode
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select count(1) from d_pump where code =#{pumpcode} and id!=#{id} ")
|
|
|
- Integer getPumpcodeNum(String pumpcode, Integer id);
|
|
|
+ @Select("select count(1) from d_pump where code =#{pumpcode} and id!=#{id} and aid =#{aid} ")
|
|
|
+ Integer getPumpcodeNum(String pumpcode, Integer id,Integer aid);
|
|
|
/**
|
|
|
* 风机编码唯一 判断
|
|
|
* @param fancode
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select count(1) from d_ventfan where code =#{fancode} and id!=#{id} ")
|
|
|
- Integer getFancodeNum(String fancode, Integer id);
|
|
|
+ @Select("select count(1) from d_ventfan where code =#{fancode} and id!=#{id} and aid =#{aid}")
|
|
|
+ Integer getFancodeNum(String fancode, Integer id,Integer aid);
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -42,8 +42,32 @@ public interface CodeOnlyOneMapper extends MiniserviceBaseDao {
|
|
|
* @param code
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select count(1) from d_ventdoor where code =#{code} and id!=#{id} ")
|
|
|
- Integer getDoorcodeNum(String code, Integer id);
|
|
|
+ @Select("select count(1) from d_ventdoor where code =#{code} and id!=#{id} and aid =#{aid} ")
|
|
|
+ Integer getDoorcodeNum(String code, Integer id,Integer aid);
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 水泵base编码唯一 判断
|
|
|
+ * @param pumpcode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select count(1) from d_pump_base where code =#{pumpcode} and id!=#{id} ")
|
|
|
+ Integer getBasePumpcodeNum(String pumpcode, Integer id);
|
|
|
+ /**
|
|
|
+ * 风机base编码唯一 判断
|
|
|
+ * @param fancode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select count(1) from d_ventfan_base where code =#{fancode} and id!=#{id} ")
|
|
|
+ Integer getBaseFancodeNum(String fancode, Integer id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 风门base编码唯一 判断
|
|
|
+ * @param code
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select count(1) from d_ventdoor_base where code =#{code} and id!=#{id} ")
|
|
|
+ Integer getBaseDoorcodeNum(String code, Integer id);
|
|
|
/**
|
|
|
* 节点编码唯一 判断
|
|
|
* @param code
|