소스 검색

续建项目资金 debug

tags/24080901
PoffyZhang 1 년 전
부모
커밋
2050936d44
1개의 변경된 파일17개의 추가작업 그리고 6개의 파일을 삭제
  1. +17
    -6
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/mapper/ProjectRenewalFundDeclarationMapper.xml

+ 17
- 6
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/mapper/ProjectRenewalFundDeclarationMapper.xml 파일 보기

@@ -10,16 +10,25 @@
prfd.project_year,prfd.annual_payment_amount,prfd.have_amount,
prfd.gov_own_finance_amount,prfd.gov_superior_finance_amount,
prfd.bank_lending_amount,prfd.other_amount,prfd.approval_status,prfd.deleted,
(case when p.project_type is null then b.base_proj_type else p.project_type end) project_type,
(case when p.project_name is null then b.base_proj_name else p.project_name end) project_name,
(case when p.build_org_name is null then b.base_build_deprt else p.build_org_name end) build_org_name,prfd.project_code
(case when p.project_type is not null then p.project_type
when b.project_type is not null then b.base_proj_type
else ob.base_proj_type end) project_type,
(case when p.project_name is not null then p.project_name
when b.base_proj_name is not null then b.base_proj_name
else ob.base_proj_name end) project_name,
(case when p.build_org_name is null then b.build_org_name
when b.base_build_deprt is null then b.base_build_deprt
else ob.base_build_deprt end) build_org_name,
prfd.project_code
from nd_project_renewal_fund_declaration prfd
left join nd_project p on prfd.project_code = p.project_code and p.newest = true
left join gov_biz_project_baseinfo b on prfd.project_code = b.base_proj_id and b.deleted = false
left join gov_operation_project_baseinfo ob on prfd.project_code = ob.base_proj_id and ob.deleted = false
where prfd.deleted = false
<if test="param.projectName != null and param.projectName != ''">
and (p.project_name like concat('%',#{param.projectName},'%') or
b.base_proj_name like concat('%',#{param.projectName},'%'))
b.base_proj_name like concat('%',#{param.projectName},'%') or
ob.base_proj_name like concat('%',#{param.projectName},'%'))
</if>
<if test="param.orgCode != null and param.orgCode != ''">
and prfd.org_code = #{param.orgCode}
@@ -29,7 +38,8 @@
</if>
<if test="param.projectType != null">
and (p.project_type = #{param.projectType} or
b.base_proj_type = #{param.projectType})
b.base_proj_type = #{param.projectType} or
ob.base_proj_type = #{param.projectType})
</if>
<if test="param.year != null">
and prfd.project_year = #{param.year}
@@ -39,7 +49,8 @@
</if>
<if test="param.status != null">
and (p.status = #{param.status} or
b.base_proj_set_prog = #{param.status})
b.base_proj_set_prog = #{param.status} or
ob.base_proj_set_prog = #{param.status})
</if>
<if test="param.startTime != null">
and prfd.create_on &gt;= #{param.startTime}


불러오는 중...
취소
저장