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
58ce840f
Commit
58ce840f
authored
Dec 18, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安装告知列表权限
parent
944c6bec
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
JgInstallationNoticeMapper.java
...boot/module/jg/api/mapper/JgInstallationNoticeMapper.java
+1
-1
IJgInstallationNoticeService.java
...t/module/jg/api/service/IJgInstallationNoticeService.java
+1
-1
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+3
-0
JgInstallationNoticeController.java
...ule/jg/biz/controller/JgInstallationNoticeController.java
+2
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+10
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgInstallationNoticeMapper.java
View file @
58ce840f
...
@@ -24,7 +24,7 @@ public interface JgInstallationNoticeMapper extends CustomBaseMapper<JgInstallat
...
@@ -24,7 +24,7 @@ public interface JgInstallationNoticeMapper extends CustomBaseMapper<JgInstallat
* @param type 类型:enterprise-企业端、supervision-监管端
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 安装告知列表
* @return 安装告知列表
*/
*/
Page
<
JgInstallationNotice
>
queryForPage
(
Page
<
JgInstallationNotice
>
page
,
@Param
(
"param"
)
JgInstallationNoticeDto
model
,
@Param
(
"type"
)
String
type
);
Page
<
JgInstallationNotice
>
queryForPage
(
Page
<
JgInstallationNotice
>
page
,
@Param
(
"param"
)
JgInstallationNoticeDto
model
,
@Param
(
"type"
)
String
type
,
@Param
(
"orgCode"
)
String
orgCode
);
/**
/**
* 根据安装告知编号查询设备、设计、制造等信息
* 根据安装告知编号查询设备、设计、制造等信息
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/service/IJgInstallationNoticeService.java
View file @
58ce840f
...
@@ -41,7 +41,7 @@ public interface IJgInstallationNoticeService extends IService<JgInstallationNot
...
@@ -41,7 +41,7 @@ public interface IJgInstallationNoticeService extends IService<JgInstallationNot
* @param type 类型:enterprise-企业端、supervision-监管端
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 安装告知列表
* @return 安装告知列表
*/
*/
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNotice
>
page
,
JgInstallationNoticeDto
model
,
String
type
);
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNotice
>
page
,
JgInstallationNoticeDto
model
,
String
type
,
ReginParams
reginParams
);
/**
/**
* 批量删除
* 批量删除
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
58ce840f
...
@@ -43,6 +43,9 @@
...
@@ -43,6 +43,9 @@
<if
test=
"type == 'supervision'"
>
<if
test=
"type == 'supervision'"
>
AND (isn.notice_status in ('6612', '6613', '6614') or isn.status in('6614') )
AND (isn.notice_status in ('6612', '6613', '6614') or isn.status in('6614') )
</if>
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
AND isn.install_unit_credit_code = #{orgCode}
</if>
</where>
</where>
ORDER BY
ORDER BY
isn.notice_date DESC
isn.notice_date DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgInstallationNoticeController.java
View file @
58ce840f
...
@@ -126,7 +126,8 @@ public class JgInstallationNoticeController extends BaseController {
...
@@ -126,7 +126,8 @@ public class JgInstallationNoticeController extends BaseController {
@RequestBody
(
required
=
false
)
JgInstallationNoticeDto
model
@RequestBody
(
required
=
false
)
JgInstallationNoticeDto
model
)
{
)
{
Page
<
JgInstallationNotice
>
page
=
new
Page
<>(
current
,
size
);
Page
<
JgInstallationNotice
>
page
=
new
Page
<>(
current
,
size
);
return
ResponseHelper
.
buildResponse
(
iJgInstallationNoticeService
.
queryForJgInstallationNoticePage
(
page
,
model
,
type
));
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
iJgInstallationNoticeService
.
queryForJgInstallationNoticePage
(
page
,
model
,
type
,
reginParams
));
}
}
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
58ce840f
...
@@ -220,8 +220,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -220,8 +220,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
* @return 安装告知列表
* @return 安装告知列表
*/
*/
@Override
@Override
public
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNotice
>
page
,
JgInstallationNoticeDto
model
,
String
type
)
{
public
Page
<
JgInstallationNoticeDto
>
queryForJgInstallationNoticePage
(
Page
<
JgInstallationNotice
>
page
,
JgInstallationNoticeDto
model
,
String
type
,
ReginParams
reginParams
)
{
Page
<
JgInstallationNotice
>
noticePage
=
jgInstallationNoticeMapper
.
queryForPage
(
page
,
model
,
type
);
String
orgCode
;
if
(
type
.
equals
(
"enterprise"
))
{
orgCode
=
reginParams
.
getCompany
().
getCompanyCode
();
}
else
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
Page
<
JgInstallationNotice
>
noticePage
=
jgInstallationNoticeMapper
.
queryForPage
(
page
,
model
,
type
,
orgCode
);
// 将Page<JgInstallationNotice>转化为Page<JgInstallationNoticeDto>
// 将Page<JgInstallationNotice>转化为Page<JgInstallationNoticeDto>
Page
<
JgInstallationNoticeDto
>
noticeDtoPage
=
new
Page
<>();
Page
<
JgInstallationNoticeDto
>
noticeDtoPage
=
new
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