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
cc44d19b
Commit
cc44d19b
authored
Nov 18, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化安装告知申请保存功能
parent
96edbe07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
InstallNoticeController.java
...ot/module/ugp/biz/controller/InstallNoticeController.java
+1
-1
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+21
-3
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 @
cc44d19b
...
@@ -230,7 +230,7 @@ public class InstallNoticeController extends BaseController {
...
@@ -230,7 +230,7 @@ public class InstallNoticeController extends BaseController {
if
(
installNoticeDto
.
getNoticeStatus
().
equals
(
"已保存"
)){
if
(
installNoticeDto
.
getNoticeStatus
().
equals
(
"已保存"
)){
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
}
}
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"
name
"
));
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"
projectId
"
));
installNoticeDto
.
setLicenseNum
(
object
.
getString
(
"licenseNum"
));
installNoticeDto
.
setLicenseNum
(
object
.
getString
(
"licenseNum"
));
installNoticeDto
.
setLicenseCompany
(
object
.
getString
(
"licenseCompany"
));
installNoticeDto
.
setLicenseCompany
(
object
.
getString
(
"licenseCompany"
));
final
JSONArray
licenseAttch
=
object
.
getJSONArray
(
"licenseAttch"
);
final
JSONArray
licenseAttch
=
object
.
getJSONArray
(
"licenseAttch"
);
...
...
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 @
cc44d19b
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
...
@@ -5,6 +5,7 @@ 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.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.NoticeStatusEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto
;
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.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
...
@@ -14,6 +15,7 @@ import com.yeejoin.amos.boot.module.ugp.api.service.IInstallNoticeService;
...
@@ -14,6 +15,7 @@ import com.yeejoin.amos.boot.module.ugp.api.service.IInstallNoticeService;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
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
;
...
@@ -107,8 +109,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -107,8 +109,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
public
InstallNoticeDto
saveInstallNotice
(
JSONObject
object
,
String
noticeStatus
)
{
public
InstallNoticeDto
saveInstallNotice
(
JSONObject
object
,
String
noticeStatus
)
{
InstallNoticeDto
installNoticeDto
=
new
InstallNoticeDto
();
InstallNoticeDto
installNoticeDto
=
new
InstallNoticeDto
();
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
object
.
getLong
(
"
name
"
));
final
ProjectDto
projectDto
=
projectServiceImpl
.
queryBySeq
(
object
.
getLong
(
"
projectId
"
));
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"
name
"
));
installNoticeDto
.
setProjectId
(
object
.
getLong
(
"
projectId
"
));
installNoticeDto
.
setProjectName
(
projectDto
.
getName
());
installNoticeDto
.
setProjectName
(
projectDto
.
getName
());
installNoticeDto
.
setCompanyName
(
projectDto
.
getInstallationUnit
());
installNoticeDto
.
setCompanyName
(
projectDto
.
getInstallationUnit
());
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
installNoticeDto
.
setNoticeStatus
(
noticeStatus
);
...
@@ -123,8 +125,22 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -123,8 +125,22 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
installNoticeDto
.
setLicenseAttch
(
JSON
.
toJSONString
(
licenseAttch
));
installNoticeDto
.
setLicenseAttch
(
JSON
.
toJSONString
(
licenseAttch
));
installNoticeDto
.
setContractAttch
(
JSON
.
toJSONString
(
contractAttch
));
installNoticeDto
.
setContractAttch
(
JSON
.
toJSONString
(
contractAttch
));
installNoticeDto
.
setOrganizationCode
(
orgServiceImpl
.
getOrgUsr
().
getBizOrgCode
());
installNoticeDto
.
setOrganizationCode
(
orgServiceImpl
.
getOrgUsr
().
getBizOrgCode
());
installNoticeDto
=
this
.
createWithModel
(
installNoticeDto
);
InstallNotice
installNotice
=
new
InstallNotice
();
LambdaQueryWrapper
<
InstallNotice
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
InstallNotice
::
getProjectId
,
object
.
getLong
(
"projectId"
));
List
<
InstallNotice
>
installNoticeList
=
this
.
list
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
installNoticeList
)){
installNotice
=
installNoticeList
.
iterator
().
next
();
installNoticeDto
.
setSequenceNbr
(
installNotice
.
getSequenceNbr
());
}
BeanUtils
.
copyProperties
(
installNoticeDto
,
installNotice
);
this
.
saveOrUpdate
(
installNotice
);
if
(
NoticeStatusEnum
.
已提交
.
getName
().
equals
(
noticeStatus
)){
projectInitiationServiceImpl
.
execute
(
projectDto
.
getInstanceId
(),
installNoticeDto
,
"1"
);
projectInitiationServiceImpl
.
execute
(
projectDto
.
getInstanceId
(),
installNoticeDto
,
"1"
);
}
return
installNoticeDto
;
return
installNoticeDto
;
}
}
...
@@ -145,6 +161,7 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -145,6 +161,7 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
jsonObject
.
put
(
"licenseAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getLicenseAttch
()));
jsonObject
.
put
(
"licenseAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getLicenseAttch
()));
jsonObject
.
put
(
"contractAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getContractAttch
()));
jsonObject
.
put
(
"contractAttch"
,
JSON
.
parseArray
(
installNoticeDto
.
getContractAttch
()));
jsonObject
.
put
(
"installPri"
,
installNoticeDto
.
getInstallPri
());
jsonObject
.
put
(
"installPri"
,
installNoticeDto
.
getInstallPri
());
jsonObject
.
put
(
"projectId"
,
projectDto
.
getSequenceNbr
());
return
jsonObject
;
return
jsonObject
;
}
}
}
}
\ No newline at end of file
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