浏览代码

国标字典维护接口

guxinyu 2 年之前
父节点
当前提交
e1b35b9470

二进制
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/dic/TDicBaseVo.java


二进制
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/dic/TDicBaseController.java


二进制
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/mapper/dic/TDicBaseMapper.java


二进制
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>