ruanqi 11 months ago
parent
commit
a5609bbf3d
  1. 12
      src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml
  2. 9
      src/main/resources/mapper/project/ProjectDao.xml
  3. 3
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

12
src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml

@ -57,6 +57,15 @@
<!-- AND project_id in ( select project_id from AccessProject where site=#{query.site} and username=#{query.userName} and searchFlag='Y' )-->
<!-- AND bu_no in ( select bu_no from AccessBu where site=#{query.site} and username=#{query.userName})-->
<!-- </if>-->
<if test="query.priority != null and query.priority != ''">
AND plm_project_info.priority = #{query.priority}
</if>
<if test="query.projectSource != null and query.projectSource != ''">
AND plm_project_info.project_source like #{query.projectSource}
</if>
<if test="query.customerId != null and query.customerId != ''">
AND plm_project_info.customer_Id like #{query.customerId}
</if>
</where>
order by project_id desc
@ -180,6 +189,9 @@
<if test="query.applyNo != null and query.applyNo != ''">
AND a.apply_no like #{query.applyNo}
</if>
<if test="query.status != null and query.status != ''">
AND a.status like #{query.status}
</if>
<if test="query.startDate != null ">
AND a.apply_date >= #{query.startDate}
</if>

9
src/main/resources/mapper/project/ProjectDao.xml

@ -60,6 +60,15 @@
<if test="query.userName != null and query.userName != '' and query.userName != 'admin'">
AND project_id in ( select project_id from AccessProject where site=#{query.site} and username=#{query.userName} and searchFlag='Y' )
</if>
<if test="query.priority != null and query.priority != ''">
AND plm_project_info.priority = #{query.priority}
</if>
<if test="query.customerName != null and query.customerName != ''">
AND dbo.plm_get_customer_desc(site,customer_id) like #{query.customerName}
</if>
<if test="query.customerId != null and query.customerId != ''">
AND plm_project_info.customer_Id like #{query.customerId}
</if>
</where>
order by LEFT(project_id, CHARINDEX('-', project_id + '-') - 1) desc
</select>

3
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -86,6 +86,9 @@
<if test="query.site != null and query.site != ''">
AND a.site = #{query.site}
</if>
<if test="query.ecnFlag != null and query.ecnFlag != ''">
AND a.ecn_flag = #{query.ecnFlag}
</if>
<if test="query.oriCodeNo != null and query.oriCodeNo != ''">
AND a.ori_code_no like #{query.oriCodeNo}
</if>

Loading…
Cancel
Save