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
465afae2
Commit
465afae2
authored
Oct 25, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同2.0开发 接口补充
parent
14b8a1b4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
HistoryPeasantHouseholdMapper.java
...module/hygf/api/mapper/HistoryPeasantHouseholdMapper.java
+2
-0
FinancingInfoHistoryMapper.xml
...ain/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
+1
-1
HistoryPeasantHouseholdMapper.xml
.../resources/mapper/mysql/HistoryPeasantHouseholdMapper.xml
+24
-0
HistoryPeasantHouseholdServiceImpl.java
.../biz/service/impl/HistoryPeasantHouseholdServiceImpl.java
+7
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/HistoryPeasantHouseholdMapper.java
View file @
465afae2
...
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.module.hygf.api.dto.HistoryPeasantHouseholdDto;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HistoryPeasantHousehold
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -16,4 +17,5 @@ public interface HistoryPeasantHouseholdMapper extends BaseMapper<HistoryPeasant
public
HistoryPeasantHouseholdDto
selectDataInfo
(
Long
sequenceNbr
);
List
<
HistoryPeasantHouseholdDto
>
queryForPage
(
List
<
String
>
sequenceNbrs
,
String
ownersName
,
String
province
,
String
status
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
View file @
465afae2
...
...
@@ -10,7 +10,7 @@
hhpf.sequence_nbr as sequenceNbr,
hhpf.house_address houseAddress,
hhpf.basic_grid_capacity basicGridCapacity,
IFNULL(hfih.status,'待推送')
status,
hfih.status
status,
hfih.disbursement_money disbursementMoney,
hfih.financing_companies_name financingCompaniesName,
hfih.regional_companies_seq regionalCompaniesSeq
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HistoryPeasantHouseholdMapper.xml
View file @
465afae2
...
...
@@ -5,4 +5,28 @@
<select
id=
"selectDataInfo"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.HistoryPeasantHouseholdDto"
>
select * ,file_url as files from hygf_history_peasant_household where sequence_nbr = #{sequenceNbr}
</select>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.HistoryPeasantHouseholdDto"
>
select *, file_url as files from
hygf_history_peasant_household
<where>
<if
test=
"ownersName != null and ownersName != ''"
>
hygf_history_peasant_household.owners_name like concat('%',#{ownersName},'%')
</if>
<if
test=
"status != null and status != ''"
>
hygf_history_peasant_household.status = #{status}
</if>
<if
test=
"province != null and province != ''"
>
hygf_history_peasant_household.province like concat('%',#{province},'%')
</if>
<if
test=
"sequenceNbrs != null and sequenceNbrs.size() > 0"
>
hygf_history_peasant_household.sequence_nbr in
<foreach
collection=
"sequenceNbrs"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HistoryPeasantHouseholdServiceImpl.java
View file @
465afae2
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
...
...
@@ -40,7 +41,12 @@ public class HistoryPeasantHouseholdServiceImpl extends BaseService<HistoryPeasa
* 分页查询
*/
public
Page
<
HistoryPeasantHouseholdDto
>
queryForHistoryPeasantHouseholdPage
(
Page
<
HistoryPeasantHouseholdDto
>
page
,
@Condition
(
Operator
.
in
)
List
<
String
>
sequenceNbr
,
@Condition
(
Operator
.
like
)
String
ownersName
,
@Condition
(
Operator
.
like
)
String
province
,
@Condition
(
Operator
.
eq
)
String
status
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
sequenceNbr
,
ownersName
,
province
,
status
);
List
<
HistoryPeasantHouseholdDto
>
historyPeasantHouseholdDtos
=
this
.
getBaseMapper
().
queryForPage
(
sequenceNbr
,
ownersName
,
province
,
status
);
historyPeasantHouseholdDtos
.
forEach
(
e
->{
e
.
setFileUrl
(
JSONArray
.
parseArray
(
e
.
getFiles
()));
});
return
this
.
queryForPage
(
page
,
null
,
false
,
sequenceNbr
,
ownersName
,
province
,
status
);
}
/**
...
...
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