2 Commits de9dc112e1 ... 690fcef1ad

Autor SHA1 Mensagem Data
  guxinyu 690fcef1ad Merge branch '1.0' of http://gogs.tcmbrain.com/zjh/pre_paramater into 1.0 2 anos atrás
  guxinyu e1b35b9470 国标字典维护接口 2 anos atrás

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>