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
3c60a3f0
Commit
3c60a3f0
authored
Mar 16, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资料审核相关业务修改
parent
16af784a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
32 deletions
+25
-32
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+25
-32
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 @
3c60a3f0
...
@@ -4,47 +4,37 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,47 +4,37 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.
yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.
baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.
module.common.api.entity.OrgUs
r
;
import
com.yeejoin.amos.boot.
biz.common.controller.BaseControlle
r
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.NoticeStatusEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.NoticeStatusEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectInitiationEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectInitiationEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectResourceEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.WhetherItPassEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.WhetherItPassEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.constants.XJConstant
;
import
com.yeejoin.amos.boot.module.ugp.api.constants.XJConstant
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.
*
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.
InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.
entity.*
;
import
com.yeejoin.amos.boot.module.ugp.api.
dto.InstallNoticePageDto
;
import
com.yeejoin.amos.boot.module.ugp.api.
mapper.InstallNoticeMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.
dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.
mapper.ProjectMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.
entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.
service.IInstallNoticeService
;
import
com.yeejoin.amos.boot.module.ugp.api.
entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.biz.fegin.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.ugp.biz.fegin.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.*
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.ApiOperation
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.text.ParseException
;
import
org.springframework.web.bind.annotation.*
;
import
java.text.SimpleDateFormat
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.Date
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
java.util.List
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
java.util.Map
;
import
springfox.documentation.spring.web.json.Json
;
/**
/**
* 安装告知表
* 安装告知表
...
@@ -382,8 +372,11 @@ public class InstallNoticeController extends BaseController {
...
@@ -382,8 +372,11 @@ public class InstallNoticeController extends BaseController {
@PostMapping
(
value
=
"/saveOrUpdate"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@ApiOperation
(
value
=
"新增/修改安装告知表信息"
,
notes
=
"新增/修改安装告知表信息"
)
@ApiOperation
(
value
=
"新增/修改安装告知表信息"
,
notes
=
"新增/修改安装告知表信息"
)
public
ResponseModel
<
InstallNoticeDto
>
saveOrUpdate
(
@RequestBody
JSONObject
jsonObject
)
{
public
ResponseModel
<
InstallNoticeDto
>
saveOrUpdate
(
@RequestBody
JSONObject
jsonObject
)
{
InstallNoticeDto
model
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
jsonObject
.
get
(
"installNoticeInfo"
)),
InstallNoticeDto
.
class
);
InstallNoticeDto
model
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
jsonObject
.
get
(
"noticeInfo"
)),
InstallNoticeDto
.
class
);
Project
project
=
projectServiceImpl
.
getById
(
model
.
getProjectId
());
Long
projectId
=
Long
.
valueOf
(
String
.
valueOf
(
jsonObject
.
get
(
"projectId"
)));
Project
project
=
projectServiceImpl
.
getById
(
projectId
);
model
.
setProjectId
(
projectId
);
model
.
setNoticeStatus
(
String
.
valueOf
(
jsonObject
.
get
(
"noticeStatus"
)));
LambdaQueryWrapper
<
InstallNotice
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
InstallNotice
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
InstallNotice:
:
getProjectId
,
model
.
getProjectId
());
lambdaQueryWrapper
.
eq
(
InstallNotice:
:
getProjectId
,
model
.
getProjectId
());
lambdaQueryWrapper
.
eq
(
InstallNotice:
:
getIsDelete
,
Boolean
.
FALSE
);
lambdaQueryWrapper
.
eq
(
InstallNotice:
:
getIsDelete
,
Boolean
.
FALSE
);
...
@@ -396,8 +389,8 @@ public class InstallNoticeController extends BaseController {
...
@@ -396,8 +389,8 @@ public class InstallNoticeController extends BaseController {
installNotice
.
setNoticeDate
(
new
Date
());
installNotice
.
setNoticeDate
(
new
Date
());
installNotice
.
setOrganizationCode
(
orgServiceImpl
.
getOrgUsr
().
getBizOrgCode
());
installNotice
.
setOrganizationCode
(
orgServiceImpl
.
getOrgUsr
().
getBizOrgCode
());
iInstallNoticeService
.
saveOrUpdate
(
installNotice
);
iInstallNoticeService
.
saveOrUpdate
(
installNotice
);
if
(
NoticeStatusEnum
.
已提交
.
getNam
e
().
equals
(
model
.
getNoticeStatus
()))
{
if
(
!
WhetherItPassEnum
.
SAVE
.
getCod
e
().
equals
(
model
.
getNoticeStatus
()))
{
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
model
,
WhetherItPassEnum
.
PASS
.
getCode
(),
null
);
projectInitiationServiceImpl
.
execute
(
project
.
getInstanceId
(),
model
,
model
.
getNoticeStatus
(),
null
);
}
}
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
...
@@ -415,7 +408,7 @@ public class InstallNoticeController extends BaseController {
...
@@ -415,7 +408,7 @@ public class InstallNoticeController extends BaseController {
return
null
;
return
null
;
}
}
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"
installN
oticeInfo"
,
iInstallNoticeService
.
getInfoByProjectId
(
projectId
));
jsonObject
.
put
(
"
n
oticeInfo"
,
iInstallNoticeService
.
getInfoByProjectId
(
projectId
));
jsonObject
.
put
(
"projectInfo"
,
projectServiceImpl
.
selectById
(
projectId
));
jsonObject
.
put
(
"projectInfo"
,
projectServiceImpl
.
selectById
(
projectId
));
return
ResponseHelper
.
buildResponse
(
jsonObject
);
return
ResponseHelper
.
buildResponse
(
jsonObject
);
}
}
...
...
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