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
0f268884
Commit
0f268884
authored
Oct 25, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同2.0开发 接口补充
parent
eb6274a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
HistoryPeasantHouseholdController.java
...ygf/biz/controller/HistoryPeasantHouseholdController.java
+11
-3
HistoryPeasantHouseholdServiceImpl.java
.../biz/service/impl/HistoryPeasantHouseholdServiceImpl.java
+4
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HistoryPeasantHouseholdController.java
View file @
0f268884
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HistoryPeasantHouseholdServiceImpl
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HistoryPeasantHouseholdServiceImpl
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -99,12 +103,16 @@ public class HistoryPeasantHouseholdController extends BaseController {
...
@@ -99,12 +103,16 @@ public class HistoryPeasantHouseholdController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"存量合同电站分页查询"
,
notes
=
"存量合同电站分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"存量合同电站分页查询"
,
notes
=
"存量合同电站分页查询"
)
public
ResponseModel
<
Page
<
HistoryPeasantHouseholdDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
HistoryPeasantHouseholdDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
,
required
=
false
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
(
value
=
"size"
,
required
=
false
)
int
size
,
@RequestParam
(
value
=
"ownersName"
,
required
=
false
)
String
ownersName
,
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
status
,
@RequestParam
(
value
=
"province"
,
required
=
false
)
String
province
,
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
)
{
Page
<
HistoryPeasantHouseholdDto
>
page
=
new
Page
<
HistoryPeasantHouseholdDto
>();
Page
<
HistoryPeasantHouseholdDto
>
page
=
new
Page
<
HistoryPeasantHouseholdDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
historyPeasantHouseholdServiceImpl
.
queryForHistoryPeasantHouseholdPage
(
page
));
List
<
String
>
strings
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
ids
)){
strings
=
Arrays
.
asList
(
ids
.
split
(
","
));
}
return
ResponseHelper
.
buildResponse
(
historyPeasantHouseholdServiceImpl
.
queryForHistoryPeasantHouseholdPage
(
page
,
strings
,
ownersName
,
province
,
status
));
}
}
/**
/**
...
...
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 @
0f268884
...
@@ -14,6 +14,8 @@ import com.yeejoin.amos.boot.module.hygf.api.util.BeanDtoUtils;
...
@@ -14,6 +14,8 @@ import com.yeejoin.amos.boot.module.hygf.api.util.BeanDtoUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Operator
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -36,8 +38,8 @@ public class HistoryPeasantHouseholdServiceImpl extends BaseService<HistoryPeasa
...
@@ -36,8 +38,8 @@ public class HistoryPeasantHouseholdServiceImpl extends BaseService<HistoryPeasa
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
HistoryPeasantHouseholdDto
>
queryForHistoryPeasantHouseholdPage
(
Page
<
HistoryPeasantHouseholdDto
>
page
)
{
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
);
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