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
0bac851e
Commit
0bac851e
authored
Oct 25, 2022
by
sxwnfpwx@163.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
e8f0a487
82b64ea0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
6 deletions
+68
-6
InstallNoticeMapper.xml
...ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
+2
-1
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+53
-4
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+13
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
View file @
0bac851e
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
supervise_dept_id,
supervise_dept_id,
inspection_unit_id,
inspection_unit_id,
notice_status,
notice_status,
notice_date
notice_date,
approved
FROM
FROM
tz_ugp_install_notice
tz_ugp_install_notice
LEFT JOIN tz_ugp_project ON tz_ugp_install_notice.project_id = tz_ugp_project.sequence_nbr
LEFT JOIN tz_ugp_project ON tz_ugp_install_notice.project_id = tz_ugp_project.sequence_nbr
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/InstallNoticeController.java
View file @
0bac851e
...
@@ -195,9 +195,23 @@ public class InstallNoticeController extends BaseController {
...
@@ -195,9 +195,23 @@ public class InstallNoticeController extends BaseController {
@PostMapping
(
value
=
"/saveInstallNotice"
)
@PostMapping
(
value
=
"/saveInstallNotice"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"新增安装告知申请"
,
notes
=
"新增安装告知申请"
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"新增安装告知申请"
,
notes
=
"新增安装告知申请"
)
public
ResponseModel
<
InstallNoticeDto
>
saveInstallNotice
(
@RequestBody
JSONObject
object
,
@RequestParam
(
required
=
false
)
String
noticeStatus
)
{
public
ResponseModel
<
InstallNoticeDto
>
saveInstallNotice
(
@RequestBody
JSONObject
object
,
@RequestParam
(
required
=
false
)
String
noticeStatus
)
{
InstallNoticeDto
installNoticeDto
=
new
InstallNoticeDto
();
InstallNoticeDto
installNoticeDto
=
installNoticeServiceImpl
.
saveInstallNotice
(
object
,
noticeStatus
);
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
object
.
getLong
(
"name"
));
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"name"
));
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
installNoticeDto
.
setNoticeDate
(
new
Date
());
installNoticeDto
.
setApproved
(
false
);
installNoticeDto
.
setOrganizationCode
(
orgServiceImpl
.
getOrgUsr
().
getBizOrgCode
());
installNoticeDto
.
setLicenseNum
(
object
.
getString
(
"licenseNum"
));
installNoticeDto
.
setLicenseCompany
(
object
.
getString
(
"licenseCompany"
));
final
JSONArray
licenseAttch
=
object
.
getJSONArray
(
"licenseAttch"
);
final
JSONArray
contractAttch
=
object
.
getJSONArray
(
"contractAttch"
);
installNoticeDto
.
setLicenseAttch
(
JSON
.
toJSONString
(
licenseAttch
));
installNoticeDto
.
setContractAttch
(
JSON
.
toJSONString
(
contractAttch
));
projectInitiationServiceImpl
.
execute
(
projectDto
.
getInstanceId
(),
installNoticeDto
,
"1"
);
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
createWithModel
(
installNoticeDto
));
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
createWithModel
(
installNoticeDto
));
}
}
...
@@ -211,7 +225,17 @@ public class InstallNoticeController extends BaseController {
...
@@ -211,7 +225,17 @@ public class InstallNoticeController extends BaseController {
@GetMapping
(
value
=
"/message/{sequenceNbr}"
)
@GetMapping
(
value
=
"/message/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr安装告知信息"
,
notes
=
"根据sequenceNbr安装告知信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr安装告知信息"
,
notes
=
"根据sequenceNbr安装告知信息"
)
public
ResponseModel
<
JSONObject
>
selectOneBySeq
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
JSONObject
>
selectOneBySeq
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
selectOneBySeq
(
sequenceNbr
));
final
InstallNoticeDto
installNoticeDto
=
installNoticeServiceImpl
.
selectOneById
(
sequenceNbr
);
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
installNoticeDto
.
getProjectId
());
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"name"
,
projectDto
.
getSequenceNbr
());
jsonObject
.
put
(
"installRegion"
,
projectDto
.
getInstallRegion
());
jsonObject
.
put
(
"licenseNum"
,
installNoticeDto
.
getLicenseNum
());
jsonObject
.
put
(
"licenseCompany"
,
installNoticeDto
.
getLicenseCompany
());
jsonObject
.
put
(
"licenseAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getLicenseAttch
()));
jsonObject
.
put
(
"contractAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getContractAttch
()));
return
ResponseHelper
.
buildResponse
(
jsonObject
);
}
}
/**
/**
...
@@ -257,12 +281,18 @@ public class InstallNoticeController extends BaseController {
...
@@ -257,12 +281,18 @@ public class InstallNoticeController extends BaseController {
if
(
noticeStatus
.
equals
(
"已提交"
)||
noticeStatus
.
equals
(
"已保存"
)){
if
(
noticeStatus
.
equals
(
"已提交"
)||
noticeStatus
.
equals
(
"已保存"
)){
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
removeById
(
sequenceNbr
));
}
}
return
ResponseHelper
.
buildResponse
(
false
)
;
return
null
;
}
}
/**
* 监察部门接受安装告知
* @param sequenceNbr
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/acceptNotification"
)
@PostMapping
(
value
=
"/acceptNotification"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"
接受告知"
,
notes
=
"接受
告知"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"
监察部门接受安装告知"
,
notes
=
"监察部门接受安装
告知"
)
public
ResponseModel
<
Boolean
>
acceptNotification
(
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
acceptNotification
(
Long
sequenceNbr
){
InstallNotice
installNotice
=
installNoticeServiceImpl
.
getById
(
sequenceNbr
);
InstallNotice
installNotice
=
installNoticeServiceImpl
.
getById
(
sequenceNbr
);
installNotice
.
setNoticeStatus
(
NoticeStatusEnum
.
已接收
.
getName
());
installNotice
.
setNoticeStatus
(
NoticeStatusEnum
.
已接收
.
getName
());
...
@@ -270,4 +300,23 @@ public class InstallNoticeController extends BaseController {
...
@@ -270,4 +300,23 @@ public class InstallNoticeController extends BaseController {
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
installNotice
,
NoticeStatusEnum
.
已接收
.
getStatusId
());
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
installNotice
,
NoticeStatusEnum
.
已接收
.
getStatusId
());
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateById
(
installNotice
));
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateById
(
installNotice
));
}
}
/**
* 监检部门审查(通过/退回)安装告知
* @param sequenceNbr
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/inspectNotification"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"监检部门审查(通过/退回)安装告知"
,
notes
=
"监检部门审查(通过/退回)安装告知"
)
public
ResponseModel
<
Boolean
>
inspectNotification
(
Long
sequenceNbr
,
String
option
){
InstallNotice
installNotice
=
installNoticeServiceImpl
.
getById
(
sequenceNbr
);
installNotice
.
setApproved
(
true
);
if
(
NoticeStatusEnum
.
已退回
.
equals
(
option
)){
installNotice
.
setApproved
(
false
);
}
Project
project
=
projectServiceImpl
.
getById
(
installNotice
.
getProjectId
());
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
installNotice
,
option
);
return
ResponseHelper
.
buildResponse
(
installNoticeServiceImpl
.
updateById
(
installNotice
));
}
}
}
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 @
0bac851e
...
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
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
;
...
@@ -56,7 +57,18 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -56,7 +57,18 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
* 安装告知申请分页查询
* 安装告知申请分页查询
*/
*/
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
,
String
name
,
String
constructionUnit
)
{
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
,
String
name
,
String
constructionUnit
)
{
return
installNoticeMapper
.
installNoticePage
(
page
,
name
,
constructionUnit
);
Page
<
InstallNoticePageDto
>
installNoticePage
=
installNoticeMapper
.
installNoticePage
(
page
,
name
,
constructionUnit
);
List
<
InstallNoticePageDto
>
installNoticePageDtos
=
installNoticePage
.
getRecords
();
for
(
InstallNoticePageDto
installNoticePageDto:
installNoticePageDtos
){
if
(!
ValidationUtil
.
isEmpty
(
installNoticePageDto
.
getApproved
())){
if
(
installNoticePageDto
.
getApproved
()){
installNoticePageDto
.
setApprovedName
(
"通过"
);
}
else
{
installNoticePageDto
.
setApprovedName
(
"不通过"
);
}
}
}
return
installNoticePage
;
}
}
/**
/**
...
...
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