1
0

2 Commits af8f65a27f ... b8c5046a18

Autor SHA1 Mensagem Data
  zjh b8c5046a18 Merge branch '1.0' of http://gogs.tcmbrain.com/zjh/pre_paramater into 1.0 há 2 anos atrás
  zjh 0de8c7d5a0 1.修改了set和get导致swagger异常 há 2 anos atrás

BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/drug/BStandardMat.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/drug/TMaterialHISVO.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/drug/TMaterialKnowVO.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/beans/drug/TMaterialStandVO.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/drug/BStandardMatController.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/drug/TAppMaterialMappingService.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/drug/TStandardMaterialMappingService.java


+ 7 - 4
cbkj_web_parameter/src/main/resources/mappers/drug/BStandardMatMapper.xml

@@ -65,7 +65,7 @@
     <select id="getPageListByObj" parameterType="BStandardMat" resultMap="BaseResultMap">
         SELECT s_id,s_mat_code,s_mat_name,s_mat_class,s_mat_type
         from b_standard_mat
-        <where>
+      where
         1=1
             <if test=" sMatName != null and sMatName!='' and sMatCode != null and sMatCode!='' ">
                 and (s_mat_name like CONCAT('%',trim(#{sMatName}),'%') or s_mat_code like CONCAT('%',trim(#{sMatCode}),'%'))
@@ -76,10 +76,13 @@
             <if test=" (sMatName == null or sMatName=='') and (sMatCode != null and sMatCode!='') ">
                 and s_mat_code like CONCAT('%',trim(#{sMatCode}),'%')
             </if>
-            <if test=" sMatType == null or sMatType=='' ">
-                and s_mat_type = #{sMatCode}
+            <if test=" sMatType != null and sMatType !='' ">
+                and s_mat_type = #{sMatType}
             </if>
-        </where>
+            <if test=" keyWord != null and keyWord !='' ">
+                and (s_mat_name like CONCAT('%',trim(#{keyWord}),'%') or s_mat_code like CONCAT('%',trim(#{keyWord}),'%'))
+            </if>
+
     </select>
 
 </mapper>

+ 3 - 0
cbkj_web_parameter/src/main/resources/mappers/drug/TStandardMaterialMappingMapper.xml

@@ -145,6 +145,9 @@ group by tm2.mat_id
             <if test=" matId != null and matId !=''">
                 mat_id = #{matId}
             </if>
+            <if test=" sMatType != null and sMatType !=''">
+                s_mat_type = #{sMatType}
+            </if>
         </where>
     </select>
     <insert id="insertautoMapping" parameterType="StandTMAutoMappingVO">