Bläddra i källkod

国标字典维护接口

guxinyu 2 år sedan
förälder
incheckning
e1b35b9470

BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/dic/TDicBaseVo.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/dic/TDicBaseController.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/mapper/dic/TDicBaseMapper.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/dic/TDicBaseService.java


+ 17 - 0
cbkj_web_parameter/src/main/resources/mappers/dic/TDicBaseMapper.xml

@@ -105,7 +105,24 @@
             <if test=" dicName != null and dicName!='' ">
                 and dic_name like CONCAT('%',trim(#{dicName}),'%')
             </if>
+            <if test=" dicCode != null and dicCode!='' ">
+                and dic_code like CONCAT('%',trim(#{dicCode}),'%')
+            </if>
         </where>
     </select>
+    <select id="getPageListByObjOrderByTips" parameterType="TDicBase" resultMap="BaseResultMap">
+        SELECT b.dic_id, dic_code,dic_name,
+               (SELECT a.dic_name FROM t_dic_base AS a WHERE b.parent_id=a.dic_id AND a.dic_name=#{dicName}) AS dic_pname,dic_desc,sort
+        from t_dic_base b
+        <where>
+            <if test=" dicName != null and dicName!='' ">
+                and dic_name like CONCAT('%',trim(#{dicName}),'%')
+            </if>
+            <if test=" dicCode != null and dicCode!='' ">
+                and dic_code like CONCAT('%',trim(#{dicCode}),'%')
+            </if>
+        </where>
+    </select>
+
 
 </mapper>