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
02ff8d8b
Commit
02ff8d8b
authored
Oct 25, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同2.0开发 接口补充
parent
0f268884
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
HistoryPeasantHouseholdDto.java
.../boot/module/hygf/api/dto/HistoryPeasantHouseholdDto.java
+2
-0
HistoryPeasantHouseholdMapper.java
...module/hygf/api/mapper/HistoryPeasantHouseholdMapper.java
+5
-0
HistoryPeasantHouseholdMapper.xml
.../resources/mapper/mysql/HistoryPeasantHouseholdMapper.xml
+3
-0
HistoryPeasantHouseholdController.java
...ygf/biz/controller/HistoryPeasantHouseholdController.java
+9
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HistoryPeasantHouseholdDto.java
View file @
02ff8d8b
...
...
@@ -65,6 +65,8 @@ public class HistoryPeasantHouseholdDto extends BaseDto {
@ApiModelProperty
(
value
=
"租赁合同"
)
private
String
leaseContract
;
private
String
files
;
/**
* 状态
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/HistoryPeasantHouseholdMapper.java
View file @
02ff8d8b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
mapper
;
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.Map
;
/**
* 存量合同电站 Mapper 接口
*
...
...
@@ -11,4 +14,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public
interface
HistoryPeasantHouseholdMapper
extends
BaseMapper
<
HistoryPeasantHousehold
>
{
public
HistoryPeasantHouseholdDto
selectDataInfo
(
Long
sequenceNbr
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HistoryPeasantHouseholdMapper.xml
View file @
02ff8d8b
...
...
@@ -2,4 +2,7 @@
<!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.HistoryPeasantHouseholdMapper"
>
<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>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HistoryPeasantHouseholdController.java
View file @
02ff8d8b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HistoryPeasantHousehold
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -11,6 +13,8 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HistoryPeasantHouseholdServiceImpl
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -90,7 +94,11 @@ public class HistoryPeasantHouseholdController extends BaseController {
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个存量合同电站"
,
notes
=
"根据sequenceNbr查询单个存量合同电站"
)
public
ResponseModel
<
HistoryPeasantHouseholdDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
historyPeasantHouseholdServiceImpl
.
queryBySeq
(
sequenceNbr
));
HistoryPeasantHouseholdDto
dto
=
historyPeasantHouseholdServiceImpl
.
getBaseMapper
().
selectDataInfo
(
sequenceNbr
);
dto
.
setFileUrl
(
JSONArray
.
parseArray
(
dto
.
getFiles
()));
return
ResponseHelper
.
buildResponse
(
dto
);
}
/**
...
...
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