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
82880f41
Commit
82880f41
authored
Feb 23, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段名称
parent
251202cd
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
33 deletions
+31
-33
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
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
+1
-1
SStore.java
share-system/src/main/java/share/system/domain/SStore.java
+1
-4
SCouponServiceImpl.java
...in/java/share/system/service/impl/SCouponServiceImpl.java
+4
-4
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+1
-1
TiktokServiceImpl.java
...ain/java/share/system/service/impl/TiktokServiceImpl.java
+4
-4
SConsumerCouponMapper.xml
...rc/main/resources/mapper/system/SConsumerCouponMapper.xml
+6
-5
SCouponMapper.xml
...system/src/main/resources/mapper/system/SCouponMapper.xml
+6
-6
SStoreMapper.xml
...-system/src/main/resources/mapper/system/SStoreMapper.xml
+6
-6
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
82880f41
...
@@ -119,7 +119,7 @@ public class RedisTask {
...
@@ -119,7 +119,7 @@ public class RedisTask {
expiredCoupons
.
add
(
coupon
.
getId
());
expiredCoupons
.
add
(
coupon
.
getId
());
}
}
logger
.
info
(
"券码:{}->查询结束:{}"
,
coupon
.
getCouponCode
(),
getconsumed
);
logger
.
info
(
"券码:{}->查询结束:{}"
,
coupon
.
getCouponCode
(),
getconsumed
);
}
else
if
(
StringUtils
.
isNoneEmpty
(
coupon
.
getSkuId
())
&&
coupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
MEITUAN
.
getCode
()))
{
}
else
if
(
StringUtils
.
isNoneEmpty
(
coupon
.
get
Tiktok
SkuId
())
&&
coupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
MEITUAN
.
getCode
()))
{
//抖音复验券
//抖音复验券
JSONObject
object
=
tiktokService
.
certificateGet
(
coupon
.
getCouponCode
());
JSONObject
object
=
tiktokService
.
certificateGet
(
coupon
.
getCouponCode
());
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
...
...
share-system/src/main/java/share/system/domain/SConsumerCoupon.java
View file @
82880f41
...
@@ -53,7 +53,7 @@ public class SConsumerCoupon extends BaseEntity
...
@@ -53,7 +53,7 @@ public class SConsumerCoupon extends BaseEntity
private
Long
dealgroupId
;
private
Long
dealgroupId
;
@Excel
(
name
=
"抖音商品id"
)
@Excel
(
name
=
"抖音商品id"
)
private
String
s
kuId
;
private
String
tiktokS
kuId
;
/**
/**
* 适用门店id
* 适用门店id
...
...
share-system/src/main/java/share/system/domain/SCoupon.java
View file @
82880f41
...
@@ -103,7 +103,7 @@ public class SCoupon extends BaseEntity
...
@@ -103,7 +103,7 @@ public class SCoupon extends BaseEntity
* 抖音商品id
* 抖音商品id
*/
*/
@Excel
(
name
=
"抖音商品id"
)
@Excel
(
name
=
"抖音商品id"
)
private
String
s
kuId
;
private
String
tiktokS
kuId
;
/**
/**
* 适用门店id
* 适用门店id
...
...
share-system/src/main/java/share/system/domain/SStore.java
View file @
82880f41
...
@@ -3,10 +3,7 @@ package share.system.domain;
...
@@ -3,10 +3,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
share.common.annotation.Excel
;
import
share.common.annotation.Excel
;
import
share.common.core.domain.BaseEntity
;
import
share.common.core.domain.BaseEntity
;
import
share.system.domain.vo.SRoomVo
;
import
share.system.domain.vo.SRoomVo
;
...
@@ -87,7 +84,7 @@ public class SStore extends BaseEntity
...
@@ -87,7 +84,7 @@ public class SStore extends BaseEntity
private
String
openShopUuid
;
private
String
openShopUuid
;
@Excel
(
name
=
"抖音店铺id"
)
@Excel
(
name
=
"抖音店铺id"
)
private
String
p
oiId
;
private
String
tiktokP
oiId
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
SRoomVo
>
roolList
;
private
List
<
SRoomVo
>
roolList
;
...
...
share-system/src/main/java/share/system/service/impl/SCouponServiceImpl.java
View file @
82880f41
...
@@ -115,7 +115,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
...
@@ -115,7 +115,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
sCouponList
=
sCouponMapper
.
selectByDealgroupId
(
sCoupon
.
getDealgroupId
());
sCouponList
=
sCouponMapper
.
selectByDealgroupId
(
sCoupon
.
getDealgroupId
());
}
else
if
(
sCoupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
TIKTOK
.
getCode
()))
{
}
else
if
(
sCoupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
TIKTOK
.
getCode
()))
{
LambdaQueryWrapper
<
SCoupon
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SCoupon
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
SCoupon:
:
get
SkuId
,
sCoupon
.
get
SkuId
());
wrapper
.
eq
(
SCoupon:
:
get
TiktokSkuId
,
sCoupon
.
getTiktok
SkuId
());
sCouponList
=
sCouponMapper
.
selectOne
(
wrapper
);
sCouponList
=
sCouponMapper
.
selectOne
(
wrapper
);
}
}
if
(
ObjectUtils
.
isEmpty
(
sCouponList
))
{
if
(
ObjectUtils
.
isEmpty
(
sCouponList
))
{
...
@@ -286,7 +286,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
...
@@ -286,7 +286,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
public
List
<
SCoupon
>
querySkuPoiList
()
{
public
List
<
SCoupon
>
querySkuPoiList
()
{
List
<
SStore
>
sStores
=
storeService
.
list
();
List
<
SStore
>
sStores
=
storeService
.
list
();
//过滤掉没有poiId的门店
//过滤掉没有poiId的门店
sStores
=
sStores
.
stream
().
filter
(
store
->
StringUtils
.
isNotBlank
(
store
.
getPoiId
())).
collect
(
Collectors
.
toList
());
sStores
=
sStores
.
stream
().
filter
(
store
->
StringUtils
.
isNotBlank
(
store
.
get
Tiktok
PoiId
())).
collect
(
Collectors
.
toList
());
List
<
SCoupon
>
sCouponList
=
new
ArrayList
<>();
List
<
SCoupon
>
sCouponList
=
new
ArrayList
<>();
OnlineQueryDto
onlineQueryDto
=
new
OnlineQueryDto
();
OnlineQueryDto
onlineQueryDto
=
new
OnlineQueryDto
();
onlineQueryDto
.
setAccountId
(
ACCOUNT_Id
);
onlineQueryDto
.
setAccountId
(
ACCOUNT_Id
);
...
@@ -300,7 +300,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
...
@@ -300,7 +300,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
JSONObject
product
=
jsonObject
.
getJSONObject
(
"product"
);
JSONObject
product
=
jsonObject
.
getJSONObject
(
"product"
);
JSONArray
pois
=
product
.
getJSONArray
(
"pois"
);
JSONArray
pois
=
product
.
getJSONArray
(
"pois"
);
SCoupon
sCoupon
=
new
SCoupon
();
SCoupon
sCoupon
=
new
SCoupon
();
sCoupon
.
set
SkuId
(
sku
.
getStr
(
"sku_id"
));
sCoupon
.
setTiktok
SkuId
(
sku
.
getStr
(
"sku_id"
));
sCoupon
.
setName
(
sku
.
getStr
(
"sku_name"
));
sCoupon
.
setName
(
sku
.
getStr
(
"sku_name"
));
sCoupon
.
setStartDate
(
new
Date
(
product
.
getInt
(
"sold_start_time"
)
*
1000L
));
sCoupon
.
setStartDate
(
new
Date
(
product
.
getInt
(
"sold_start_time"
)
*
1000L
));
sCoupon
.
setEndDate
(
new
Date
(
product
.
getInt
(
"sold_end_time"
)
*
1000L
));
sCoupon
.
setEndDate
(
new
Date
(
product
.
getInt
(
"sold_end_time"
)
*
1000L
));
...
@@ -318,7 +318,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
...
@@ -318,7 +318,7 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
return
;
return
;
}
}
Set
<
String
>
poiIds
=
pois
.
stream
().
map
(
poi
->
((
JSONObject
)
poi
).
getStr
(
"poi_id"
)).
collect
(
Collectors
.
toSet
());
Set
<
String
>
poiIds
=
pois
.
stream
().
map
(
poi
->
((
JSONObject
)
poi
).
getStr
(
"poi_id"
)).
collect
(
Collectors
.
toSet
());
sCoupon
.
setStoreIds
(
String
.
valueOf
(
finalSStores
.
stream
().
filter
(
store
->
poiIds
.
contains
(
store
.
getPoiId
())).
map
(
SStore:
:
getId
).
collect
(
Collectors
.
toList
())).
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
" "
,
""
).
trim
());
sCoupon
.
setStoreIds
(
String
.
valueOf
(
finalSStores
.
stream
().
filter
(
store
->
poiIds
.
contains
(
store
.
get
Tiktok
PoiId
())).
map
(
SStore:
:
getId
).
collect
(
Collectors
.
toList
())).
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
" "
,
""
).
trim
());
sCouponList
.
add
(
sCoupon
);
sCouponList
.
add
(
sCoupon
);
}
}
});
});
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
82880f41
...
@@ -392,7 +392,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -392,7 +392,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if
(
getconsumed
==
null
)
{
if
(
getconsumed
==
null
)
{
throw
new
RuntimeException
(
"优惠券异常,请稍后再试"
);
throw
new
RuntimeException
(
"优惠券异常,请稍后再试"
);
}
}
}
else
if
(
StringUtils
.
isNoneEmpty
(
byId
.
getSkuId
())
&&
byId
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
TIKTOK
.
getCode
()))
{
}
else
if
(
StringUtils
.
isNoneEmpty
(
byId
.
get
Tiktok
SkuId
())
&&
byId
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
TIKTOK
.
getCode
()))
{
//抖音复验券
//抖音复验券
JSONObject
object
=
tiktokService
.
certificateGet
(
byId
.
getCouponCode
());
JSONObject
object
=
tiktokService
.
certificateGet
(
byId
.
getCouponCode
());
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
...
...
share-system/src/main/java/share/system/service/impl/TiktokServiceImpl.java
View file @
82880f41
...
@@ -304,7 +304,7 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -304,7 +304,7 @@ public class TiktokServiceImpl implements TiktokService {
@Override
@Override
public
String
consumeByUser
(
String
code
,
String
poiId
)
{
public
String
consumeByUser
(
String
code
,
String
poiId
)
{
LambdaQueryWrapper
<
SStore
>
sStoreLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SStore
>
sStoreLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
sStoreLambdaQueryWrapper
.
eq
(
SStore:
:
getPoiId
,
poiId
);
sStoreLambdaQueryWrapper
.
eq
(
SStore:
:
get
Tiktok
PoiId
,
poiId
);
SStore
sStore
=
storeService
.
getOne
(
sStoreLambdaQueryWrapper
);
SStore
sStore
=
storeService
.
getOne
(
sStoreLambdaQueryWrapper
);
if
(
ObjectUtils
.
isEmpty
(
sStore
)
||
StoreStatusEnum
.
STOP
.
getIndex
().
equals
(
sStore
.
getStatus
()))
{
if
(
ObjectUtils
.
isEmpty
(
sStore
)
||
StoreStatusEnum
.
STOP
.
getIndex
().
equals
(
sStore
.
getStatus
()))
{
throw
new
RuntimeException
(
"门店状态异常,请联系管理员"
);
throw
new
RuntimeException
(
"门店状态异常,请联系管理员"
);
...
@@ -350,7 +350,7 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -350,7 +350,7 @@ public class TiktokServiceImpl implements TiktokService {
sConsumerCoupon
.
setEndDate
(
DateUtil
.
date
(
entries
.
getInt
(
"expire_time"
)
*
1000
));
sConsumerCoupon
.
setEndDate
(
DateUtil
.
date
(
entries
.
getInt
(
"expire_time"
)
*
1000
));
sConsumerCoupon
.
setStartDate
(
new
Date
());
sConsumerCoupon
.
setStartDate
(
new
Date
());
LambdaQueryWrapper
<
SCoupon
>
sCouponLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SCoupon
>
sCouponLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
sCouponLambdaQueryWrapper
.
eq
(
SCoupon:
:
getSkuId
,
sku
.
getStr
(
"sku_id"
));
sCouponLambdaQueryWrapper
.
eq
(
SCoupon:
:
get
Tiktok
SkuId
,
sku
.
getStr
(
"sku_id"
));
List
<
SCoupon
>
sCoupons
=
isCouponService
.
list
(
sCouponLambdaQueryWrapper
);
List
<
SCoupon
>
sCoupons
=
isCouponService
.
list
(
sCouponLambdaQueryWrapper
);
SCoupon
sCoupon
=
null
;
SCoupon
sCoupon
=
null
;
if
(!
CollectionUtils
.
isEmpty
(
sCoupons
))
{
if
(!
CollectionUtils
.
isEmpty
(
sCoupons
))
{
...
@@ -379,7 +379,7 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -379,7 +379,7 @@ public class TiktokServiceImpl implements TiktokService {
sConsumerCoupon
.
setCouponTimeStart
(
sCoupon
.
getValidStartTime
());
sConsumerCoupon
.
setCouponTimeStart
(
sCoupon
.
getValidStartTime
());
sConsumerCoupon
.
setCouponTimeEnd
(
sCoupon
.
getValidEndTime
());
sConsumerCoupon
.
setCouponTimeEnd
(
sCoupon
.
getValidEndTime
());
sConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
sConsumerCoupon
.
setOrderType
(
sCoupon
.
getOrderType
());
sConsumerCoupon
.
set
SkuId
(
sCoupon
.
get
SkuId
());
sConsumerCoupon
.
set
TiktokSkuId
(
sCoupon
.
getTiktok
SkuId
());
sConsumerCoupon
.
setStoreIds
(
sCoupon
.
getStoreIds
());
sConsumerCoupon
.
setStoreIds
(
sCoupon
.
getStoreIds
());
sConsumerCoupon
.
setPackIds
(
sCoupon
.
getPackIds
());
sConsumerCoupon
.
setPackIds
(
sCoupon
.
getPackIds
());
sConsumerCoupon
.
setWeeks
(
sCoupon
.
getWeeks
());
sConsumerCoupon
.
setWeeks
(
sCoupon
.
getWeeks
());
...
@@ -412,7 +412,7 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -412,7 +412,7 @@ public class TiktokServiceImpl implements TiktokService {
List
<
SStore
>
list
=
storeService
.
list
();
List
<
SStore
>
list
=
storeService
.
list
();
//过滤以增加的门店 根据poiId
//过滤以增加的门店 根据poiId
List
<
TiktokPoi
>
collect
=
tiktokPois
.
stream
().
filter
(
o1
->
{
List
<
TiktokPoi
>
collect
=
tiktokPois
.
stream
().
filter
(
o1
->
{
Optional
<
SStore
>
first
=
list
.
stream
().
filter
(
o2
->
o1
.
getPoiId
().
equals
(
o2
.
getPoiId
())).
findFirst
();
Optional
<
SStore
>
first
=
list
.
stream
().
filter
(
o2
->
o1
.
getPoiId
().
equals
(
o2
.
get
Tiktok
PoiId
())).
findFirst
();
if
(
first
.
isPresent
())
{
if
(
first
.
isPresent
())
{
return
false
;
return
false
;
}
}
...
...
share-system/src/main/resources/mapper/system/SConsumerCouponMapper.xml
View file @
82880f41
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<result
property=
"storeId"
column=
"store_id"
/>
<result
property=
"storeId"
column=
"store_id"
/>
<result
property=
"dealId"
column=
"deal_id"
/>
<result
property=
"dealId"
column=
"deal_id"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"
skuId"
column=
"
sku_id"
/>
<result
property=
"
tiktokSkuId"
column=
"tiktok_
sku_id"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"couponCode"
column=
"coupon_code"
/>
<result
property=
"couponCode"
column=
"coupon_code"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"name"
column=
"name"
/>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
store_id,
store_id,
deal_id,
deal_id,
dealgroup_id,
dealgroup_id,
sku_id,
tiktok_
sku_id,
store_ids,
store_ids,
coupon_code,
coupon_code,
name,
name,
...
@@ -115,6 +115,7 @@
...
@@ -115,6 +115,7 @@
<if
test=
"weeks != null and weeks != ''"
>
and weeks = #{weeks}
</if>
<if
test=
"weeks != null and weeks != ''"
>
and weeks = #{weeks}
</if>
<if
test=
"deleteBy != null and deleteBy != ''"
>
and delete_by = #{deleteBy}
</if>
<if
test=
"deleteBy != null and deleteBy != ''"
>
and delete_by = #{deleteBy}
</if>
<if
test=
"deleteTime != null "
>
and delete_time = #{deleteTime}
</if>
<if
test=
"deleteTime != null "
>
and delete_time = #{deleteTime}
</if>
<if
test=
"tiktokSkuId != null "
>
and tiktok_sku_id = #{tiktokSkuId}
</if>
ORDER BY create_time DESC
ORDER BY create_time DESC
</select>
</select>
...
@@ -177,7 +178,7 @@
...
@@ -177,7 +178,7 @@
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"packIds != null"
>
pack_ids,
</if>
<if
test=
"packIds != null"
>
pack_ids,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"
skuId != null"
>
sku_id,
</if>
<if
test=
"
tiktokSkuId != null"
>
tiktok_
sku_id,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
@@ -215,7 +216,7 @@
...
@@ -215,7 +216,7 @@
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"packIds != null"
>
#{packIds},
</if>
<if
test=
"packIds != null"
>
#{packIds},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"
skuId != null"
>
#{s
kuId},
</if>
<if
test=
"
tiktokSkuId != null"
>
#{tiktokS
kuId},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -257,7 +258,7 @@
...
@@ -257,7 +258,7 @@
<if
test=
"orderType != null"
>
order_type = #{orderType},
</if>
<if
test=
"orderType != null"
>
order_type = #{orderType},
</if>
<if
test=
"packIds != null"
>
pack_ids = #{packIds},
</if>
<if
test=
"packIds != null"
>
pack_ids = #{packIds},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id = #{dealgroupId},
</if>
<if
test=
"
skuId != null"
>
skuId = #{s
kuId}
</if>
<if
test=
"
tiktokSkuId != null"
>
tiktok_sku_id = #{tiktokS
kuId}
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
<if
test=
"storeIds != null"
>
store_ids = #{storeIds},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
...
...
share-system/src/main/resources/mapper/system/SCouponMapper.xml
View file @
82880f41
...
@@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"packIds"
column=
"pack_ids"
/>
<result
property=
"packIds"
column=
"pack_ids"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"dealgroupId"
column=
"dealgroup_id"
/>
<result
property=
"
skuId"
column=
"
sku_id"
/>
<result
property=
"
tiktokSkuId"
column=
"tiktok_tiktok_
sku_id"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"duration"
column=
"duration"
/>
<result
property=
"duration"
column=
"duration"
/>
<result
property=
"minDuration"
column=
"min_duration"
/>
<result
property=
"minDuration"
column=
"min_duration"
/>
...
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order_type,
order_type,
pack_ids,
pack_ids,
dealgroup_id,
dealgroup_id,
sku_id,
tiktok_
sku_id,
weeks,
weeks,
store_ids,
store_ids,
duration,min_duration,max_duration,
duration,min_duration,max_duration,
...
@@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderType != null"
>
and order_type = #{orderType}
</if>
<if
test=
"orderType != null"
>
and order_type = #{orderType}
</if>
<if
test=
"packIds != null"
>
and pack_ids = #{packIds}
</if>
<if
test=
"packIds != null"
>
and pack_ids = #{packIds}
</if>
<if
test=
"dealgroupId != null"
>
and dealgroup_id = #{dealgroupId}
</if>
<if
test=
"dealgroupId != null"
>
and dealgroup_id = #{dealgroupId}
</if>
<if
test=
"
skuId != null"
>
and sku_id =#{s
kuId}
</if>
<if
test=
"
tiktokSkuId != null"
>
and tiktok_sku_id =#{tiktokS
kuId}
</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>
<if
test=
"minDuration != null and minDuration != ''"
>
and min_duration = #{minDuration}
</if>
<if
test=
"minDuration != null and minDuration != ''"
>
and min_duration = #{minDuration}
</if>
...
@@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"packIds != null"
>
pack_ids,
</if>
<if
test=
"packIds != null"
>
pack_ids,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"dealgroupId != null"
>
dealgroup_id,
</if>
<if
test=
"
skuId != null"
>
sku_id,
</if>
<if
test=
"
tiktokSkuId != null"
>
tiktok_
sku_id,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
@@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"packIds != null"
>
#{packIds},
</if>
<if
test=
"packIds != null"
>
#{packIds},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"dealgroupId != null"
>
#{dealgroupId},
</if>
<if
test=
"
skuId != null"
>
#{s
kuId},
</if>
<if
test=
"
tiktokSkuId != null"
>
#{tiktokS
kuId},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -190,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -190,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"packIds != null"
>
pack_ids = #{packIds},
</if>
<if
test=
"packIds != null"
>
pack_ids = #{packIds},
</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=
"
skuId != null"
>
sku_id = #{s
kuId},
</if>
<if
test=
"
tiktokSkuId != null"
>
tiktok_sku_id = #{tiktokS
kuId},
</if>
<if
test=
"duration != null and duration != ''"
>
duration = #{duration},
</if>
<if
test=
"duration != null and duration != ''"
>
duration = #{duration},
</if>
<if
test=
"minDuration != null and minDuration != ''"
>
min_duration = #{minDuration},
</if>
<if
test=
"minDuration != null and minDuration != ''"
>
min_duration = #{minDuration},
</if>
<if
test=
"maxDuration != null and maxDuration != ''"
>
max_duration = #{maxDuration},
</if>
<if
test=
"maxDuration != null and maxDuration != ''"
>
max_duration = #{maxDuration},
</if>
...
...
share-system/src/main/resources/mapper/system/SStoreMapper.xml
View file @
82880f41
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"info"
column=
"info"
/>
<result
property=
"info"
column=
"info"
/>
<result
property=
"openShopUuid"
column=
"open_shop_uuid"
/>
<result
property=
"openShopUuid"
column=
"open_shop_uuid"
/>
<result
property=
"
poiId"
column=
"
poi_id"
/>
<result
property=
"
tiktokPoiId"
column=
"tiktok_
poi_id"
/>
<result
property=
"deviceGroup"
column=
"device_group"
/>
<result
property=
"deviceGroup"
column=
"device_group"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
phone,
phone,
info,
info,
open_shop_uuid,
open_shop_uuid,
poi_id,
tiktok_
poi_id,
device_group,
device_group,
create_by,
create_by,
create_time,
create_time,
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<if
test=
"phone != null and phone != ''"
>
and phone like concat('%', #{phone}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and phone like concat('%', #{phone}, '%')
</if>
<if
test=
"info != null and info != ''"
>
and info = #{info}
</if>
<if
test=
"info != null and info != ''"
>
and info = #{info}
</if>
<if
test=
"openShopUuid != null and openShopUuid != ''"
>
and open_shop_uuid = #{openShopUuid}
</if>
<if
test=
"openShopUuid != null and openShopUuid != ''"
>
and open_shop_uuid = #{openShopUuid}
</if>
<if
test=
"
poiId != null and poiId !=''"
>
and poi_id = #{p
oiId}
</if>
<if
test=
"
tiktokPoiId != null and tiktokPoiId !=''"
>
and tiktok_poi_id = #{tiktokP
oiId}
</if>
<if
test=
"deviceGroup != null and deviceGroup != ''"
>
and device_group = #{deviceGroup}
</if>
<if
test=
"deviceGroup != null and deviceGroup != ''"
>
and device_group = #{deviceGroup}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"openStartTime != null "
>
and open_start_time = #{openStartTime}
</if>
<if
test=
"openStartTime != null "
>
and open_start_time = #{openStartTime}
</if>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"info != null"
>
info,
</if>
<if
test=
"info != null"
>
info,
</if>
<if
test=
"openShopUuid != null"
>
open_shop_uuid,
</if>
<if
test=
"openShopUuid != null"
>
open_shop_uuid,
</if>
<if
test=
"
poiId != null"
>
poi_id,
</if>
<if
test=
"
tiktokPoiId != null"
>
tiktok_
poi_id,
</if>
<if
test=
"deviceGroup != null"
>
device_group,
</if>
<if
test=
"deviceGroup != null"
>
device_group,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"info != null"
>
#{info},
</if>
<if
test=
"info != null"
>
#{info},
</if>
<if
test=
"openShopUuid != null"
>
#{openShopUuid},
</if>
<if
test=
"openShopUuid != null"
>
#{openShopUuid},
</if>
<if
test=
"
poiId != null"
>
#{p
oiId},
</if>
<if
test=
"
tiktokPoiId != null"
>
#{tiktokP
oiId},
</if>
<if
test=
"deviceGroup != null"
>
#{deviceGroup},
</if>
<if
test=
"deviceGroup != null"
>
#{deviceGroup},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"info != null"
>
info = #{info},
</if>
<if
test=
"info != null"
>
info = #{info},
</if>
<if
test=
"openShopUuid != null"
>
open_shop_uuid = #{openShopUuid},
</if>
<if
test=
"openShopUuid != null"
>
open_shop_uuid = #{openShopUuid},
</if>
<if
test=
"
poiId != null"
>
poi_id = #{p
oiId},
</if>
<if
test=
"
tiktokPoiId != null"
>
tiktok_poi_id = #{tiktokP
oiId},
</if>
<if
test=
"deviceGroup != null"
>
device_group = #{deviceGroup},
</if>
<if
test=
"deviceGroup != null"
>
device_group = #{deviceGroup},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</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