Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
d5f2e56e
Commit
d5f2e56e
authored
Jan 18, 2024
by
王果
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并列表查询修改
parent
0bf685ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
39 deletions
+49
-39
JyjcOpeningApplicationMapper.xml
...rc/main/resources/mapper/JyjcOpeningApplicationMapper.xml
+3
-0
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+17
-17
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+29
-22
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcOpeningApplicationMapper.xml
View file @
d5f2e56e
...
...
@@ -52,6 +52,9 @@
<if
test=
"jyjcOpeningApplicationRequstDto.type == 'supervision'"
>
and a.status not in ('6610')
</if>
<if
test=
"jyjcOpeningApplicationRequstDto.unitCode != '' and jyjcOpeningApplicationRequstDto.unitCode != null"
>
and a.unit_code = #{jyjcOpeningApplicationRequstDto.unitCode}
</if>
</where>
order by sequence_nbr desc
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcOpeningApplicationController.java
View file @
d5f2e56e
...
...
@@ -161,23 +161,23 @@ public class JyjcOpeningApplicationController extends BaseController {
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/pageForCompany"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询-公司"
,
notes
=
"分页查询-公司"
)
public
ResponseModel
<
Page
<
JyjcOpeningApplicationModel
>>
querypageForCompany
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
JyjcOpeningApplicationRequstDto
jyjcOpeningApplicationRequstDto
)
{
Page
<
JyjcOpeningApplication
>
page
=
new
Page
<
JyjcOpeningApplication
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
querypageForCompany
(
page
,
jyjcOpeningApplicationRequstDto
));
}
//
/**
//
* 列表分页查询
//
*
//
* @param current 当前页
//
* @param current 每页大小
//
* @return
//
*/
//
@TycloudOperation(ApiLevel = UserType.AGENCY)
//
@GetMapping(value = "/pageForCompany")
//
@ApiOperation(httpMethod = "GET",value = "分页查询-公司", notes = "分页查询-公司")
//
public ResponseModel<Page<JyjcOpeningApplicationModel>> querypageForCompany(@RequestParam(value = "current") int current, @RequestParam
//
(value = "size") int size, JyjcOpeningApplicationRequstDto jyjcOpeningApplicationRequstDto) {
//
Page<JyjcOpeningApplication> page = new Page<JyjcOpeningApplication>();
//
page.setCurrent(current);
//
page.setSize(size);
//
return ResponseHelper.buildResponse(jyjcOpeningApplicationServiceImpl.querypageForCompany(page,jyjcOpeningApplicationRequstDto));
//
}
/**
* 列表全部数据查询
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
d5f2e56e
...
...
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.CompanyBo
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
...
...
@@ -321,36 +322,42 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return
this
.
queryForList
(
""
,
false
);
}
public
Page
<
JyjcOpeningApplicationModel
>
queryForJyjcOpeningApplicationPage
(
Page
<
JyjcOpeningApplication
>
page
,
JyjcOpeningApplicationRequstDto
jyjcOpeningApplicationRequstDto
)
{
public
Page
<
JyjcOpeningApplicationModel
>
queryForJyjcOpeningApplicationPage
(
Page
<
JyjcOpeningApplication
>
page
,
JyjcOpeningApplicationRequstDto
dto
)
{
ReginParams
reginParams
=
commonserviceImpl
.
getReginParamsOfCurrentUser
();
String
level
=
reginParams
.
getCompany
().
getLevel
();
if
(
BaseController
.
COMPANY_TYPE_COMPANY
.
equals
(
level
))
{
dto
.
setType
(
"enterprise"
);
dto
.
setUnitCode
(
reginParams
.
getCompany
().
getCompanyCode
());
}
else
{
dto
.
setType
(
"supervision"
);
}
String
applyStartTime
=
""
;
String
applyEndTime
=
""
;
if
(
ObjectUtils
.
isNotEmpty
(
jyjcOpeningApplicationRequstD
to
.
getApplyTime
()))
{
String
date
=
jyjcOpeningApplicationRequstD
to
.
getApplyTime
();
if
(
ObjectUtils
.
isNotEmpty
(
d
to
.
getApplyTime
()))
{
String
date
=
d
to
.
getApplyTime
();
applyStartTime
=
date
+
" 00:00:00"
;
applyEndTime
=
date
+
" 23:59:59"
;
}
// 设置为监管端
jyjcOpeningApplicationRequstDto
.
setType
(
"supervision"
);
return
jyjcOpeningApplicationMapper
.
selectJyjcOpeningApplicationList
(
page
,
jyjcOpeningApplicationRequstDto
,
applyStartTime
,
applyEndTime
);
return
jyjcOpeningApplicationMapper
.
selectJyjcOpeningApplicationList
(
page
,
dto
,
applyStartTime
,
applyEndTime
);
}
public
Page
<
JyjcOpeningApplicationModel
>
querypageForCompany
(
Page
<
JyjcOpeningApplication
>
page
,
JyjcOpeningApplicationRequstDto
jyjcOpeningApplicationRequstDto
)
{
//根据申请单中的单位信息对于列表数据进行过滤
CompanyBo
companyBo
=
commonserviceImpl
.
getReginParamsOfCurrentUser
().
getCompany
();
// if (companyBo.getLevel().equals("company")) {
jyjcOpeningApplicationRequstDto
.
setUnitCode
(
companyBo
.
getCompanyCode
());
// public Page<JyjcOpeningApplicationModel> querypageForCompany(Page<JyjcOpeningApplication> page, JyjcOpeningApplicationRequstDto jyjcOpeningApplicationRequstDto) {
// //根据申请单中的单位信息对于列表数据进行过滤
// CompanyBo companyBo = commonserviceImpl.getReginParamsOfCurrentUser().getCompany();
//// if (companyBo.getLevel().equals("company")) {
// jyjcOpeningApplicationRequstDto.setUnitCode(companyBo.getCompanyCode());
//// }
//
// String applyStartTime = "";
// String applyEndTime = "";
// if (ObjectUtils.isNotEmpty(jyjcOpeningApplicationRequstDto.getApplyTime())) {
// String date = jyjcOpeningApplicationRequstDto.getApplyTime();
// applyStartTime = date + " 00:00:00";
// applyEndTime = date + " 23:59:59";
// }
String
applyStartTime
=
""
;
String
applyEndTime
=
""
;
if
(
ObjectUtils
.
isNotEmpty
(
jyjcOpeningApplicationRequstDto
.
getApplyTime
()))
{
String
date
=
jyjcOpeningApplicationRequstDto
.
getApplyTime
();
applyStartTime
=
date
+
" 00:00:00"
;
applyEndTime
=
date
+
" 23:59:59"
;
}
jyjcOpeningApplicationRequstDto
.
setType
(
"enterprise"
);
return
jyjcOpeningApplicationMapper
.
selectJyjcOpeningApplicationList
(
page
,
jyjcOpeningApplicationRequstDto
,
applyStartTime
,
applyEndTime
);
}
// jyjcOpeningApplicationRequstDto.setType("enterprise");
// return jyjcOpeningApplicationMapper.selectJyjcOpeningApplicationList(page, jyjcOpeningApplicationRequstDto, applyStartTime, applyEndTime);
// }
/**
...
...
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