Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
b533c833
Commit
b533c833
authored
Jan 16, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段
parent
1692b1e9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
22 deletions
+22
-22
SConsumerCoupon.java
...em/src/main/java/share/system/domain/SConsumerCoupon.java
+1
-1
SCoupon.java
share-system/src/main/java/share/system/domain/SCoupon.java
+2
-2
QPServiceImpl.java
...rc/main/java/share/system/service/impl/QPServiceImpl.java
+1
-1
SConsumerCouponServiceImpl.java
...share/system/service/impl/SConsumerCouponServiceImpl.java
+6
-6
SConsumerCouponMapper.xml
...rc/main/resources/mapper/system/SConsumerCouponMapper.xml
+6
-6
SCouponMapper.xml
...system/src/main/resources/mapper/system/SCouponMapper.xml
+6
-6
No files found.
share-system/src/main/java/share/system/domain/SConsumerCoupon.java
View file @
b533c833
...
@@ -124,7 +124,7 @@ public class SConsumerCoupon extends BaseEntity
...
@@ -124,7 +124,7 @@ public class SConsumerCoupon extends BaseEntity
* 绑定套餐ID
* 绑定套餐ID
*/
*/
@Excel
(
name
=
"适用套餐列表"
)
@Excel
(
name
=
"适用套餐列表"
)
private
String
pack
i
ds
;
private
String
pack
I
ds
;
/** 平台类型(1:自营,2:美团) */
/** 平台类型(1:自营,2:美团) */
@Excel
(
name
=
"平台类型(1:自营,2:美团)"
)
@Excel
(
name
=
"平台类型(1:自营,2:美团)"
)
...
...
share-system/src/main/java/share/system/domain/SCoupon.java
View file @
b533c833
...
@@ -90,10 +90,10 @@ public class SCoupon extends BaseEntity
...
@@ -90,10 +90,10 @@ public class SCoupon extends BaseEntity
private
Integer
orderType
;
private
Integer
orderType
;
/**
/**
*
绑定套餐ID
*
适用套餐列表
*/
*/
@Excel
(
name
=
"适用套餐列表"
)
@Excel
(
name
=
"适用套餐列表"
)
private
String
pack
i
ds
;
private
String
pack
I
ds
;
/**
/**
* 团购ID
* 团购ID
...
...
share-system/src/main/java/share/system/service/impl/QPServiceImpl.java
View file @
b533c833
...
@@ -181,7 +181,7 @@ public class QPServiceImpl implements QPService {
...
@@ -181,7 +181,7 @@ public class QPServiceImpl implements QPService {
sConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
sConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
sConsumerCoupon
.
setDealgroupId
(
sCoupon
.
getDealgroupId
());
sConsumerCoupon
.
setDealgroupId
(
sCoupon
.
getDealgroupId
());
sConsumerCoupon
.
setStoreIds
(
sCoupon
.
getStoreIds
());
sConsumerCoupon
.
setStoreIds
(
sCoupon
.
getStoreIds
());
sConsumerCoupon
.
setPack
ageId
(
sCoupon
.
getPackageId
());
sConsumerCoupon
.
setPack
Ids
(
sCoupon
.
getPackIds
());
sConsumerCoupon
.
setWeeks
(
sCoupon
.
getWeeks
());
sConsumerCoupon
.
setWeeks
(
sCoupon
.
getWeeks
());
sConsumerCoupon
.
setRemark
(
sCoupon
.
getRemark
());
sConsumerCoupon
.
setRemark
(
sCoupon
.
getRemark
());
}
}
...
...
share-system/src/main/java/share/system/service/impl/SConsumerCouponServiceImpl.java
View file @
b533c833
...
@@ -257,11 +257,11 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
...
@@ -257,11 +257,11 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
}
}
private
Boolean
checkPack
(
SConsumerCoupon
item
,
CouponRequest
couponRequest
,
List
<
SPack
>
sPacks
){
private
Boolean
checkPack
(
SConsumerCoupon
item
,
CouponRequest
couponRequest
,
List
<
SPack
>
sPacks
){
if
(
Objects
.
nonNull
(
item
.
getPackageId
())&&
item
.
getPackageId
().
compareTo
(
couponRequest
.
getPackageId
())!=
0
){
//
if(Objects.nonNull(item.getPackageId())&&item.getPackageId().compareTo(couponRequest.getPackageId())!=0){
SPack
pack
=
sPacks
.
stream
().
filter
(
obj
->
obj
.
getId
().
compareTo
(
item
.
getPackageId
())==
0
).
findFirst
().
orElse
(
null
);
//
SPack pack = sPacks.stream().filter(obj -> obj.getId().compareTo(item.getPackageId())==0).findFirst().orElse(null);
item
.
setIsAvailable
(
AvailableEnum
.
UNAVAILABLE
.
getCode
());
//
item.setIsAvailable(AvailableEnum.UNAVAILABLE.getCode());
item
.
setReason
(
"优惠卷当前套餐不可用,【"
+
pack
.
getName
()+
"】套餐可用"
);
//
item.setReason("优惠卷当前套餐不可用,【"+pack.getName()+"】套餐可用");
}
//
}
return
item
.
getIsAvailable
()==
0
;
return
item
.
getIsAvailable
()==
0
;
}
}
...
@@ -392,7 +392,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
...
@@ -392,7 +392,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
newSConsumerCoupon
.
setMaxDuration
(
sCoupon
.
getMaxDuration
());
newSConsumerCoupon
.
setMaxDuration
(
sCoupon
.
getMaxDuration
());
newSConsumerCoupon
.
setDuration
(
sCoupon
.
getDuration
());
newSConsumerCoupon
.
setDuration
(
sCoupon
.
getDuration
());
newSConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
newSConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
newSConsumerCoupon
.
setPack
ageId
(
sCoupon
.
getPackageId
());
newSConsumerCoupon
.
setPack
Ids
(
sCoupon
.
getPackIds
());
newSConsumerCoupon
.
setSourceType
(
SourceTypeEnum
.
GIVE
.
getCode
());
newSConsumerCoupon
.
setSourceType
(
SourceTypeEnum
.
GIVE
.
getCode
());
newSConsumerCoupon
.
setPlatformType
(
String
.
valueOf
(
sCoupon
.
getPlatformType
()));
newSConsumerCoupon
.
setPlatformType
(
String
.
valueOf
(
sCoupon
.
getPlatformType
()));
newSConsumerCoupon
.
setStartDate
(
sCoupon
.
getStartDate
());
newSConsumerCoupon
.
setStartDate
(
sCoupon
.
getStartDate
());
...
...
share-system/src/main/resources/mapper/system/SConsumerCouponMapper.xml
View file @
b533c833
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"storeType"
column=
"store_type"
/>
<result
property=
"storeType"
column=
"store_type"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"pack
ids"
column=
"pack
ids"
/>
<result
property=
"pack
Ids"
column=
"pack_
ids"
/>
<result
property=
"platformType"
column=
"platform_type"
/>
<result
property=
"platformType"
column=
"platform_type"
/>
<result
property=
"startDate"
column=
"start_date"
/>
<result
property=
"startDate"
column=
"start_date"
/>
<result
property=
"endDate"
column=
"end_date"
/>
<result
property=
"endDate"
column=
"end_date"
/>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
room_type,
room_type,
store_type,
store_type,
order_type,
order_type,
packids
pack
_
ids
from s_consumer_coupon
from s_consumer_coupon
</sql>
</sql>
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<if
test=
"sourceType != null and sourceType != ''"
>
and source_type = #{sourceType}
</if>
<if
test=
"sourceType != null and sourceType != ''"
>
and source_type = #{sourceType}
</if>
<if
test=
"platformType != null and platformType != ''"
>
and platform_type = #{platformType}
</if>
<if
test=
"platformType != null and platformType != ''"
>
and platform_type = #{platformType}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"pack
ids != null "
>
and packids = #{packi
ds}
</if>
<if
test=
"pack
Ids != null "
>
and pack_ids = #{packI
ds}
</if>
<if
test=
"startDate != null "
>
and start_date = #{startDate}
</if>
<if
test=
"startDate != null "
>
and start_date = #{startDate}
</if>
<if
test=
"endDate != null "
>
and end_date = #{endDate}
</if>
<if
test=
"endDate != null "
>
and end_date = #{endDate}
</if>
<if
test=
"useDate != null "
>
and use_date = #{useDate}
</if>
<if
test=
"useDate != null "
>
and use_date = #{useDate}
</if>
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<if
test=
"roomType != null"
>
room_type,
</if>
<if
test=
"roomType != null"
>
room_type,
</if>
<if
test=
"storeType != null"
>
store_type,
</if>
<if
test=
"storeType != null"
>
store_type,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"pack
ids != null"
>
pack
ids,
</if>
<if
test=
"pack
Ids != null"
>
pack_
ids,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
</trim>
</trim>
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
<if
test=
"roomType != null"
>
#{roomType},
</if>
<if
test=
"roomType != null"
>
#{roomType},
</if>
<if
test=
"storeType != null"
>
#{storeType},
</if>
<if
test=
"storeType != null"
>
#{storeType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"pack
ids != null"
>
#{packi
ds},
</if>
<if
test=
"pack
Ids != null"
>
#{packI
ds},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
</trim>
</trim>
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
<if
test=
"roomType != null"
>
room_type = #{roomType},
</if>
<if
test=
"roomType != null"
>
room_type = #{roomType},
</if>
<if
test=
"storeType != null"
>
store_type = #{storeType},
</if>
<if
test=
"storeType != null"
>
store_type = #{storeType},
</if>
<if
test=
"orderType != null"
>
order_type = #{orderType},
</if>
<if
test=
"orderType != null"
>
order_type = #{orderType},
</if>
<if
test=
"pack
ids != null"
>
packids = #{packi
ds},
</if>
<if
test=
"pack
Ids != null"
>
pack_ids = #{packI
ds},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
</trim>
</trim>
...
...
share-system/src/main/resources/mapper/system/SCouponMapper.xml
View file @
b533c833
...
@@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"couponType"
column=
"coupon_type"
/>
<result
property=
"couponType"
column=
"coupon_type"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"pack
ids"
column=
"pack
ids"
/>
<result
property=
"pack
Ids"
column=
"pack_
ids"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"duration"
column=
"duration"
/>
<result
property=
"duration"
column=
"duration"
/>
...
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
room_type,
room_type,
coupon_type,
coupon_type,
order_type,
order_type,
packids,
pack
_
ids,
dealgroup_id,
dealgroup_id,
weeks,
weeks,
store_ids,
store_ids,
...
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"roomType != null"
>
and room_type = #{roomType}
</if>
<if
test=
"roomType != null"
>
and room_type = #{roomType}
</if>
<if
test=
"couponType != null"
>
and coupon_type = #{couponType}
</if>
<if
test=
"couponType != null"
>
and coupon_type = #{couponType}
</if>
<if
test=
"orderType != null"
>
and order_type = #{orderType}
</if>
<if
test=
"orderType != null"
>
and order_type = #{orderType}
</if>
<if
test=
"pack
ids != null"
>
and packids = #{packi
ds}
</if>
<if
test=
"pack
Ids != null"
>
and pack_ids = #{packI
ds}
</if>
<if
test=
"dealgroupId != null"
>
and dealgroup_id = #{dealgroupId}
</if>
<if
test=
"dealgroupId != null"
>
and dealgroup_id = #{dealgroupId}
</if>
<if
test=
"storeIds != null"
>
and store_ids = #{storeIds}
</if>
<if
test=
"storeIds != null"
>
and store_ids = #{storeIds}
</if>
<if
test=
"duration != null and duration != ''"
>
and duration = #{duration}
</if>
<if
test=
"duration != null and duration != ''"
>
and duration = #{duration}
</if>
...
@@ -138,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -138,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"pack
ids != null"
>
pack
ids,
</if>
<if
test=
"pack
Ids != null"
>
pack_
ids,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
</trim>
</trim>
...
@@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"pack
ids != null"
>
#{packi
ds},
</if>
<if
test=
"pack
Ids != null"
>
#{packI
ds},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
</trim>
</trim>
...
@@ -182,7 +182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -182,7 +182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"roomType != null"
>
room_type = #{roomType},
</if>
<if
test=
"roomType != null"
>
room_type = #{roomType},
</if>
<if
test=
"couponType != null"
>
coupon_type = #{couponType},
</if>
<if
test=
"couponType != null"
>
coupon_type = #{couponType},
</if>
<if
test=
"orderType != ''"
>
order_type = #{orderType},
</if>
<if
test=
"orderType != ''"
>
order_type = #{orderType},
</if>
<if
test=
"pack
ids != ''"
>
packids = #{packi
ds},
</if>
<if
test=
"pack
Ids != ''"
>
pack_ids = #{packI
ds},
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"duration != null and duration != ''"
>
duration = #{duration},
</if>
<if
test=
"duration != null and duration != ''"
>
duration = #{duration},
</if>
...
...
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