|
@@ -14,7 +14,6 @@
|
|
left join os_distribution u on u.id = a.creat_id
|
|
left join os_distribution u on u.id = a.creat_id
|
|
left join os_client b on b.id = a.clientid
|
|
left join os_client b on b.id = a.clientid
|
|
<where>
|
|
<where>
|
|
- 1=1
|
|
|
|
<if test="params.name != '' and params.name != null">
|
|
<if test="params.name != '' and params.name != null">
|
|
and a.name like concat('%', #{params.name}, '%')
|
|
and a.name like concat('%', #{params.name}, '%')
|
|
</if>
|
|
</if>
|
|
@@ -56,7 +55,7 @@
|
|
<if test="params.PersonnelId!=null">
|
|
<if test="params.PersonnelId!=null">
|
|
and a.id in (select tid from os_distribution_doing where uid=#{params.PersonnelId} )
|
|
and a.id in (select tid from os_distribution_doing where uid=#{params.PersonnelId} )
|
|
<if test="params.tenantId!=null">
|
|
<if test="params.tenantId!=null">
|
|
- or a.tenantId = #{params.tenantId}
|
|
|
|
|
|
+ and a.tenantId = #{params.tenantId}
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
@@ -64,7 +63,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getListForCount"
|
|
<select id="getListForCount"
|
|
- resultType="cn.cslg.pas.domain.Project">
|
|
|
|
|
|
+ resultType="cn.cslg.pas.domain.Project"
|
|
|
|
+ parameterType="cn.cslg.pas.common.model.vo.ProjectVO">
|
|
select a.id, a.`name`, a.creat_id as create_by, a.technical_theme,
|
|
select a.id, a.`name`, a.creat_id as create_by, a.technical_theme,
|
|
a.innerfile as inner_file, a.`update`, a.`status`, a.contract_no,
|
|
a.innerfile as inner_file, a.`update`, a.`status`, a.contract_no,
|
|
a.`case` as case_date, a.update_time, a.sort, a.clientid as client_id,
|
|
a.`case` as case_date, a.update_time, a.sort, a.clientid as client_id,
|
|
@@ -72,7 +72,12 @@
|
|
|
|
|
|
from os_thematic a
|
|
from os_thematic a
|
|
<where>
|
|
<where>
|
|
- 1=1
|
|
|
|
|
|
+ <if test="params.PersonnelId!=null">
|
|
|
|
+ and a.id in (select tid from os_distribution_doing where uid=#{params.PersonnelId} )
|
|
|
|
+ <if test="params.tenantId!=null">
|
|
|
|
+ and a.tenantId = #{params.tenantId}
|
|
|
|
+ </if>
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
|
|
|
|
</select>
|
|
</select>
|