Ver código fonte

气瓶查询条件修改

xuxiaofei 2 anos atrás
pai
commit
e46ad84fb9

+ 8 - 8
zd-modules/zd-airbottle/src/main/resources/mapper/airbottle/QpAirGoogsMapper.xml

@@ -48,18 +48,18 @@
     <select id="selectQpAirGoogsList" parameterType="com.zd.airbottle.domain.QpAirGoogs" resultMap="QpAirGoogsResult">
         <include refid="selectQpAirGoogsListVo"/>
         <where>
-            <if test="goodsName != null  and goodsName != ''">and goods_name like concat('%', #{goodsName}, '%')</if>
-            <if test="searchValue != null  and searchValue != ''">and goods_name like concat('%', #{searchValue}, '%')
+            <if test="goodsName != null  and goodsName != ''">and t.goods_name like concat('%', #{goodsName}, '%')</if>
+            <if test="searchValue != null  and searchValue != ''">and t.goods_name like concat('%', #{searchValue}, '%')
             </if>
-            <if test="typeId != null ">and type_id = #{typeId}</if>
-            <if test="userId != null ">and user_id = #{userId}</if>
-            <if test="deptId != null ">and dept_id = #{deptId}</if>
-            <if test="deptName != null ">and dept_name = #{deptName}</if>
+            <if test="typeId != null ">and t.type_id = #{typeId}</if>
+            <if test="userId != null ">and t.user_id = #{userId}</if>
+            <if test="deptId != null ">and t.dept_id = #{deptId}</if>
+            <if test="deptName != null ">and t.dept_name = #{deptName}</if>
             <if test="startTime != null  and endTime">
-                and date_format( create_time, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime}
+                and date_format( t.create_time, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime}
             </if>
             <if test="ids !=null and ids.size>0">
-                and id in
+                and t.id in
                 <foreach item="id" collection="ids" open="(" separator="," close=")">
                     #{id}
                 </foreach>