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
dfb29bef
Commit
dfb29bef
authored
Oct 14, 2022
by
dqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安高告知页面筛选
parent
ddbbfcc3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
18 deletions
+33
-18
InstallNoticePageDto.java
...in/amos/boot/module/ugp/api/dto/InstallNoticePageDto.java
+4
-4
InstallNoticeMapper.java
.../amos/boot/module/ugp/api/mapper/InstallNoticeMapper.java
+1
-1
InstallNoticeMapper.xml
...ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
+8
-8
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+18
-3
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+2
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/InstallNoticePageDto.java
View file @
dfb29bef
...
@@ -29,6 +29,9 @@ public class InstallNoticePageDto extends BaseDto {
...
@@ -29,6 +29,9 @@ public class InstallNoticePageDto extends BaseDto {
@ApiModelProperty
(
value
=
"项目安装区域"
)
@ApiModelProperty
(
value
=
"项目安装区域"
)
private
String
installRegion
;
private
String
installRegion
;
@ApiModelProperty
(
value
=
"项目开工日期"
)
private
String
startDate
;
@ApiModelProperty
(
value
=
"建设单位"
)
@ApiModelProperty
(
value
=
"建设单位"
)
private
String
constructionUnit
;
private
String
constructionUnit
;
...
@@ -48,10 +51,7 @@ public class InstallNoticePageDto extends BaseDto {
...
@@ -48,10 +51,7 @@ public class InstallNoticePageDto extends BaseDto {
private
String
chargerPersonId
;
private
String
chargerPersonId
;
@ApiModelProperty
(
value
=
"监检机构"
)
@ApiModelProperty
(
value
=
"监检机构"
)
private
String
inspectionOrgId
;
private
String
inspectionUnitId
;
@ApiModelProperty
(
value
=
"附件查看"
)
private
Text
info
;
@ApiModelProperty
(
value
=
"告知申请状态"
)
@ApiModelProperty
(
value
=
"告知申请状态"
)
private
String
noticeStatus
;
private
String
noticeStatus
;
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/InstallNoticeMapper.java
View file @
dfb29bef
...
@@ -28,7 +28,7 @@ public interface InstallNoticeMapper extends BaseMapper<InstallNotice> {
...
@@ -28,7 +28,7 @@ public interface InstallNoticeMapper extends BaseMapper<InstallNotice> {
InstallNoticePageDto
selectById
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
InstallNoticePageDto
selectById
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
//安装告知申请页面分页列表
//安装告知申请页面分页列表
Page
<
InstallNoticePageDto
>
installNoticePage
(
IPage
<
InstallNoticePageDto
>
page
);
Page
<
InstallNoticePageDto
>
installNoticePage
(
IPage
<
InstallNoticePageDto
>
page
,
@RequestParam
String
name
,
@RequestParam
String
constructionUnit
);
//根据sequenceNbr查询告知申请详情
//根据sequenceNbr查询告知申请详情
InstallNoticeDto
selectoneById
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
);
InstallNoticeDto
selectoneById
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
View file @
dfb29bef
...
@@ -3,13 +3,11 @@
...
@@ -3,13 +3,11 @@
<mapper
namespace=
"com.yeejoin.amos.boot.module.ugp.api.mapper.InstallNoticeMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.ugp.api.mapper.InstallNoticeMapper"
>
<!-- 查询安装告知申请列表-->
<!-- 查询安装告知申请列表-->
<select
id=
"installNoticeList"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
<select
id=
"installNoticeList"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
SELECT tz_ugp_project.name,install_region,start_date,construction_unit,install_pri,charge_person,installation_unit,charge_person_id,
SELECT tz_ugp_project.name,install_region,start_date,construction_unit,install_pri,charge_person,installation_unit,charge_person_id,
notice_status,notice_date ,supervise_dept_id,info
notice_status,notice_date ,supervise_dept_id,info
FROM tz_ugp_install_notice, tz_ugp_project ,tz_ugp_supervise_rule ,tz_ugp_attachment
FROM tz_ugp_install_notice, tz_ugp_project ,tz_ugp_supervise_rule ,tz_ugp_attachment
WHERE tz_ugp_install_notice.project_id=tz_ugp_project.sequence_nbr AND tz_ugp_supervise_rule.admin_region_code= tz_ugp_project.install_region_code
WHERE tz_ugp_install_notice.project_id=tz_ugp_project.sequence_nbr AND tz_ugp_supervise_rule.admin_region_code= tz_ugp_project.install_region_code
AND tz_ugp_attachment.source_id=tz_ugp_project.sequence_nbr
AND tz_ugp_project.name LIKE '%'|| #{name} || '%' AND construction_unit LIKE '%'|| #{constructionUnit} || '%'
</select>
</select>
<!-- 安装告知申请列表按name,unit筛选-->
<!-- 安装告知申请列表按name,unit筛选-->
<select
id=
"selectByName"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
<select
id=
"selectByName"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
...
@@ -36,11 +34,13 @@
...
@@ -36,11 +34,13 @@
<!-- 查询安装告知申请页面-->
<!-- 查询安装告知申请页面-->
<select
id=
"installNoticePage"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
<select
id=
"installNoticePage"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto"
>
SELECT tz_ugp_project.sequence_nbr,tz_ugp_project.name,install_region,start_date,construction_unit,install_pri,charge_person,installation_unit,charge_person_id,
SELECT tz_ugp_project.name,install_region,start_date,construction_unit,charge_person,installation_unit,install_pri,supervise_dept_id
notice_status,notice_date ,supervise_dept_id,info
,charge_person_id,inspection_unit_id,notice_status,notice_date
FROM tz_ugp_install_notice, tz_ugp_project ,tz_ugp_supervise_rule ,tz_ugp_attachment
FROM tz_ugp_install_notice, tz_ugp_project ,tz_ugp_supervise_rule ,tz_ugp_verify
WHERE tz_ugp_install_notice.project_id=tz_ugp_project.sequence_nbr AND tz_ugp_supervise_rule.admin_region_code= tz_ugp_project.install_region_code
WHERE tz_ugp_install_notice.project_id=tz_ugp_project.sequence_nbr
AND tz_ugp_attachment.source_id=tz_ugp_project.sequence_nbr
AND tz_ugp_install_notice.project_id=tz_ugp_verify.project_id
AND tz_ugp_supervise_rule.admin_region_code=tz_ugp_project.install_region_code
AND tz_ugp_project.name LIKE '%${name}%' AND construction_unit LIKE '%${constructionUnit}%'
</select>
</select>
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/InstallNoticeController.java
View file @
dfb29bef
...
@@ -120,13 +120,12 @@ public class InstallNoticeController extends BaseController {
...
@@ -120,13 +120,12 @@ public class InstallNoticeController extends BaseController {
@GetMapping
(
value
=
"/installNoticePage"
)
@GetMapping
(
value
=
"/installNoticePage"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知表分页查询"
,
notes
=
"安装告知表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"安装告知表分页查询"
,
notes
=
"安装告知表分页查询"
)
public
ResponseModel
<
Page
<
InstallNoticePageDto
>>
queryForPage1
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
InstallNoticePageDto
>>
queryForPage1
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
constructionUnit
)
{
Page
<
InstallNoticePageDto
>
page
=
new
Page
<
InstallNoticePageDto
>();
Page
<
InstallNoticePageDto
>
page
=
new
Page
<
InstallNoticePageDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
installNoticePage
(
page
));
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
installNoticePage
(
page
,
name
,
constructionUnit
));
}
}
/**
/**
* 列表全部数据查询
* 列表全部数据查询
*
*
...
@@ -181,4 +180,20 @@ public class InstallNoticeController extends BaseController {
...
@@ -181,4 +180,20 @@ public class InstallNoticeController extends BaseController {
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateWithModel
(
model
));
}
}
/**
* 提交申请
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"根据sequenceNbr更新提交申请"
,
notes
=
"根据sequenceNbr更新提交申请"
)
public
ResponseModel
<
InstallNoticeDto
>
InstallNotice
(
@RequestBody
InstallNoticeDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setProjectId
(
sequenceNbr
);
model
.
setNoticeStatus
(
"已提交"
);
model
=
installNoticeServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
View file @
dfb29bef
...
@@ -44,8 +44,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -44,8 +44,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
/**
/**
* 安装告知申请分页查询
* 安装告知申请分页查询
*/
*/
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
)
{
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
,
String
name
,
String
constructionUnit
)
{
return
installNoticeMapper
.
installNoticePage
(
page
);
return
installNoticeMapper
.
installNoticePage
(
page
,
name
,
constructionUnit
);
}
}
/**
/**
...
...
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