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
74670e82
Commit
74670e82
authored
Oct 24, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同2.0开发
parent
1bf8f515
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
8 deletions
+47
-8
FinancingInfoHistoryMapper.java
...ot/module/hygf/api/mapper/FinancingInfoHistoryMapper.java
+5
-0
FinancingInfoHistoryMapper.xml
...ain/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
+24
-0
FinancingInfoHistoryController.java
...e/hygf/biz/controller/FinancingInfoHistoryController.java
+6
-6
FinancingInfoHistoryServiceImpl.java
...ygf/biz/service/impl/FinancingInfoHistoryServiceImpl.java
+12
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/FinancingInfoHistoryMapper.java
View file @
74670e82
...
...
@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.hygf.api.mapper;
import
com.yeejoin.amos.boot.module.hygf.api.entity.FinancingInfoHistory
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.util.List
;
import
java.util.Map
;
/**
* 投融信息 Mapper 接口
*
...
...
@@ -11,4 +14,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public
interface
FinancingInfoHistoryMapper
extends
BaseMapper
<
FinancingInfoHistory
>
{
List
<
Map
<
String
,
Object
>>
getFinancingList
(
String
ownersName
,
String
status
,
String
province
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
View file @
74670e82
...
...
@@ -2,4 +2,28 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoHistoryMapper"
>
<select
id=
"getFinancingList"
resultType=
"java.util.Map"
>
select
hhpf.owners_name ownersName,
hhpf.peasant_household_no peasantHouseholdNo,
hhpf.province,
hhpf.house_address houseAddress,
hhpf.basic_grid_capacity basicGridCapacity,
IFNULL(hfih.status,'待推送') status,
hfih.disbursement_money disbursementMoney,
hfih.financing_companies_name financingCompaniesName,
hfih.regional_companies_seq regionalCompaniesSeq
from
hygf_history_peasant_household hhpf
LEFT JOIN hygf_financing_info_history hfih on hhpf.sequence_nbr = hfih.peasant_household_id
<if
test=
"ownersName != null and ownersName != ''"
>
hhpf.owners_name like concat('',#{ownersName},'%')
</if>
<if
test=
"status != null and status != ''"
>
hhpf.status =#{status}
</if>
<if
test=
"province != null and province != ''"
>
hhpf.province =#{province}
</if>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/FinancingInfoHistoryController.java
View file @
74670e82
...
...
@@ -9,6 +9,8 @@ import io.swagger.annotations.Api;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.FinancingInfoHistoryServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -97,12 +99,10 @@ public class FinancingInfoHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"投融信息分页查询"
,
notes
=
"投融信息分页查询"
)
public
ResponseModel
<
Page
<
FinancingInfoHistoryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
FinancingInfoHistoryDto
>
page
=
new
Page
<
FinancingInfoHistoryDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
financingInfoHistoryServiceImpl
.
queryForFinancingInfoHistoryPage
(
page
));
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"ownersName"
,
required
=
false
)
String
ownersName
,
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
status
,
@RequestParam
(
value
=
"province"
,
required
=
false
)
String
province
)
{
return
ResponseHelper
.
buildResponse
(
financingInfoHistoryServiceImpl
.
queryForFinancingInfoHistoryPage
(
current
,
size
,
ownersName
,
status
,
province
));
}
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/FinancingInfoHistoryServiceImpl.java
View file @
74670e82
...
...
@@ -4,6 +4,8 @@ import cn.hutool.core.bean.BeanUtil;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.FinancingAuditing
;
...
...
@@ -31,8 +33,16 @@ public class FinancingInfoHistoryServiceImpl extends BaseService<FinancingInfoHi
/**
* 分页查询
*/
public
Page
<
FinancingInfoHistoryDto
>
queryForFinancingInfoHistoryPage
(
Page
<
FinancingInfoHistoryDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
public
Page
<
Map
<
String
,
Object
>>
queryForFinancingInfoHistoryPage
(
int
current
,
int
size
,
String
ownersName
,
String
status
,
String
province
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>();
PageHelper
.
startPage
(
current
,
size
);
List
<
Map
<
String
,
Object
>>
financingList
=
this
.
getBaseMapper
().
getFinancingList
(
ownersName
,
status
,
province
);
PageInfo
<
Map
<
String
,
Object
>>
pages
=
new
PageInfo
(
financingList
);
page
.
setSize
(
pages
.
getSize
());
page
.
setCurrent
(
pages
.
getPageNum
());
page
.
setTotal
(
pages
.
getTotal
());
page
.
setRecords
(
financingList
);
return
page
;
}
/**
...
...
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