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
8ad1a315
Commit
8ad1a315
authored
Nov 22, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 告知申请新增、详情、更新接口
parent
e692cf8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+5
-3
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+19
-7
ProblemInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
+1
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/InstallNoticeController.java
View file @
8ad1a315
...
...
@@ -180,9 +180,11 @@ public class InstallNoticeController extends BaseController {
@ApiOperation
(
httpMethod
=
"put"
,
value
=
"根据sequenceNbr更新提交申请"
,
notes
=
"根据sequenceNbr更新提交申请"
)
public
ResponseModel
<
InstallNoticeDto
>
InstallNoticeSubmit
(
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
final
InstallNoticeDto
model
=
installNoticeServiceImpl
.
selectOneById
(
sequenceNbr
);
Project
project
=
projectServiceImpl
.
getById
(
model
.
getProjectId
());
if
(
model
.
getNoticeStatus
().
equals
(
"已保存"
)){
model
.
setNoticeStatus
(
"已提交"
);
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateWithModel
(
model
));
installNoticeServiceImpl
.
updateWithModel
(
model
);
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
model
,
"1"
);
}
return
ResponseHelper
.
buildResponse
(
model
);
}
...
...
@@ -195,8 +197,8 @@ public class InstallNoticeController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/saveInstallNotice"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"新增安装告知申请"
,
notes
=
"新增安装告知申请"
)
public
ResponseModel
<
InstallNoticeDto
>
saveInstallNotice
(
@RequestBody
JSONObject
object
,
@RequestParam
(
required
=
false
)
String
noticeStatus
)
{
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
saveInstallNotice
(
object
,
noticeStatus
));
public
ResponseModel
<
InstallNoticeDto
>
saveInstallNotice
(
@RequestBody
JSONObject
object
,
@RequestParam
(
required
=
false
)
String
noticeStatus
,
@RequestParam
(
required
=
false
)
String
installId
)
{
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
saveInstallNotice
(
object
,
noticeStatus
,
installId
));
}
/**
...
...
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 @
8ad1a315
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.InstallNoticeMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IInstallNoticeService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
...
...
@@ -49,6 +50,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
OrgServiceImpl
orgServiceImpl
;
@Autowired
ProjectResourceServiceImpl
projectResourceServiceImpl
;
@Autowired
SuperviseRuleServiceImpl
superviseRuleServiceImpl
;
/**
* 分页查询
*/
...
...
@@ -106,11 +109,15 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
*
* @return
*/
public
InstallNoticeDto
saveInstallNotice
(
JSONObject
object
,
String
noticeStatus
)
{
public
InstallNoticeDto
saveInstallNotice
(
JSONObject
object
,
String
noticeStatus
,
String
installId
)
{
Long
projectId
=
object
.
getLong
(
"projectId"
);
if
(!
ValidationUtil
.
isEmpty
(
installId
)){
projectId
=
this
.
getById
(
installId
).
getProjectId
();
}
InstallNoticeDto
installNoticeDto
=
new
InstallNoticeDto
();
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
object
.
getLong
(
"projectId"
)
);
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"projectId"
)
);
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
projectId
);
installNoticeDto
.
setProjectId
(
projectId
);
installNoticeDto
.
setProjectName
(
projectDto
.
getName
());
installNoticeDto
.
setCompanyName
(
projectDto
.
getInstallationUnit
());
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
...
...
@@ -128,7 +135,7 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
InstallNotice
installNotice
=
new
InstallNotice
();
LambdaQueryWrapper
<
InstallNotice
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
InstallNotice
::
getProjectId
,
object
.
getLong
(
"projectId"
)
);
wrapper
.
eq
(
InstallNotice
::
getProjectId
,
projectId
);
List
<
InstallNotice
>
installNoticeList
=
this
.
list
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
installNoticeList
)){
installNotice
=
installNoticeList
.
iterator
().
next
();
...
...
@@ -151,11 +158,16 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
* @return
*/
public
JSONObject
selectOneBySeq
(
Long
sequenceNbr
)
{
final
InstallNoticeDto
installNoticeDto
=
selectOneById
(
sequenceNbr
);
// final ProjectDto projectDto = projectServiceImpl.queryBySeq(installNoticeDto.getProjectId());
JSONObject
jsonObject
=
new
JSONObject
();
Map
map
=
projectServiceImpl
.
getMap
(
new
LambdaQueryWrapper
<
Project
>().
eq
(
Project:
:
getSequenceNbr
,
installNoticeDto
.
getProjectId
()));
final
InstallNoticeDto
installNoticeDto
=
selectOneById
(
sequenceNbr
);
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
installNoticeDto
.
getProjectId
());
SuperviseRule
superviseRule
=
superviseRuleServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
SuperviseRule
>().
eq
(
SuperviseRule:
:
getAdminRegionCode
,
projectDto
.
getInstallRegionCode
()));
Map
map
=
new
org
.
apache
.
commons
.
beanutils
.
BeanMap
(
projectDto
);
jsonObject
.
putAll
(
map
);
if
(!
ValidationUtil
.
isEmpty
(
superviseRule
)){
jsonObject
.
put
(
"inspectionUnit"
,
orgServiceImpl
.
getdetialInfo
(
String
.
valueOf
(
superviseRule
.
getInspectionUnitId
())).
get
(
"name"
));
jsonObject
.
put
(
"superviseDept"
,
orgServiceImpl
.
getdetialInfo
(
String
.
valueOf
(
superviseRule
.
getSuperviseDeptId
())).
get
(
"name"
));
}
// jsonObject.put("name",projectDto.getName());
// jsonObject.put("installRegion",projectDto.getInstallRegion());
jsonObject
.
put
(
"licenseNum"
,
installNoticeDto
.
getLicenseNum
());
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
View file @
8ad1a315
...
...
@@ -336,7 +336,7 @@ public class ProblemInitiationServiceImpl {
LambdaQueryWrapper
<
OrgUsr
>
wrapperQueryWrapper
=
new
LambdaQueryWrapper
<>();
wrapperQueryWrapper
.
eq
(
OrgUsr:
:
getAmosOrgId
,
agencyUserModel
.
getSequenceNbr
());
RectifyMsg
rectifyMsg
=
new
RectifyMsg
();
rectifyMsg
.
setContent
(
smsRecordModel
.
getSmsContent
()
);
rectifyMsg
.
setContent
(
content
);
rectifyMsg
.
setProblemId
(
sequenceNbr
);
rectifyMsg
.
setNoticeUnitId
(
Long
.
valueOf
(
noticeUnitId
));
rectifyMsg
.
setMsgReceiver
(
orgUsrServiceImpl
.
getOne
(
wrapperQueryWrapper
).
getSequenceNbr
());
...
...
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