Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
easy-affair-show
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
easy-affair-show
Commits
f5319703
Commit
f5319703
authored
Jul 01, 2022
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
2f76e57b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
eas-manager/src/main/java/com/mortals/xhx/module/customer/service/impl/CustomerWorkCollectServiceImpl.java
...customer/service/impl/CustomerWorkCollectServiceImpl.java
+8
-0
eas-manager/src/main/java/com/mortals/xhx/module/customer/web/CustomerController.java
...m/mortals/xhx/module/customer/web/CustomerController.java
+2
-2
No files found.
eas-manager/src/main/java/com/mortals/xhx/module/customer/service/impl/CustomerWorkCollectServiceImpl.java
View file @
f5319703
...
@@ -10,6 +10,7 @@ import com.mortals.xhx.module.customer.model.CustomerWorkDesignEntity;
...
@@ -10,6 +10,7 @@ import com.mortals.xhx.module.customer.model.CustomerWorkDesignEntity;
import
com.mortals.xhx.module.customer.service.CustomerWorkCollectService
;
import
com.mortals.xhx.module.customer.service.CustomerWorkCollectService
;
import
com.mortals.xhx.module.masterplate.model.MasterplateUseInfoEntity
;
import
com.mortals.xhx.module.masterplate.model.MasterplateUseInfoEntity
;
import
com.mortals.xhx.module.masterplate.service.MasterplateUseInfoService
;
import
com.mortals.xhx.module.masterplate.service.MasterplateUseInfoService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -36,5 +37,12 @@ public class CustomerWorkCollectServiceImpl extends AbstractCRUDServiceImpl<Cust
...
@@ -36,5 +37,12 @@ public class CustomerWorkCollectServiceImpl extends AbstractCRUDServiceImpl<Cust
protected
void
saveBefore
(
CustomerWorkCollectEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveBefore
(
CustomerWorkCollectEntity
entity
,
Context
context
)
throws
AppException
{
this
.
validData
(
entity
,
context
);
this
.
validData
(
entity
,
context
);
entity
.
setCustomerId
(
this
.
getContextUserId
(
context
));
entity
.
setCustomerId
(
this
.
getContextUserId
(
context
));
CustomerWorkCollectEntity
query
=
new
CustomerWorkCollectEntity
();
query
.
setCustomerId
(
entity
.
getCustomerId
());
query
.
setMasterplateId
(
entity
.
getMasterplateId
());
List
<
CustomerWorkCollectEntity
>
list
=
this
.
find
(
query
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
throw
new
AppException
(
"已收藏此模板,请勿重复收藏"
);
}
}
}
}
}
\ No newline at end of file
eas-manager/src/main/java/com/mortals/xhx/module/customer/web/CustomerController.java
View file @
f5319703
...
@@ -47,9 +47,9 @@ public class CustomerController extends BaseCRUDJsonBodyMappingController<Custom
...
@@ -47,9 +47,9 @@ public class CustomerController extends BaseCRUDJsonBodyMappingController<Custom
}
}
@Override
@Override
public
Rest
<
Map
<
String
,
Object
>
>
list
(
@RequestBody
(
required
=
false
)
CustomerEntity
query
)
{
public
Rest
<
Object
>
list
(
@RequestBody
(
required
=
false
)
CustomerEntity
query
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
Rest
<
Map
<
String
,
Object
>
>
ret
=
new
Rest
();
Rest
<
Object
>
ret
=
new
Rest
();
Context
context
=
this
.
getContext
();
Context
context
=
this
.
getContext
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
...
...
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