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
ce142a2e
Commit
ce142a2e
authored
Oct 28, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同2.0开发 接口补充
parent
6d348521
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
8 deletions
+36
-8
FinancingInfoHistoryMapper.java
...ot/module/hygf/api/mapper/FinancingInfoHistoryMapper.java
+3
-0
FinancingInfoHistoryMapper.xml
...ain/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
+22
-5
FinancingInfoHistoryController.java
...e/hygf/biz/controller/FinancingInfoHistoryController.java
+3
-1
FinancingInfoHistoryServiceImpl.java
...ygf/biz/service/impl/FinancingInfoHistoryServiceImpl.java
+8
-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 @
ce142a2e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.FinancingInfoHistory
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
...
@@ -16,4 +17,6 @@ public interface FinancingInfoHistoryMapper extends BaseMapper<FinancingInfoHist
List
<
Map
<
String
,
Object
>>
getFinancingList
(
String
ownersName
,
List
<
String
>
status
,
String
province
);
FinancingInfoHistoryDto
selectDataInfo
(
Long
peasantHouseholdId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/FinancingInfoHistoryMapper.xml
View file @
ce142a2e
...
...
@@ -2,8 +2,19 @@
<!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=
"selectDataInfo"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoHistoryDto"
>
SELECT
hfi.*
FROM
`hygf_financing_info` hfi
WHERE
hfi.peasant_household_id = #{peasantHouseholdId}
</select>
<select
id=
"getFinancingList"
resultType=
"java.util.Map"
>
select
select sta.* from (
select
hhpf.owners_name ownersName,
hhpf.peasant_household_no peasantHouseholdNo,
hhpf.province,
...
...
@@ -17,17 +28,23 @@
from
hygf_history_peasant_household hhpf
LEFT JOIN hygf_financing_info_history hfih on hhpf.sequence_nbr = hfih.peasant_household_id
<where>
<if
test=
"ownersName != null and ownersName != ''"
>
and hhpf.owners_name like concat('',#{ownersName},'%')
</if>
<if
test=
"province != null and province != ''"
>
and hhpf.province =#{province}
</if>
</where>
ORDER BY
hhpf.sequence_nbr DESC) as sta
<where>
<if
test=
"status != null and status.size() > 0"
>
and hfih
.status in
and sta
.status in
<foreach
collection=
"status"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"province != null and province != ''"
>
and hhpf.province =#{province}
</if>
</where>
</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 @
ce142a2e
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
import
com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.IdsDTO
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.FinancingInfoHistory
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -89,7 +90,8 @@ public class FinancingInfoHistoryController extends BaseController {
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个投融信息"
,
notes
=
"根据sequenceNbr查询单个投融信息"
)
public
ResponseModel
<
FinancingInfoHistoryDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
financingInfoHistoryServiceImpl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
financingInfoHistoryServiceImpl
.
getDataInfo
(
sequenceNbr
));
}
/**
...
...
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 @
ce142a2e
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.github.pagehelper.PageHelper
;
...
...
@@ -61,6 +62,13 @@ public class FinancingInfoHistoryServiceImpl extends BaseService<FinancingInfoHi
}
public
FinancingInfoHistoryDto
getDataInfo
(
Long
houseHoldId
){
FinancingInfoHistoryDto
financingInfoHistoryDto
=
this
.
getBaseMapper
().
selectDataInfo
(
houseHoldId
);
financingInfoHistoryDto
.
setFiles
(
JSONArray
.
parseArray
(
financingInfoHistoryDto
.
getFile
()));
return
financingInfoHistoryDto
;
}
public
void
upDateMoney
(
FinancingInfoHistoryDto
financingInfoDto
)
{
Map
<
Long
,
Double
>
maps
=
financingInfoDto
.
getPeasantHouseholds
().
stream
()
...
...
@@ -85,6 +93,5 @@ public class FinancingInfoHistoryServiceImpl extends BaseService<FinancingInfoHi
}
this
.
getBaseMapper
().
updateById
(
e
);
});
}
}
\ No newline at end of file
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