|
|
@@ -10,11 +10,11 @@
|
|
|
<result property="userName" column="user_number" />
|
|
|
<result property="flowType" column="flow_type" />
|
|
|
<result property="userType" column="user_type" />
|
|
|
- <result property="userIds" column="user_ids" />
|
|
|
+ <result property="userId" column="user_id" />
|
|
|
<result property="userName" column="user_name" />
|
|
|
<result property="userTelephone" column="user_telephone" />
|
|
|
- <result property="deptIds" column="dept_ids" />
|
|
|
- <result property="deptNames" column="dept_names" />
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
|
+ <result property="deptName" column="dept_name" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -22,11 +22,11 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQpFlowDetailVo">
|
|
|
- select id, uuid,user_number,flow_type, user_type, user_ids, user_name, user_telephone, dept_ids, dept_names, create_time from qp_flow_detail
|
|
|
+ select id, uuid,user_number,flow_type, user_type, user_id, user_name, user_telephone, dept_id, dept_name, create_time from qp_flow_detail
|
|
|
</sql>
|
|
|
<sql id="selectQpFlowDetailListVo">
|
|
|
- select t.id, t.uuid, t.user_number,t.flow_type, t.user_type, t.user_ids, t.user_name, t.user_telephone, t.dept_ids,
|
|
|
- t.dept_names, t.create_time from qp_flow_detail as t
|
|
|
+ select t.id, t.uuid, t.user_number,t.flow_type, t.user_type, t.user_id, t.user_name, t.user_telephone, t.dept_id,
|
|
|
+ t.dept_name, t.create_time from qp_flow_detail as t
|
|
|
</sql>
|
|
|
<select id="selectQpFlowDetailList" parameterType="com.zd.airbottle.domain.vo.QpFlowDetailVO" resultMap="QpFlowDetailResultVO">
|
|
|
<include refid="selectQpFlowDetailListVo"/>
|
|
|
@@ -41,11 +41,11 @@
|
|
|
<if test="userNumber != null "> and t.user_number = #{userNumber}</if>
|
|
|
<if test="flowType != null "> and t.flow_type = #{flowType}</if>
|
|
|
<if test="userType != null "> and t.user_type = #{userType}</if>
|
|
|
- <if test="userIds != null "> and t.user_ids = #{userIds}</if>
|
|
|
+ <if test="userId != null "> and t.user_id = #{userId}</if>
|
|
|
<if test="flowType != null "> and t.flow_type = #{flowType}</if>
|
|
|
<if test="userName != null and userName != ''"> and t.user_name like concat('%', #{userName}, '%')</if>
|
|
|
<if test="userTelephone != null and userTelephone != ''"> and t.user_telephone = #{userTelephone}</if>
|
|
|
- <if test="deptIds != null "> and ( dept_ids in (SELECT dt.dept_id FROM sys_dept dt WHERE find_in_set(#{deptIds} ,ancestors )) or dept_ids = #{deptIds} )</if>
|
|
|
+ <if test="deptId != null "> and ( dept_id in (SELECT dt.dept_id FROM sys_dept dt WHERE find_in_set(#{deptId} ,ancestors )) or dept_id = #{deptId} )</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -74,15 +74,15 @@
|
|
|
|
|
|
<if test="userType != null">user_type,</if>
|
|
|
|
|
|
- <if test="userIds != null">user_ids,</if>
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
|
|
|
<if test="userName != null">user_name,</if>
|
|
|
|
|
|
<if test="userTelephone != null">user_telephone,</if>
|
|
|
|
|
|
- <if test="deptIds != null">dept_ids,</if>
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
|
|
|
- <if test="deptNames != null">dept_names,</if>
|
|
|
+ <if test="deptName != null">dept_name,</if>
|
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
|
@@ -92,11 +92,11 @@
|
|
|
<if test="userNumber != null">#{userNumber},</if>
|
|
|
<if test="flowType != null">#{flowType},</if>
|
|
|
<if test="userType != null">#{userType},</if>
|
|
|
- <if test="userIds != null">#{userIds},</if>
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
<if test="userName != null">#{userName},</if>
|
|
|
<if test="userTelephone != null">#{userTelephone},</if>
|
|
|
- <if test="deptIds != null">#{deptIds},</if>
|
|
|
- <if test="deptNames != null">#{deptNames},</if>
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="deptName != null">#{deptName},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -108,11 +108,11 @@
|
|
|
<if test="userNumber != null">user_number = #{userNumber},</if>
|
|
|
<if test="flowType != null">flow_type = #{flowType},</if>
|
|
|
<if test="userType != null">user_type = #{userType},</if>
|
|
|
- <if test="userIds != null">user_ids = #{userIds},</if>
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
|
<if test="userTelephone != null">user_telephone = #{userTelephone},</if>
|
|
|
- <if test="deptIds != null">dept_id = #{deptIds},</if>
|
|
|
- <if test="deptNames != null">dept_name = #{deptNames},</if>
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
@@ -132,13 +132,13 @@
|
|
|
<!-- 实验中心-资格审核权限查询 -->
|
|
|
<select id="selectZgCenterByUserIdIs" resultMap="QpFlowDetailResult">
|
|
|
select fd.* from qp_flow_detail fd
|
|
|
- where fd.user_type=2 and user_ids=#{userId} limit 1
|
|
|
+ where fd.user_type=2 and user_id=#{userId} limit 1
|
|
|
</select>
|
|
|
|
|
|
<!-- 实验中心-用气审核查询 -->
|
|
|
<select id="selectYqCenterByUserIdIs" resultMap="QpFlowDetailResult">
|
|
|
select fd.* from qp_flow_detail fd
|
|
|
- where fd.user_type=2 and user_ids=#{userId} limit 1
|
|
|
+ where fd.user_type=2 and user_id=#{userId} limit 1
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|