Bläddra i källkod

1.增加参数修改保存判断参数编号是否重复以及参数编号不可修改。

zjh 2 år sedan
förälder
incheckning
967674415f

BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/mapper/business/TSysParamMapper.java


BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/service/business/TSysParamService.java


+ 8 - 0
cbkj_web_api/src/main/resources/mappers/business/TSysParamMapper.xml

@@ -221,4 +221,12 @@ DEL_DATE,DEL_USER,DEL_USERNAME,IS_DEL,SEQN,PAR_CLASSIFY,PAR_NUMBER
         from t_sys_param where IS_DEL = '0' AND  PAR_CLASSIFY IS NOT NULL
         GROUP BY PAR_CLASSIFY
     </select>
+    <select id="getParamNumberRepeat" resultType="java.lang.Integer" parameterType="TSysParam">
+        select count(1) cun from t_sys_param where is_del = '0'
+                                               and PAR_NUMBER = #{parNumber}
+        <if test="parId != null and parId!='' ">
+            and PAR_ID = #{parId}
+        </if>
+
+    </select>
 </mapper>