问题反馈对接oa以及一堆bug
This commit is contained in:
@@ -59,9 +59,28 @@
|
||||
</resultMap>
|
||||
<select id="taskPageList" resultType="com.sa.zentao.dao.ZtTaskDTO">
|
||||
|
||||
select * from zt_task s
|
||||
select s.*,pt.name productName from zt_task s left join zt_project project on s.project = project.id
|
||||
left join zt_product pt on s.product = pt.id
|
||||
where 1= 1
|
||||
|
||||
<if test="qo.startDate !=null">
|
||||
and s.openedDate <![CDATA[>=]]> #{qo.startDate}
|
||||
</if>
|
||||
<if test="qo.endDate !=null">
|
||||
and s.openedDate <![CDATA[<=]]> #{qo.endDate}
|
||||
</if>
|
||||
|
||||
<if test="qo.projectList != null and qo.projectList.size() > 0">
|
||||
and s.project in
|
||||
<foreach collection="qo.projectList" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<if test="qo.objIds != null and qo.objIds.size() > 0">
|
||||
and s.id in
|
||||
<foreach collection="qo.objIds" item="id" index="index"
|
||||
|
||||
Reference in New Issue
Block a user