|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.takai.system.mapper.DocumentAuditConfigMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="DocumentAuditConfig" id="DocumentAuditConfigResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
@@ -34,9 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
dac.create_time,
|
|
|
dac.update_by,
|
|
|
dac.update_time,
|
|
|
- su.user_name
|
|
|
+ GROUP_CONCAT(su.user_name ) as user_name
|
|
|
from document_audit_config dac
|
|
|
- left join sys_user su on dac.approver = su.user_id
|
|
|
+ left join sys_user su ON FIND_IN_SET(su.user_id,dac.approver) > 0
|
|
|
<where>
|
|
|
<if test="approver != null and approver != ''"> and approver = #{approver}</if>
|
|
|
<!-- <if test="deptId != null "> and dept_id = #{deptId}</if>-->
|
|
|
@@ -44,13 +44,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- <if test="approver != null and approver != ''"> and FIND_IN_SET(#{approver}, approver) > 0</if>-->
|
|
|
<!-- <if test="chain != null and chain != ''"> and chain = #{chain}</if>-->
|
|
|
</where>
|
|
|
+ GROUP BY dac.id,dac.dept_id,
|
|
|
+ dac.project_id,
|
|
|
+ dac.node_order,
|
|
|
+ dac.approver,
|
|
|
+ dac.CHAIN,
|
|
|
+ dac.create_by,
|
|
|
+ dac.create_time,
|
|
|
+ dac.update_by,
|
|
|
+ dac.update_time
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectDocumentAuditConfigById" parameterType="Long" resultMap="DocumentAuditConfigResult">
|
|
|
<include refid="selectDocumentAuditConfigVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertDocumentAuditConfig" parameterType="DocumentAuditConfig" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into document_audit_config
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -98,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteDocumentAuditConfigByIds" parameterType="String">
|
|
|
- delete from document_audit_config where id in
|
|
|
+ delete from document_audit_config where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
@@ -113,4 +122,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by node_order asc
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|