Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
d7c5d76d
Commit
d7c5d76d
authored
Aug 03, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
随车物品
parent
03359b4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
AccompanyingItemBiz.java
...va/com/xxfc/platform/vehicle/biz/AccompanyingItemBiz.java
+4
-5
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/AccompanyingItemBiz.java
View file @
d7c5d76d
...
@@ -41,7 +41,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
...
@@ -41,7 +41,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
@Resource
(
name
=
"redisTemplate"
)
@Resource
(
name
=
"redisTemplate"
)
HashOperations
itemHashOperations
;
HashOperations
itemHashOperations
;
private
static
final
String
ACCOMPANY_ITEM
=
"accompany:item"
;
private
static
final
String
ACCOMPANY_ITEM
=
"accompany:item"
;
@Cache
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
@Cache
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
public
List
<
AccompanyingItem
>
getAll
(){
public
List
<
AccompanyingItem
>
getAll
(){
...
@@ -81,7 +81,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
...
@@ -81,7 +81,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
return
PageDataVO
.
pageInfo
(
accompanyingItemsPageInfo
);
return
PageDataVO
.
pageInfo
(
accompanyingItemsPageInfo
);
}
}
@CacheClear
(
pre
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
@CacheClear
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
public
RestResponse
<
Integer
>
add
(
AddOrUpdateAccompanyingItem
addOrUpdateAccompanyingItem
)
throws
Exception
{
public
RestResponse
<
Integer
>
add
(
AddOrUpdateAccompanyingItem
addOrUpdateAccompanyingItem
)
throws
Exception
{
AccompanyingItem
accompanyingItem
=
new
AccompanyingItem
();
AccompanyingItem
accompanyingItem
=
new
AccompanyingItem
();
accompanyingItem
.
setId
(
null
);
accompanyingItem
.
setId
(
null
);
...
@@ -91,7 +91,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
...
@@ -91,7 +91,7 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
return
RestResponse
.
suc
();
return
RestResponse
.
suc
();
}
}
@CacheClear
(
pre
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
@CacheClear
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
public
RestResponse
<
Integer
>
update
(
AddOrUpdateAccompanyingItem
addOrUpdateAccompanyingItem
)
throws
Exception
{
public
RestResponse
<
Integer
>
update
(
AddOrUpdateAccompanyingItem
addOrUpdateAccompanyingItem
)
throws
Exception
{
AccompanyingItem
accompanyingItem
=
new
AccompanyingItem
();
AccompanyingItem
accompanyingItem
=
new
AccompanyingItem
();
BeanUtils
.
copyProperties
(
accompanyingItem
,
addOrUpdateAccompanyingItem
);
BeanUtils
.
copyProperties
(
accompanyingItem
,
addOrUpdateAccompanyingItem
);
...
@@ -100,14 +100,13 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
...
@@ -100,14 +100,13 @@ public class AccompanyingItemBiz extends BaseBiz<AccompanyingItemMapper, Accompa
return
RestResponse
.
suc
();
return
RestResponse
.
suc
();
}
}
@CacheClear
(
pre
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
@CacheClear
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL
)
public
RestResponse
<
Integer
>
del
(
Integer
id
){
public
RestResponse
<
Integer
>
del
(
Integer
id
){
Integer
effected
=
mapper
.
deleteByPrimaryKey
(
id
);
Integer
effected
=
mapper
.
deleteByPrimaryKey
(
id
);
redisTemplate
.
delete
(
ACCOMPANY_ITEM
);
redisTemplate
.
delete
(
ACCOMPANY_ITEM
);
return
RestResponse
.
suc
();
return
RestResponse
.
suc
();
}
}
@Cache
(
key
=
RedisKey
.
ACCOMPANYING_ITEM_CACHE_ALL_APP
+
"{1}"
)
public
List
<
AccompanyingItemVo
>
listAllItem
(
List
<
Integer
>
types
){
public
List
<
AccompanyingItemVo
>
listAllItem
(
List
<
Integer
>
types
){
String
typeKey
=
null
;
String
typeKey
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
types
)){
if
(
CollectionUtils
.
isNotEmpty
(
types
)){
...
...
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