发布等

This commit is contained in:
2025-01-08 09:04:13 +08:00
parent fdef054baf
commit 75a119a130
113 changed files with 5911 additions and 400 deletions

View File

@ -61,12 +61,27 @@
select * from zt_task s
where 1= 1
<if test="qo.objIds != null and qo.objIds.size() > 0">
and s.id in
<foreach collection="qo.objIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal == 'WGB' ">
and s.status != 'closed'
</if>
<if test="qo.searchVal == 'DPS' ">
and s.status = 'reviewing'
</if>
<if test="qo.searchVal == 'ZPGW' ">
and s.assignedTo= #{qo.userName}
</if>
@ -74,6 +89,10 @@
and s.mailto like concat('%', #{qo.userName}, '%')
</if>
<if test="qo.searchVal == 'YWCJ' ">
and s.openedBy like concat('%', #{qo.userName}, '%')
</if>
<if test="qo.searchVal == 'YWZP' ">
and s.lastEditedBy = #{qo.userName}
</if>
@ -86,7 +105,106 @@
and s.execution =#{qo.execution}
</if>
order by id desc
<if test="qo.projectIds != null and qo.projectIds.size() > 0">
and s.execution in
<foreach collection="qo.projectIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.searchCode != null and qo.searchCode != '' ">
-- //任务名称
<if test="qo.searchCode=='rwmc' and qo.searchValue != null and qo.searchValue != '' ">
and s.name like concat('%', #{qo.searchValue}, '%')
</if>
-- 项目id
<if test="qo.searchCode=='bh' and qo.searchValue != null and qo.searchValue != '' ">
and s.id =#{qo.searchValue}
</if>
-- 状态
<if test="qo.searchCode=='zt' and qo.searchValue != null and qo.searchValue != '' ">
and s.status =#{qo.searchValue}
</if>
-- 指派给
<if test="qo.searchCode=='zpg' and qo.searchValue != null and qo.searchValue != '' ">
and s.assignedTo =#{qo.searchValue}
</if>
-- 负责人
<if test="qo.searchCode=='yscj' and qo.searchValue != null and qo.searchValue != '' ">
and s.openedBy = #{qo.searchValue}
</if>
<if test="qo.searchCode=='ysgb' and qo.searchValue != null and qo.searchValue != '' ">
and s.closedBy = #{qo.searchValue}
</if>
<if test="qo.searchCode=='ysqx' and qo.searchValue != null and qo.searchValue != '' ">
and s.canceledBy = #{qo.searchValue}
</if>
<if test="qo.searchCode=='zhxg' and qo.searchValue != null and qo.searchValue != '' ">
and s.lastEditedBy = #{qo.searchValue}
</if>
<if test="qo.searchCode=='cjrq' and qo.searchValue != null and qo.searchValue != '' ">
and s.openedDate ${qo.searchValue}
</if>
<if test="qo.searchCode=='jzrq' and qo.searchValue != null and qo.searchValue != '' ">
and s.deadline ${qo.searchValue}
</if>
<if test="qo.searchCode=='yjks' and qo.searchValue != null and qo.searchValue != '' ">
and s.estStarted ${qo.searchValue}
</if>
<if test="qo.searchCode=='sjks' and qo.searchValue != null and qo.searchValue != '' ">
and s.realstarted ${qo.searchValue}
</if>
<if test="qo.searchCode=='sjwc' and qo.searchValue != null and qo.searchValue != '' ">
and s.lastEditedBy ${qo.searchValue}
</if>
<!-- <if test="qo.searchCode=='sjwc' and qo.searchValue != null and qo.searchValue != '' ">-->
<!-- and s.end_date <![CDATA[>=]]> #{qo.searchValue}-->
<!-- </if>-->
<!-- <if test="qo.searchCode=='yscj' and qo.searchValue != null and qo.searchValue != '' ">-->
<!-- and s.openedBy = #{qo.searchValue}-->
<!-- </if>-->
<!-- <if test="qo.searchCode=='ysgb' and qo.searchValue != null and qo.searchValue != '' ">-->
<!-- and s.closedBy = #{qo.searchValue}-->
<!-- </if>-->
</if>
<choose>
<when test="qo.orderName != '' and qo.orderName != null ">
<choose>
<when test="qo.orderSort != '' and qo.orderSort != null ">
order by s.${qo.orderName} ${qo.orderSort}
<choose>
<when test="qo.orderName == 'deadline' ">
,id ${qo.orderSort}
</when>
</choose>
</when>
<otherwise>
order by s.id desc
</otherwise>
</choose>
</when>
<otherwise>
order by s.id desc
</otherwise>
</choose>
</select>