Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
08069cda
Commit
08069cda
authored
Jun 24, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同作废后,重新发起成功后,隐藏掉重新发起按钮
parent
5be59850
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
32 deletions
+43
-32
HouseholdContract.java
...n/amos/boot/module/hygf/api/entity/HouseholdContract.java
+4
-0
HouseholdContractMapper.xml
...c/main/resources/mapper/mysql/HouseholdContractMapper.xml
+39
-32
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HouseholdContract.java
View file @
08069cda
...
@@ -253,4 +253,8 @@ public class HouseholdContract extends BaseEntity {
...
@@ -253,4 +253,8 @@ public class HouseholdContract extends BaseEntity {
//合同填充字段值
//合同填充字段值
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
List
<
ContractFillData
>
contractFillData
;
List
<
ContractFillData
>
contractFillData
;
//查询一个农户拥有的合同是否全是已废弃
@TableField
(
exist
=
false
)
private
Boolean
isAllDisuse
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HouseholdContractMapper.xml
View file @
08069cda
...
@@ -4,38 +4,45 @@
...
@@ -4,38 +4,45 @@
<select
id=
"selectPage"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.HouseholdContract"
>
<select
id=
"selectPage"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.HouseholdContract"
>
select
select
*
*,
from hygf_household_contract
(SELECT CASE WHEN SUM( CASE WHEN hhc.`status` = '已作废' THEN 1 ELSE 0 END ) = COUNT(*) THEN 'true' ELSE 'false'
LEFT JOIN hygf_peasant_household php ON php.sequence_nbr = hygf_household_contract.peasant_household_id
<where>
END FROM hygf_household_contract AS hhc
<if
test=
"dto.name != null and dto.name !='' "
>
WHERE
and hygf_household_contract.name like concat('%',#{dto.name},'%')
hhc.peasant_household_id = hygf_household_contract.peasant_household_id
</if>
) AS isAllDisuse
<if
test=
"dto.contractNumber != null and dto.contractNumber !=''"
>
and hygf_household_contract.contract_number like concat('%',#{dto.contractNumber},'%')
from hygf_household_contract
</if>
LEFT JOIN hygf_peasant_household php ON php.sequence_nbr = hygf_household_contract.peasant_household_id
<if
test=
"dto.initiateStatus != null and dto.initiateStatus !='' "
>
<where>
and hygf_household_contract.initiate_status = #{dto.initiateStatus}
<if
test=
"dto.name != null and dto.name !='' "
>
</if>
and hygf_household_contract.name like concat('%',#{dto.name},'%')
<if
test=
"dto.peasantHouseholdId != null and dto.peasantHouseholdId !=''"
>
</if>
and hygf_household_contract.peasant_household_id = #{dto.peasantHouseholdId}
<if
test=
"dto.contractNumber != null and dto.contractNumber !=''"
>
</if>
and hygf_household_contract.contract_number like concat('%',#{dto.contractNumber},'%')
<if
test=
"dto.dealerId != null and dto.dealerId !=''"
>
</if>
and hygf_household_contract.dealer_id = #{dto.dealerId}
<if
test=
"dto.initiateStatus != null and dto.initiateStatus !='' "
>
</if>
and hygf_household_contract.initiate_status = #{dto.initiateStatus}
<if
test=
"dto.surveyStatus != null and dto.surveyStatus !=''"
>
</if>
and hygf_household_contract.survey_status = #{dto.surveyStatus}
<if
test=
"dto.peasantHouseholdId != null and dto.peasantHouseholdId !=''"
>
</if>
and hygf_household_contract.peasant_household_id = #{dto.peasantHouseholdId}
<if
test=
"dto.signStatus != null and dto.signStatus !=''"
>
</if>
and hygf_household_contract.sign_status = #{dto.signStatus}
<if
test=
"dto.dealerId != null and dto.dealerId !=''"
>
</if>
and hygf_household_contract.dealer_id = #{dto.dealerId}
<if
test=
"dto.userId != null and dto.userId !=''"
>
</if>
and hygf_household_contract.project_user_id = #{dto.userId}
<if
test=
"dto.surveyStatus != null and dto.surveyStatus !=''"
>
</if>
and hygf_household_contract.survey_status = #{dto.surveyStatus}
<if
test=
"dto.partyA != null and dto.partyA !=''"
>
</if>
and hygf_household_contract.party_a like concat('%',#{dto.partyA},'%')
<if
test=
"dto.signStatus != null and dto.signStatus !=''"
>
</if>
and hygf_household_contract.sign_status = #{dto.signStatus}
</where>
</if>
<if
test=
"dto.userId != null and dto.userId !=''"
>
and hygf_household_contract.project_user_id = #{dto.userId}
</if>
<if
test=
"dto.partyA != null and dto.partyA !=''"
>
and hygf_household_contract.party_a like concat('%',#{dto.partyA},'%')
</if>
</where>
<if
test=
"dto.orderBy == null "
>
<if
test=
"dto.orderBy == null "
>
ORDER BY hygf_household_contract.rec_date DESC
ORDER BY hygf_household_contract.rec_date DESC
</if>
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment