Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
bb1f8f96
Commit
bb1f8f96
authored
Apr 24, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix1002761
parent
73e1f901
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+4
-0
RightsSettingTitleMapper.java
...d/book/rightsSetting/mapper/RightsSettingTitleMapper.java
+4
-0
RightsSettingTitleMapper.xml
...sources/mapper/rightssetting/RightsSettingTitleMapper.xml
+12
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
bb1f8f96
...
@@ -684,6 +684,10 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -684,6 +684,10 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
public
RightsSetting
getRightsSettingGiftCoupons
(
Long
rightsSettingId
,
Long
wechatUserId
)
{
public
RightsSetting
getRightsSettingGiftCoupons
(
Long
rightsSettingId
,
Long
wechatUserId
)
{
RightsSetting
rightsSetting
=
new
RightsSetting
();
RightsSetting
rightsSetting
=
new
RightsSetting
();
rightsSetting
.
setId
(
rightsSettingId
);
rightsSetting
.
setId
(
rightsSettingId
);
RightsSettingTitle
rightsSettingTitle4Gift
=
rightsSettingTitleMapper
.
getByRightSettingIdAndType
(
rightsSettingId
,
RightsNowItemType
.
GIFT_COUPON_PACKAGE
.
value
);
if
(
null
!=
rightsSettingTitle4Gift
){
rightsSetting
.
setGiftCouponPackageTitle
(
rightsSettingTitle4Gift
);
}
fillGiftCouponPack
(
rightsSetting
);
fillGiftCouponPack
(
rightsSetting
);
fillUserGiftReceiveStatus
(
rightsSetting
,
wechatUserId
);
fillUserGiftReceiveStatus
(
rightsSetting
,
wechatUserId
);
return
rightsSetting
;
return
rightsSetting
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/mapper/RightsSettingTitleMapper.java
View file @
bb1f8f96
...
@@ -2,6 +2,7 @@ package com.pcloud.book.rightsSetting.mapper;
...
@@ -2,6 +2,7 @@ package com.pcloud.book.rightsSetting.mapper;
import
com.pcloud.book.rightsSetting.entity.RightsSettingTitle
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingTitle
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
@@ -18,4 +19,6 @@ public interface RightsSettingTitleMapper {
...
@@ -18,4 +19,6 @@ public interface RightsSettingTitleMapper {
void
batchUpdate
(
List
<
RightsSettingTitle
>
rightsSettingTitles
);
void
batchUpdate
(
List
<
RightsSettingTitle
>
rightsSettingTitles
);
List
<
RightsSettingTitle
>
getByRightSettingId
(
Long
rightsSettingId
);
List
<
RightsSettingTitle
>
getByRightSettingId
(
Long
rightsSettingId
);
RightsSettingTitle
getByRightSettingIdAndType
(
@Param
(
"rightsSettingId"
)
Long
rightsSettingId
,
@Param
(
"type"
)
Integer
type
);
}
}
\ No newline at end of file
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingTitleMapper.xml
View file @
bb1f8f96
...
@@ -129,4 +129,15 @@
...
@@ -129,4 +129,15 @@
rights_setting_id = #{rightsSettingId}
rights_setting_id = #{rightsSettingId}
</select>
</select>
<select
id=
"getByRightSettingIdAndType"
resultMap=
"BaseResultMap"
parameterType=
"map"
>
select
<include
refid=
"baseSql"
/>
from
rights_setting_title
where
rights_setting_id = #{rightsSettingId}
and
rights_setting_now_type = #{type}
</select>
</mapper>
</mapper>
\ 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