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
14a1039c
Commit
14a1039c
authored
Nov 04, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决修改添加材料报错问题
parent
4dc26299
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
MaterialController.java
...os/boot/module/ugp/biz/controller/MaterialController.java
+1
-1
MaterialServiceImpl.java
...boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
+2
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/MaterialController.java
View file @
14a1039c
...
...
@@ -161,7 +161,7 @@ public class MaterialController extends BaseController {
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveIM"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增材料+附件"
,
notes
=
"新增材料+附件"
)
public
ResponseModel
<
MaterialDto
>
saveMaterial
(
@RequestBody
JSONObject
object
)
{
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
View file @
14a1039c
...
...
@@ -14,6 +14,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Material;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.AttachmentMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.MaterialMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IMaterialService
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
...
...
@@ -77,6 +78,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
* 新增材料
*/
@Override
@BusinessIdentify
public
MaterialDto
saveMaterial
(
JSONObject
jsonObject
){
MaterialDto
materialDto
=
new
MaterialDto
();
materialDto
.
setRecDate
(
new
Date
());
...
...
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