|
|
@@ -10,6 +10,8 @@
|
|
|
<result property="typeId" column="type_id"/>
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
<result property="userId" column="user_id"/>
|
|
|
+ <result property="deptId" column="dept_id"/>
|
|
|
+ <result property="deptName" column="dept_name"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
@@ -21,6 +23,8 @@
|
|
|
type_id,
|
|
|
create_by,
|
|
|
user_id,
|
|
|
+ dept_id,
|
|
|
+ dept_name,
|
|
|
update_time,
|
|
|
update_by,
|
|
|
create_time
|
|
|
@@ -32,19 +36,25 @@
|
|
|
t.type_id,
|
|
|
t.create_by,
|
|
|
t.user_id,
|
|
|
+ t.dept_id,
|
|
|
+ t.dept_name,
|
|
|
t.update_time,
|
|
|
t.update_by,
|
|
|
t.create_time
|
|
|
from qp_air_googs as t
|
|
|
+ LEFT JOIN sys_dept d on t.dept_id=d.dept_id
|
|
|
+ LEFT JOIN sys_user u on t.user_id=u.user_id
|
|
|
</sql>
|
|
|
<select id="selectQpAirGoogsList" parameterType="com.zd.airbottle.domain.QpAirGoogs" resultMap="QpAirGoogsResult">
|
|
|
- <include refid="selectQpAirGoogsVo"/>
|
|
|
+ <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>
|
|
|
<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="startTime != null and endTime">
|
|
|
and date_format( create_time, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
|
@@ -54,6 +64,8 @@
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScope}
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -74,6 +86,10 @@
|
|
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
+
|
|
|
+ <if test="deptName != null">dept_name,</if>
|
|
|
+
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
@@ -86,6 +102,8 @@
|
|
|
<if test="typeId != null">#{typeId},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="deptName != null">#{deptName},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
@@ -99,6 +117,8 @@
|
|
|
<if test="typeId != null">type_id = #{typeId},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
@@ -118,4 +138,4 @@
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-</mapper>
|
|
|
+</mapper>
|