Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
040f69d4
Commit
040f69d4
authored
Nov 05, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建竞争对手返回值修改为返回json对象
parent
5914e66b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
CustomerCompetitorService.java
...service/customerCompetitor/CustomerCompetitorService.java
+1
-1
CustomerCompetitorServiceImpl.java
...ice/customerCompetitor/CustomerCompetitorServiceImpl.java
+2
-2
CustomerCompetitorController.java
...dmin/customerCompetitor/CustomerCompetitorController.java
+1
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerCompetitor/CustomerCompetitorService.java
View file @
040f69d4
...
@@ -20,7 +20,7 @@ public interface CustomerCompetitorService extends IService<CustomerCompetitorDO
...
@@ -20,7 +20,7 @@ public interface CustomerCompetitorService extends IService<CustomerCompetitorDO
* @param createReqVO 创建信息
* @param createReqVO 创建信息
* @return 编号
* @return 编号
*/
*/
Long
createCompetitor
(
@Valid
CustomerCompetitorCreateReqVO
createReqVO
);
CustomerCompetitorDO
createCompetitor
(
@Valid
CustomerCompetitorCreateReqVO
createReqVO
);
/**
/**
* 更新客户竞争对手
* 更新客户竞争对手
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerCompetitor/CustomerCompetitorServiceImpl.java
View file @
040f69d4
...
@@ -27,7 +27,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe
...
@@ -27,7 +27,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe
private
CustomerCompetitorMapper
competitorMapper
;
private
CustomerCompetitorMapper
competitorMapper
;
@Override
@Override
public
Long
createCompetitor
(
CustomerCompetitorCreateReqVO
createReqVO
)
{
public
CustomerCompetitorDO
createCompetitor
(
CustomerCompetitorCreateReqVO
createReqVO
)
{
// 校验存在
// 校验存在
Long
count
=
competitorMapper
.
selectCount
(
"name"
,
createReqVO
.
getName
());
Long
count
=
competitorMapper
.
selectCount
(
"name"
,
createReqVO
.
getName
());
...
@@ -39,7 +39,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe
...
@@ -39,7 +39,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe
CustomerCompetitorDO
competitor
=
CustomerCompetitorConvert
.
INSTANCE
.
convert
(
createReqVO
);
CustomerCompetitorDO
competitor
=
CustomerCompetitorConvert
.
INSTANCE
.
convert
(
createReqVO
);
competitorMapper
.
insert
(
competitor
);
competitorMapper
.
insert
(
competitor
);
// 返回
// 返回
return
competitor
.
getId
()
;
return
competitor
;
}
}
@Override
@Override
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerCompetitor/CustomerCompetitorController.java
View file @
040f69d4
...
@@ -34,7 +34,7 @@ public class CustomerCompetitorController {
...
@@ -34,7 +34,7 @@ public class CustomerCompetitorController {
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
@ApiOperation
(
"创建客户竞争对手"
)
@ApiOperation
(
"创建客户竞争对手"
)
// @PreAuthorize("@ss.hasPermission('customer:competitor:create')")
// @PreAuthorize("@ss.hasPermission('customer:competitor:create')")
public
CommonResult
<
Long
>
createCompetitor
(
@Valid
@RequestBody
CustomerCompetitorCreateReqVO
createReqVO
)
{
public
CommonResult
<
CustomerCompetitorDO
>
createCompetitor
(
@Valid
@RequestBody
CustomerCompetitorCreateReqVO
createReqVO
)
{
return
success
(
competitorService
.
createCompetitor
(
createReqVO
));
return
success
(
competitorService
.
createCompetitor
(
createReqVO
));
}
}
...
...
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