Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
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
quanku
qk_backend
Commits
e290676d
Commit
e290676d
authored
Oct 30, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人开店
parent
cfdb88f0
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
9217 additions
and
57 deletions
+9217
-57
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
...a/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
+1
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
...ore/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
+17
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/OpenShopApplyOrderEnum.java
.../java/com/wwdz/ch/core/consts/OpenShopApplyOrderEnum.java
+75
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/DeliveryNoticeMsg.java
.../main/java/com/wwdz/ch/core/entity/DeliveryNoticeMsg.java
+10
-4
ch-core/src/main/java/com/wwdz/ch/core/entity/ExchangeNoticeMsg.java
.../main/java/com/wwdz/ch/core/entity/ExchangeNoticeMsg.java
+5
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/SignedNoticeMsg.java
...rc/main/java/com/wwdz/ch/core/entity/SignedNoticeMsg.java
+15
-4
ch-core/src/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
...c/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
+78
-19
ch-core/src/main/java/com/wwdz/ch/core/service/SendMsgService.java
...rc/main/java/com/wwdz/ch/core/service/SendMsgService.java
+21
-1
ch-dao/src/main/java/com/wwdz/ch/db/dao/CollectorWhiteListDao.java
...c/main/java/com/wwdz/ch/db/dao/CollectorWhiteListDao.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/GuaranteeMoneyRecordDao.java
.../com/wwdz/ch/db/dao/openShop/GuaranteeMoneyRecordDao.java
+19
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/OpenShopApplyOrderDao.java
...va/com/wwdz/ch/db/dao/openShop/OpenShopApplyOrderDao.java
+17
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/OpenShopCostRecordDao.java
...va/com/wwdz/ch/db/dao/openShop/OpenShopCostRecordDao.java
+20
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
...c/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
+32
-3
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
...java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
+416
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/GuaranteeMoneyRecord.java
.../com/wwdz/ch/db/domain/openShop/GuaranteeMoneyRecord.java
+320
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/GuaranteeMoneyRecordExample.java
...dz/ch/db/domain/openShop/GuaranteeMoneyRecordExample.java
+1795
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopApplyOrder.java
...va/com/wwdz/ch/db/domain/openShop/OpenShopApplyOrder.java
+302
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopApplyOrderExample.java
...wwdz/ch/db/domain/openShop/OpenShopApplyOrderExample.java
+1511
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopCostRecord.java
...va/com/wwdz/ch/db/domain/openShop/OpenShopCostRecord.java
+338
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopCostRecordExample.java
...wwdz/ch/db/domain/openShop/OpenShopCostRecordExample.java
+2059
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/UserBankCardRequestDto.java
...h/db/dto/request/distribution/UserBankCardRequestDto.java
+6
-1
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/GuaranteeMoneyRecordRequestDto.java
.../dto/request/openShop/GuaranteeMoneyRecordRequestDto.java
+43
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/OpenShopApplyOrderRequestDto.java
...db/dto/request/openShop/OpenShopApplyOrderRequestDto.java
+56
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/OpenShopInfoRequestDto.java
...dz/ch/db/dto/request/openShop/OpenShopInfoRequestDto.java
+40
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/CollectorWhiteListDaoImpl.java
...n/java/com/wwdz/ch/db/impl/CollectorWhiteListDaoImpl.java
+7
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/GuaranteeMoneyRecordDaoImpl.java
...wwdz/ch/db/impl/openShop/GuaranteeMoneyRecordDaoImpl.java
+49
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/OpenShopApplyOrderDaoImpl.java
...m/wwdz/ch/db/impl/openShop/OpenShopApplyOrderDaoImpl.java
+48
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/OpenShopCostRecordDaoImpl.java
...m/wwdz/ch/db/impl/openShop/OpenShopCostRecordDaoImpl.java
+54
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.java
...wdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.java
+68
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.java
.../wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.java
+69
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.java
.../wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.java
+68
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
...ources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
+61
-14
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.xml
...wwdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.xml
+404
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.xml
...m/wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.xml
+372
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.xml
...m/wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.xml
+436
-0
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
...main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+2
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
...h/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
+17
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/IdentifyOrderServiceImpl.java
...wdz/ch/wx/impl/distribution/IdentifyOrderServiceImpl.java
+2
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/OpenShopServiceImpl.java
...ava/com/wwdz/ch/wx/impl/openShop/OpenShopServiceImpl.java
+213
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/openShop/OpenShopService.java
...java/com/wwdz/ch/wx/service/openShop/OpenShopService.java
+39
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/openShop/OpenShopController.java
.../java/com/wwdz/ch/wx/web/openShop/OpenShopController.java
+101
-0
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/WxPayServiceTest.java
...pi/src/test/java/com/wwdz/ch/wx/api/WxPayServiceTest.java
+3
-3
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
View file @
e290676d
...
@@ -255,6 +255,7 @@ public class SysIdentifyOrderServiceImpl implements SysIdentifyOrderService {
...
@@ -255,6 +255,7 @@ public class SysIdentifyOrderServiceImpl implements SysIdentifyOrderService {
deliveryNoticeMsg
.
setAddress
(
distributionOrder
.
getReceiverName
()
+
" "
+
distributionOrder
.
getReceiverPhone
()
+
" "
+
distributionOrder
.
getReceiverAddress
());
deliveryNoticeMsg
.
setAddress
(
distributionOrder
.
getReceiverName
()
+
" "
+
distributionOrder
.
getReceiverPhone
()
+
" "
+
distributionOrder
.
getReceiverAddress
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
deliveryNoticeMsg
.
setLogisticsName
(
LogisticsEnum
.
getNameByCode
(
dto
.
getOutLogisticsCode
()));
deliveryNoticeMsg
.
setDeliveryTime
(
now
);
deliveryNoticeMsg
.
setDeliveryTime
(
now
);
//发送给买家
//发送给买家
...
...
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
View file @
e290676d
...
@@ -128,6 +128,23 @@ public interface CommConsts {
...
@@ -128,6 +128,23 @@ public interface CommConsts {
*/
*/
public
final
static
String
EXCHANGE_ORDER_PREFIX
=
"EX"
;
public
final
static
String
EXCHANGE_ORDER_PREFIX
=
"EX"
;
/**
* 申请开店订单号
*/
public
final
static
String
OPEN_SHOP_APPLY_ORDER_PREFIX
=
"OSA"
;
/**
* 开店支付订单号
*/
public
final
static
String
OPEN_SHOP_COST_ORDER_PREFIX
=
"OSC"
;
/**
* 开店质保金订单号
*/
public
final
static
String
GUARANTEE_MONEY_ORDER_PREFIX
=
"GM"
;
/**
/**
* 平台收货地址
* 平台收货地址
*/
*/
...
...
ch-core/src/main/java/com/wwdz/ch/core/consts/OpenShopApplyOrderEnum.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.core.consts
;
public
class
OpenShopApplyOrderEnum
{
/**
* 申请开店订单状态
*/
public
enum
StateEnum
{
PRE_PAY
(
0
,
"待付款"
),
PRE_AUDIT
(
10
,
"待审核"
),
PASSED
(
20
,
"审核通过"
),
NOT_PASSED
(
30
,
"审核不通过"
),
;
private
int
code
;
private
String
des
;
StateEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
OpenShopApplyOrderEnum
.
StateEnum
stateEnum
:
OpenShopApplyOrderEnum
.
StateEnum
.
values
())
{
if
(
code
==
stateEnum
.
getCode
())
{
return
stateEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
/**
* 支付费用类型
*/
public
enum
CostTypeEnum
{
OPEN_SHOP_AMOUNT
(
1
,
"开店费"
),
GUARANTEE_MONEY
(
2
,
"质保金"
),
;
private
int
code
;
private
String
des
;
CostTypeEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
OpenShopApplyOrderEnum
.
CostTypeEnum
costTypeEnum
:
OpenShopApplyOrderEnum
.
CostTypeEnum
.
values
())
{
if
(
code
==
costTypeEnum
.
getCode
())
{
return
costTypeEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
}
ch-core/src/main/java/com/wwdz/ch/core/entity/DeliveryNoticeMsg.java
View file @
e290676d
...
@@ -31,6 +31,11 @@ public class DeliveryNoticeMsg implements Entity, AbstractSubscribeMsg {
...
@@ -31,6 +31,11 @@ public class DeliveryNoticeMsg implements Entity, AbstractSubscribeMsg {
*/
*/
private
String
waybill
;
private
String
waybill
;
/**
* 快递公司
*/
private
String
logisticsName
;
/**
/**
* 收货地址
* 收货地址
*/
*/
...
@@ -50,15 +55,16 @@ public class DeliveryNoticeMsg implements Entity, AbstractSubscribeMsg {
...
@@ -50,15 +55,16 @@ public class DeliveryNoticeMsg implements Entity, AbstractSubscribeMsg {
@Override
@Override
public
Map
<
String
,
Object
>
getTempletParam
()
{
public
Map
<
String
,
Object
>
getTempletParam
()
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"character_string
3
"
,
new
HashMap
(){{
put
(
"value"
,
distributionOrderId
);}});
map
.
put
(
"character_string
1
"
,
new
HashMap
(){{
put
(
"value"
,
distributionOrderId
);}});
if
(
itemName
.
length
()
>
20
)
{
if
(
itemName
.
length
()
>
20
)
{
itemName
=
itemName
.
substring
(
0
,
20
);
itemName
=
itemName
.
substring
(
0
,
20
);
}
}
map
.
put
(
"thing14"
,
new
HashMap
(){{
put
(
"value"
,
itemName
);}});
map
.
put
(
"thing12"
,
new
HashMap
(){{
put
(
"value"
,
itemName
);}});
map
.
put
(
"character_string8"
,
new
HashMap
(){{
put
(
"value"
,
waybill
);}});
map
.
put
(
"thing11"
,
new
HashMap
(){{
put
(
"value"
,
logisticsName
);}});
map
.
put
(
"character_string2"
,
new
HashMap
(){{
put
(
"value"
,
waybill
);}});
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy年MM月dd日 HH:mm:ss"
,
Locale
.
CHINESE
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy年MM月dd日 HH:mm:ss"
,
Locale
.
CHINESE
);
String
formattedDate
=
sdf
.
format
(
deliveryTime
);
String
formattedDate
=
sdf
.
format
(
deliveryTime
);
map
.
put
(
"time
10
"
,
new
HashMap
(){{
put
(
"value"
,
formattedDate
);}});
map
.
put
(
"time
7
"
,
new
HashMap
(){{
put
(
"value"
,
formattedDate
);}});
return
map
;
return
map
;
}
}
...
...
ch-core/src/main/java/com/wwdz/ch/core/entity/ExchangeNoticeMsg.java
View file @
e290676d
...
@@ -17,4 +17,9 @@ public class ExchangeNoticeMsg implements Entity {
...
@@ -17,4 +17,9 @@ public class ExchangeNoticeMsg implements Entity {
private
Long
userId
;
private
Long
userId
;
private
String
officialEstimatedPrice
;
private
String
officialEstimatedPrice
;
/**
* 申请人
*/
private
String
applicant
;
}
}
ch-core/src/main/java/com/wwdz/ch/core/entity/SignedNoticeMsg.java
View file @
e290676d
...
@@ -46,19 +46,30 @@ public class SignedNoticeMsg implements Entity, AbstractSubscribeMsg {
...
@@ -46,19 +46,30 @@ public class SignedNoticeMsg implements Entity, AbstractSubscribeMsg {
*/
*/
private
Integer
shopState
;
private
Integer
shopState
;
/**
* 发货运单号
*/
private
String
waybill
;
/**
* 买家名称
*/
private
String
buyerName
;
@Override
@Override
public
Map
<
String
,
Object
>
getTempletParam
()
{
public
Map
<
String
,
Object
>
getTempletParam
()
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"character_string5"
,
new
HashMap
(){{
put
(
"value"
,
distributionOrderId
);}});
map
.
put
(
"character_string6"
,
new
HashMap
(){{
put
(
"value"
,
distributionOrderId
);}});
map
.
put
(
"character_string1"
,
new
HashMap
(){{
put
(
"value"
,
waybill
);}});
if
(
itemName
.
length
()
>
20
)
{
if
(
itemName
.
length
()
>
20
)
{
itemName
=
itemName
.
substring
(
0
,
20
);
itemName
=
itemName
.
substring
(
0
,
20
);
}
}
map
.
put
(
"thing
1
"
,
new
HashMap
(){{
put
(
"value"
,
itemName
);}});
map
.
put
(
"thing
2
"
,
new
HashMap
(){{
put
(
"value"
,
itemName
);}});
map
.
put
(
"amount
2
"
,
new
HashMap
(){{
put
(
"value"
,
amount
);}});
map
.
put
(
"amount
7
"
,
new
HashMap
(){{
put
(
"value"
,
amount
);}});
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy年MM月dd日 HH:mm:ss"
,
Locale
.
CHINESE
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy年MM月dd日 HH:mm:ss"
,
Locale
.
CHINESE
);
String
formattedDate
=
sdf
.
format
(
signedTime
);
String
formattedDate
=
sdf
.
format
(
signedTime
);
map
.
put
(
"time
4
"
,
new
HashMap
(){{
put
(
"value"
,
formattedDate
);}});
map
.
put
(
"time
5
"
,
new
HashMap
(){{
put
(
"value"
,
formattedDate
);}});
return
map
;
return
map
;
}
}
...
...
ch-core/src/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
View file @
e290676d
...
@@ -117,18 +117,18 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -117,18 +117,18 @@ public class SendMsgServiceImpl implements SendMsgService {
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
map
.
put
(
"miniprogram"
,
miniprogramMap
);
map
.
put
(
"miniprogram"
,
miniprogramMap
);
map
.
put
(
"data"
,
deliveryNoticeMsg
.
getTempletParam
());
map
.
put
(
"data"
,
deliveryNoticeMsg
.
getTempletParam
());
logger
.
info
(
"============
分销
订单发货通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
logger
.
info
(
"============ 订单发货通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
post
(
true
);
okHttpUtil
.
post
(
true
);
String
responseStr
=
okHttpUtil
.
async
();
String
responseStr
=
okHttpUtil
.
async
();
logger
.
info
(
"openid : {}, 发送
分销
订单发货通知模板消息 response :{}"
,
openId
,
responseStr
);
logger
.
info
(
"openid : {}, 发送订单发货通知模板消息 response :{}"
,
openId
,
responseStr
);
String
errorCode
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errcode"
);
String
errorCode
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errcode"
);
String
errmsg
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errmsg"
);
String
errmsg
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errmsg"
);
if
(!
"0"
.
equals
(
errorCode
))
{
if
(!
"0"
.
equals
(
errorCode
))
{
logger
.
error
(
"openid : {}, 发送
分销
订单发货通知模板消息, errorCode : {}, errmsg : {} "
,
openId
,
errorCode
,
errmsg
);
logger
.
error
(
"openid : {}, 发送订单发货通知模板消息, errorCode : {}, errmsg : {} "
,
openId
,
errorCode
,
errmsg
);
return
Result
.
failed
();
return
Result
.
failed
();
}
}
logger
.
info
(
"============= 发送
分销
订单发货通知模板消息成功 ==========="
);
logger
.
info
(
"============= 发送订单发货通知模板消息成功 ==========="
);
return
Result
.
success
();
return
Result
.
success
();
}
}
...
@@ -139,7 +139,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -139,7 +139,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
SIGNED_TEMPLETID
);
map
.
put
(
"template_id"
,
"7nHHpQCm_13VGEW3ioEuvsLAi4Q2_Dj-hvvjgKyIgsY"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
DISTRIBUTION_MSG_URL
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
DISTRIBUTION_MSG_URL
);
...
@@ -223,7 +223,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -223,7 +223,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
"
Yy_58dviNzK1sDOilw6FnolJysIceRjm6qkhCN0RgcQ
"
);
map
.
put
(
"template_id"
,
"
O7HLv68TyWFj3apnRL2herCc1ZRfoOtrvo9ypHa4VT4
"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
AUCTION_MSG_URL
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
AUCTION_MSG_URL
);
...
@@ -235,7 +235,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -235,7 +235,7 @@ public class SendMsgServiceImpl implements SendMsgService {
map
.
put
(
"miniprogram"
,
miniprogramMap
);
map
.
put
(
"miniprogram"
,
miniprogramMap
);
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
paramMap
.
put
(
"thing
4
"
,
new
HashMap
()
{{
paramMap
.
put
(
"thing
11
"
,
new
HashMap
()
{{
if
(
auctionOfferNoticeMsg
.
getItemName
().
length
()
>
20
)
{
if
(
auctionOfferNoticeMsg
.
getItemName
().
length
()
>
20
)
{
put
(
"value"
,
auctionOfferNoticeMsg
.
getItemName
().
substring
(
0
,
20
));
put
(
"value"
,
auctionOfferNoticeMsg
.
getItemName
().
substring
(
0
,
20
));
}
else
{
}
else
{
...
@@ -245,12 +245,15 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -245,12 +245,15 @@ public class SendMsgServiceImpl implements SendMsgService {
paramMap
.
put
(
"amount6"
,
new
HashMap
()
{{
paramMap
.
put
(
"amount6"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
}});
paramMap
.
put
(
"character_string
5
"
,
new
HashMap
()
{{
paramMap
.
put
(
"character_string
2
"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getDistributionOrderId
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getDistributionOrderId
());
}});
}});
paramMap
.
put
(
"t
ime
3"
,
new
HashMap
()
{{
paramMap
.
put
(
"t
hing
3"
,
new
HashMap
()
{{
put
(
"value"
,
DateUtils
.
toString
(
auctionOfferNoticeMsg
.
getPayEndTime
())
);
put
(
"value"
,
"您参与的拍卖商品已中拍"
);
}});
}});
/* paramMap.put("time3", new HashMap() {{
put("value", DateUtils.toString(auctionOfferNoticeMsg.getPayEndTime()));
}});*/
map
.
put
(
"data"
,
paramMap
);
map
.
put
(
"data"
,
paramMap
);
logger
.
info
(
"============ 竞拍成功通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
logger
.
info
(
"============ 竞拍成功通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
addParams
(
map
);
...
@@ -280,7 +283,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -280,7 +283,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
"
WJkhzyY0_7AYqh19_ujK93ISwKU1oniEgKKakYOdhfs
"
);
map
.
put
(
"template_id"
,
"
Nt1T1jmcx8P8cdihqX9gfYKFctjH9TK-Z6CP4scgqtc
"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
AUCTION_MSG_URL
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
AUCTION_MSG_URL
);
...
@@ -290,8 +293,16 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -290,8 +293,16 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
map
.
put
(
"miniprogram"
,
miniprogramMap
);
map
.
put
(
"miniprogram"
,
miniprogramMap
);
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
paramMap
.
put
(
"amount4"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
paramMap
.
put
(
"character_string5"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getDistributionOrderId
());
}});
map
.
put
(
"data"
,
paramMap
);
/* Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing2", new HashMap() {{
paramMap.put("thing2", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
...
@@ -306,7 +317,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -306,7 +317,7 @@ public class SendMsgServiceImpl implements SendMsgService {
paramMap.put("time4", new HashMap() {{
paramMap.put("time4", new HashMap() {{
put("value", content);
put("value", content);
}});
}});
map
.
put
(
"data"
,
paramMap
);
map.put("data", paramMap);
*/
logger
.
info
(
"============ 中拍通知付款模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
logger
.
info
(
"============ 中拍通知付款模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
post
(
true
);
okHttpUtil
.
post
(
true
);
...
@@ -933,7 +944,7 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -933,7 +944,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
"
X38RkH7DtKNDHUMa2P6XXqrEmkHIEvbpTWTr7Mkf2fM
"
);
map
.
put
(
"template_id"
,
"
PfJ8ao3DXJQzIxtT9wBdSKa1vtAxL_xh7f62fu4zjVc
"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
"/pages/saleOrder/index"
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
"/pages/saleOrder/index"
);
...
@@ -941,16 +952,19 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -941,16 +952,19 @@ public class SendMsgServiceImpl implements SendMsgService {
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
map
.
put
(
"miniprogram"
,
miniprogramMap
);
map
.
put
(
"miniprogram"
,
miniprogramMap
);
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
paramMap
.
put
(
"thing6"
,
new
HashMap
()
{{
paramMap
.
put
(
"character_string3"
,
new
HashMap
()
{{
put
(
"value"
,
distributionOrderNoticeMsg
.
getDistributionOrderId
());
}});
paramMap
.
put
(
"thing2"
,
new
HashMap
()
{{
put
(
"value"
,
distributionOrderNoticeMsg
.
getItemName
());
put
(
"value"
,
distributionOrderNoticeMsg
.
getItemName
());
}});
}});
paramMap
.
put
(
"number8"
,
new
HashMap
()
{{
/*
paramMap.put("number8", new HashMap() {{
put("value", distributionOrderNoticeMsg.getItemNum());
put("value", distributionOrderNoticeMsg.getItemNum());
}});
}});
*/
paramMap
.
put
(
"amount
12
"
,
new
HashMap
()
{{
paramMap
.
put
(
"amount
4
"
,
new
HashMap
()
{{
put
(
"value"
,
distributionOrderNoticeMsg
.
getAmount
());
put
(
"value"
,
distributionOrderNoticeMsg
.
getAmount
());
}});
}});
paramMap
.
put
(
"time
14
"
,
new
HashMap
()
{{
paramMap
.
put
(
"time
6
"
,
new
HashMap
()
{{
put
(
"value"
,
DateUtils
.
toString
(
distributionOrderNoticeMsg
.
getCreateTime
()));
put
(
"value"
,
DateUtils
.
toString
(
distributionOrderNoticeMsg
.
getCreateTime
()));
}});
}});
map
.
put
(
"data"
,
paramMap
);
map
.
put
(
"data"
,
paramMap
);
...
@@ -1018,4 +1032,49 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -1018,4 +1032,49 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}
return
Result
.
failed
();
return
Result
.
failed
();
}
}
@Override
public
Result
exchangeNoticeMsg
(
ExchangeNoticeMsg
exchangeNoticeMsg
)
{
try
{
String
openId
=
exchangeNoticeMsg
.
getOpenId
();
logger
.
info
(
"exchangeNoticeMsg openid:{}"
,
openId
);
String
token
=
officialAccountApi
.
getAccessToken
();
String
url
=
SEND_MSG_URL
+
"?access_token="
+
token
;
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
"GPnPnE2B7xF9LBjVpQJlYpVecX81-t1EmuYGoYNVNHA"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
"/pages/saleExchangeApplyOrder/index"
);
miniprogramMap
.
put
(
"pagepath"
,
stringBuffer
.
toString
());
map
.
put
(
"miniprogram"
,
miniprogramMap
);
Map
<
String
,
Object
>
paramMap
=
new
LinkedHashMap
<>();
paramMap
.
put
(
"thing3"
,
new
HashMap
()
{{
put
(
"value"
,
exchangeNoticeMsg
.
getItemName
());
}});
paramMap
.
put
(
"thing1"
,
new
HashMap
()
{{
put
(
"value"
,
exchangeNoticeMsg
.
getApplicant
());
}});
map
.
put
(
"data"
,
paramMap
);
logger
.
info
(
"============ 发送交换申请通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
post
(
true
);
String
responseStr
=
okHttpUtil
.
async
();
logger
.
info
(
"openid : {}, 发送交换申请通知模板消息 response :{}"
,
openId
,
responseStr
);
String
errorCode
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errcode"
);
String
errmsg
=
JsonUtils
.
getValueByPath
(
responseStr
,
"errmsg"
);
if
(!
"0"
.
equals
(
errorCode
))
{
logger
.
error
(
"openid : {}, 发送交换申请通知模板消息, errorCode : {}, errmsg : {} "
,
openId
,
errorCode
,
errmsg
);
return
Result
.
failed
();
}
logger
.
info
(
"============= 发送交换申请通知模板消息成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"发送官方估价完成通知模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
}
}
ch-core/src/main/java/com/wwdz/ch/core/service/SendMsgService.java
View file @
e290676d
...
@@ -7,8 +7,20 @@ public interface SendMsgService {
...
@@ -7,8 +7,20 @@ public interface SendMsgService {
Result
sendPayTempletMsg
(
String
openId
,
PayNoticeMsg
payNoticeMsg
);
Result
sendPayTempletMsg
(
String
openId
,
PayNoticeMsg
payNoticeMsg
);
/**
* 发送发货提醒消息
* @param openId
* @param deliveryNoticeMsg
* @return
*/
Result
sendDeliveryTempletMsg
(
String
openId
,
DeliveryNoticeMsg
deliveryNoticeMsg
);
Result
sendDeliveryTempletMsg
(
String
openId
,
DeliveryNoticeMsg
deliveryNoticeMsg
);
/**
* 买家确认收货通知卖家
* @param openId
* @param signedNoticeMsg
* @return
*/
Result
sendSignedTempletMsg
(
String
openId
,
SignedNoticeMsg
signedNoticeMsg
);
Result
sendSignedTempletMsg
(
String
openId
,
SignedNoticeMsg
signedNoticeMsg
);
/**
/**
...
@@ -74,7 +86,7 @@ public interface SendMsgService {
...
@@ -74,7 +86,7 @@ public interface SendMsgService {
/**
/**
* 通知
被关注者
* 通知
卖家有新订单
* @return
* @return
*/
*/
Result
newOrderNoticeMsg
(
DistributionOrderNoticeMsg
distributionOrderNoticeMsg
);
Result
newOrderNoticeMsg
(
DistributionOrderNoticeMsg
distributionOrderNoticeMsg
);
...
@@ -127,4 +139,12 @@ public interface SendMsgService {
...
@@ -127,4 +139,12 @@ public interface SendMsgService {
* @return
* @return
*/
*/
Result
sendOfficialEstimatedPriceMsg
(
ExchangeNoticeMsg
exchangeNoticeMsg
);
Result
sendOfficialEstimatedPriceMsg
(
ExchangeNoticeMsg
exchangeNoticeMsg
);
/**
* 交换单申请通知
* @param exchangeNoticeMsg
* @return
*/
Result
exchangeNoticeMsg
(
ExchangeNoticeMsg
exchangeNoticeMsg
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/CollectorWhiteListDao.java
View file @
e290676d
...
@@ -7,6 +7,8 @@ import java.util.List;
...
@@ -7,6 +7,8 @@ import java.util.List;
public
interface
CollectorWhiteListDao
{
public
interface
CollectorWhiteListDao
{
boolean
insert
(
CollectorWhiteList
collectorWhiteList
);
boolean
isExisted
(
long
collectorId
);
boolean
isExisted
(
long
collectorId
);
void
upsert
(
CollectorWhiteList
collectorWhiteList
);
void
upsert
(
CollectorWhiteList
collectorWhiteList
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/GuaranteeMoneyRecordDao.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dao.openShop
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord
;
public
interface
GuaranteeMoneyRecordDao
{
boolean
insert
(
GuaranteeMoneyRecord
guaranteeMoneyRecord
);
boolean
update
(
GuaranteeMoneyRecord
guaranteeMoneyRecord
);
GuaranteeMoneyRecord
findByOrderId
(
String
orderId
);
/**
* 是否有效缴纳质保金
* @param userId
* @return
*/
boolean
checkValidRecord
(
long
userId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/OpenShopApplyOrderDao.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dao.openShop
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopApplyOrderRequestDto
;
import
java.util.List
;
public
interface
OpenShopApplyOrderDao
{
boolean
insert
(
OpenShopApplyOrder
openShopApplyOrder
);
List
<
OpenShopApplyOrder
>
findByPage
(
OpenShopApplyOrderRequestDto
dto
);
boolean
updateState
(
String
orderId
,
int
state
);
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/openShop/OpenShopCostRecordDao.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dao.openShop
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecord
;
public
interface
OpenShopCostRecordDao
{
boolean
insert
(
OpenShopCostRecord
openShopCostRecord
);
boolean
update
(
OpenShopCostRecord
openShopCostRecord
);
OpenShopCostRecord
findByOrderId
(
String
orderId
);
/**
* 是否有效缴纳开店费
* @param userId
* @return
*/
boolean
checkValidRecord
(
long
userId
);
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
View file @
e290676d
package
com.wwdz.ch.db.domain
;
package
com.wwdz.ch.db.domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/
09/20
* @date 2024/
10/29
*/
*/
@Data
@Data
public
class
CollectorWhiteList
implements
Entity
{
public
class
CollectorWhiteList
implements
Entity
{
...
@@ -30,6 +32,11 @@ public class CollectorWhiteList implements Entity {
...
@@ -30,6 +32,11 @@ public class CollectorWhiteList implements Entity {
*/
*/
private
Date
createTime
;
private
Date
createTime
;
/**
* 截止有效日期
*/
private
Date
endValidTime
;
/**
/**
* 是否有效
* 是否有效
*/
*/
...
@@ -50,6 +57,16 @@ public class CollectorWhiteList implements Entity {
...
@@ -50,6 +57,16 @@ public class CollectorWhiteList implements Entity {
*/
*/
private
Boolean
isUploadLimit
;
private
Boolean
isUploadLimit
;
/**
* 身份证正面
*/
private
String
idCardFrontImage
;
/**
* 身份证背面
*/
private
String
idCardBackImage
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
...
@@ -62,10 +79,13 @@ public class CollectorWhiteList implements Entity {
...
@@ -62,10 +79,13 @@ public class CollectorWhiteList implements Entity {
sb
.
append
(
", collectorId="
).
append
(
collectorId
);
sb
.
append
(
", collectorId="
).
append
(
collectorId
);
sb
.
append
(
", channelCostRebate="
).
append
(
channelCostRebate
);
sb
.
append
(
", channelCostRebate="
).
append
(
channelCostRebate
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", endValidTime="
).
append
(
endValidTime
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", deliveryAuth="
).
append
(
deliveryAuth
);
sb
.
append
(
", deliveryAuth="
).
append
(
deliveryAuth
);
sb
.
append
(
", isShow="
).
append
(
isShow
);
sb
.
append
(
", isShow="
).
append
(
isShow
);
sb
.
append
(
", isUploadLimit="
).
append
(
isUploadLimit
);
sb
.
append
(
", isUploadLimit="
).
append
(
isUploadLimit
);
sb
.
append
(
", idCardFrontImage="
).
append
(
idCardFrontImage
);
sb
.
append
(
", idCardBackImage="
).
append
(
idCardBackImage
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -87,10 +107,13 @@ public class CollectorWhiteList implements Entity {
...
@@ -87,10 +107,13 @@ public class CollectorWhiteList implements Entity {
&&
(
this
.
getCollectorId
()
==
null
?
other
.
getCollectorId
()
==
null
:
this
.
getCollectorId
().
equals
(
other
.
getCollectorId
()))
&&
(
this
.
getCollectorId
()
==
null
?
other
.
getCollectorId
()
==
null
:
this
.
getCollectorId
().
equals
(
other
.
getCollectorId
()))
&&
(
this
.
getChannelCostRebate
()
==
null
?
other
.
getChannelCostRebate
()
==
null
:
this
.
getChannelCostRebate
().
equals
(
other
.
getChannelCostRebate
()))
&&
(
this
.
getChannelCostRebate
()
==
null
?
other
.
getChannelCostRebate
()
==
null
:
this
.
getChannelCostRebate
().
equals
(
other
.
getChannelCostRebate
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getEndValidTime
()
==
null
?
other
.
getEndValidTime
()
==
null
:
this
.
getEndValidTime
().
equals
(
other
.
getEndValidTime
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()))
&&
(
this
.
getDeliveryAuth
()
==
null
?
other
.
getDeliveryAuth
()
==
null
:
this
.
getDeliveryAuth
().
equals
(
other
.
getDeliveryAuth
()))
&&
(
this
.
getDeliveryAuth
()
==
null
?
other
.
getDeliveryAuth
()
==
null
:
this
.
getDeliveryAuth
().
equals
(
other
.
getDeliveryAuth
()))
&&
(
this
.
getIsShow
()
==
null
?
other
.
getIsShow
()
==
null
:
this
.
getIsShow
().
equals
(
other
.
getIsShow
()))
&&
(
this
.
getIsShow
()
==
null
?
other
.
getIsShow
()
==
null
:
this
.
getIsShow
().
equals
(
other
.
getIsShow
()))
&&
(
this
.
getIsUploadLimit
()
==
null
?
other
.
getIsUploadLimit
()
==
null
:
this
.
getIsUploadLimit
().
equals
(
other
.
getIsUploadLimit
()));
&&
(
this
.
getIsUploadLimit
()
==
null
?
other
.
getIsUploadLimit
()
==
null
:
this
.
getIsUploadLimit
().
equals
(
other
.
getIsUploadLimit
()))
&&
(
this
.
getIdCardFrontImage
()
==
null
?
other
.
getIdCardFrontImage
()
==
null
:
this
.
getIdCardFrontImage
().
equals
(
other
.
getIdCardFrontImage
()))
&&
(
this
.
getIdCardBackImage
()
==
null
?
other
.
getIdCardBackImage
()
==
null
:
this
.
getIdCardBackImage
().
equals
(
other
.
getIdCardBackImage
()));
}
}
@Override
@Override
...
@@ -101,10 +124,13 @@ public class CollectorWhiteList implements Entity {
...
@@ -101,10 +124,13 @@ public class CollectorWhiteList implements Entity {
result
=
prime
*
result
+
((
getCollectorId
()
==
null
)
?
0
:
getCollectorId
().
hashCode
());
result
=
prime
*
result
+
((
getCollectorId
()
==
null
)
?
0
:
getCollectorId
().
hashCode
());
result
=
prime
*
result
+
((
getChannelCostRebate
()
==
null
)
?
0
:
getChannelCostRebate
().
hashCode
());
result
=
prime
*
result
+
((
getChannelCostRebate
()
==
null
)
?
0
:
getChannelCostRebate
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getEndValidTime
()
==
null
)
?
0
:
getEndValidTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getDeliveryAuth
()
==
null
)
?
0
:
getDeliveryAuth
().
hashCode
());
result
=
prime
*
result
+
((
getDeliveryAuth
()
==
null
)
?
0
:
getDeliveryAuth
().
hashCode
());
result
=
prime
*
result
+
((
getIsShow
()
==
null
)
?
0
:
getIsShow
().
hashCode
());
result
=
prime
*
result
+
((
getIsShow
()
==
null
)
?
0
:
getIsShow
().
hashCode
());
result
=
prime
*
result
+
((
getIsUploadLimit
()
==
null
)
?
0
:
getIsUploadLimit
().
hashCode
());
result
=
prime
*
result
+
((
getIsUploadLimit
()
==
null
)
?
0
:
getIsUploadLimit
().
hashCode
());
result
=
prime
*
result
+
((
getIdCardFrontImage
()
==
null
)
?
0
:
getIdCardFrontImage
().
hashCode
());
result
=
prime
*
result
+
((
getIdCardBackImage
()
==
null
)
?
0
:
getIdCardBackImage
().
hashCode
());
return
result
;
return
result
;
}
}
...
@@ -120,10 +146,13 @@ public class CollectorWhiteList implements Entity {
...
@@ -120,10 +146,13 @@ public class CollectorWhiteList implements Entity {
collectorId
(
"collector_id"
,
"collectorId"
,
"BIGINT"
,
false
),
collectorId
(
"collector_id"
,
"collectorId"
,
"BIGINT"
,
false
),
channelCostRebate
(
"channel_cost_rebate"
,
"channelCostRebate"
,
"DECIMAL"
,
false
),
channelCostRebate
(
"channel_cost_rebate"
,
"channelCostRebate"
,
"DECIMAL"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
endValidTime
(
"end_valid_time"
,
"endValidTime"
,
"TIMESTAMP"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
),
deliveryAuth
(
"delivery_auth"
,
"deliveryAuth"
,
"INTEGER"
,
false
),
deliveryAuth
(
"delivery_auth"
,
"deliveryAuth"
,
"INTEGER"
,
false
),
isShow
(
"is_show"
,
"isShow"
,
"BIT"
,
false
),
isShow
(
"is_show"
,
"isShow"
,
"BIT"
,
false
),
isUploadLimit
(
"is_upload_limit"
,
"isUploadLimit"
,
"BIT"
,
false
);
isUploadLimit
(
"is_upload_limit"
,
"isUploadLimit"
,
"BIT"
,
false
),
idCardFrontImage
(
"id_card_front_image"
,
"idCardFrontImage"
,
"VARCHAR"
,
false
),
idCardBackImage
(
"id_card_back_image"
,
"idCardBackImage"
,
"VARCHAR"
,
false
);
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
View file @
e290676d
...
@@ -677,6 +677,138 @@ public class CollectorWhiteListExample {
...
@@ -677,6 +677,138 @@ public class CollectorWhiteListExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andEndValidTimeIsNull
()
{
addCriterion
(
"end_valid_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeIsNotNull
()
{
addCriterion
(
"end_valid_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time ="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time <>"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeNotEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"end_valid_time >"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeGreaterThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time >="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeGreaterThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeLessThan
(
Date
value
)
{
addCriterion
(
"end_valid_time <"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeLessThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time <="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeLessThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_valid_time in"
,
values
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_valid_time not in"
,
values
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_valid_time between"
,
value1
,
value2
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_valid_time not between"
,
value1
,
value2
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -1204,6 +1336,290 @@ public class CollectorWhiteListExample {
...
@@ -1204,6 +1336,290 @@ public class CollectorWhiteListExample {
addCriterion
(
"is_upload_limit not between"
,
value1
,
value2
,
"isUploadLimit"
);
addCriterion
(
"is_upload_limit not between"
,
value1
,
value2
,
"isUploadLimit"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdCardFrontImageIsNull
()
{
addCriterion
(
"id_card_front_image is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageIsNotNull
()
{
addCriterion
(
"id_card_front_image is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageEqualTo
(
String
value
)
{
addCriterion
(
"id_card_front_image ="
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageNotEqualTo
(
String
value
)
{
addCriterion
(
"id_card_front_image <>"
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageNotEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageGreaterThan
(
String
value
)
{
addCriterion
(
"id_card_front_image >"
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageGreaterThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id_card_front_image >="
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageGreaterThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageLessThan
(
String
value
)
{
addCriterion
(
"id_card_front_image <"
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageLessThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id_card_front_image <="
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardFrontImageLessThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_front_image <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageLike
(
String
value
)
{
addCriterion
(
"id_card_front_image like"
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageNotLike
(
String
value
)
{
addCriterion
(
"id_card_front_image not like"
,
value
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageIn
(
List
<
String
>
values
)
{
addCriterion
(
"id_card_front_image in"
,
values
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"id_card_front_image not in"
,
values
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id_card_front_image between"
,
value1
,
value2
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardFrontImageNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id_card_front_image not between"
,
value1
,
value2
,
"idCardFrontImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageIsNull
()
{
addCriterion
(
"id_card_back_image is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageIsNotNull
()
{
addCriterion
(
"id_card_back_image is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageEqualTo
(
String
value
)
{
addCriterion
(
"id_card_back_image ="
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageNotEqualTo
(
String
value
)
{
addCriterion
(
"id_card_back_image <>"
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageNotEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageGreaterThan
(
String
value
)
{
addCriterion
(
"id_card_back_image >"
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageGreaterThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id_card_back_image >="
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageGreaterThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageLessThan
(
String
value
)
{
addCriterion
(
"id_card_back_image <"
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageLessThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id_card_back_image <="
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdCardBackImageLessThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id_card_back_image <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageLike
(
String
value
)
{
addCriterion
(
"id_card_back_image like"
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageNotLike
(
String
value
)
{
addCriterion
(
"id_card_back_image not like"
,
value
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageIn
(
List
<
String
>
values
)
{
addCriterion
(
"id_card_back_image in"
,
values
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"id_card_back_image not in"
,
values
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id_card_back_image between"
,
value1
,
value2
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdCardBackImageNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id_card_back_image not between"
,
value1
,
value2
,
"idCardBackImage"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/GuaranteeMoneyRecord.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/10/29
*/
@Data
public
class
GuaranteeMoneyRecord
implements
Entity
{
private
Long
id
;
/**
* 缴纳保证金的单号
*/
private
String
guaranteeMoneyOrderId
;
/**
* 预支付id
*/
private
String
prepayId
;
/**
* 微信支付订单号
*/
private
String
transactionId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 微信openid
*/
private
String
userOpenId
;
/**
* 支付金额,单位分
*/
private
Long
amount
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 支付时间
*/
private
Date
payTime
;
/**
* 是否有效
*/
private
Boolean
isValid
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", guaranteeMoneyOrderId="
).
append
(
guaranteeMoneyOrderId
);
sb
.
append
(
", prepayId="
).
append
(
prepayId
);
sb
.
append
(
", transactionId="
).
append
(
transactionId
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
", userOpenId="
).
append
(
userOpenId
);
sb
.
append
(
", amount="
).
append
(
amount
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", payTime="
).
append
(
payTime
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
GuaranteeMoneyRecord
other
=
(
GuaranteeMoneyRecord
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getGuaranteeMoneyOrderId
()
==
null
?
other
.
getGuaranteeMoneyOrderId
()
==
null
:
this
.
getGuaranteeMoneyOrderId
().
equals
(
other
.
getGuaranteeMoneyOrderId
()))
&&
(
this
.
getPrepayId
()
==
null
?
other
.
getPrepayId
()
==
null
:
this
.
getPrepayId
().
equals
(
other
.
getPrepayId
()))
&&
(
this
.
getTransactionId
()
==
null
?
other
.
getTransactionId
()
==
null
:
this
.
getTransactionId
().
equals
(
other
.
getTransactionId
()))
&&
(
this
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
getUserOpenId
()
==
null
?
other
.
getUserOpenId
()
==
null
:
this
.
getUserOpenId
().
equals
(
other
.
getUserOpenId
()))
&&
(
this
.
getAmount
()
==
null
?
other
.
getAmount
()
==
null
:
this
.
getAmount
().
equals
(
other
.
getAmount
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getPayTime
()
==
null
?
other
.
getPayTime
()
==
null
:
this
.
getPayTime
().
equals
(
other
.
getPayTime
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getGuaranteeMoneyOrderId
()
==
null
)
?
0
:
getGuaranteeMoneyOrderId
().
hashCode
());
result
=
prime
*
result
+
((
getPrepayId
()
==
null
)
?
0
:
getPrepayId
().
hashCode
());
result
=
prime
*
result
+
((
getTransactionId
()
==
null
)
?
0
:
getTransactionId
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getUserOpenId
()
==
null
)
?
0
:
getUserOpenId
().
hashCode
());
result
=
prime
*
result
+
((
getAmount
()
==
null
)
?
0
:
getAmount
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getPayTime
()
==
null
)
?
0
:
getPayTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
guaranteeMoneyOrderId
(
"guarantee_money_order_id"
,
"guaranteeMoneyOrderId"
,
"VARCHAR"
,
false
),
prepayId
(
"prepay_id"
,
"prepayId"
,
"VARCHAR"
,
false
),
transactionId
(
"transaction_id"
,
"transactionId"
,
"VARCHAR"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
userOpenId
(
"user_open_id"
,
"userOpenId"
,
"VARCHAR"
,
false
),
amount
(
"amount"
,
"amount"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
payTime
(
"pay_time"
,
"payTime"
,
"TIMESTAMP"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/GuaranteeMoneyRecordExample.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
GuaranteeMoneyRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
GuaranteeMoneyRecordExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GuaranteeMoneyRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GuaranteeMoneyRecordExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
GuaranteeMoneyRecordExample
example
=
new
GuaranteeMoneyRecordExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdIsNull
()
{
addCriterion
(
"guarantee_money_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdIsNotNull
()
{
addCriterion
(
"guarantee_money_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id ="
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id <>"
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id >"
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id >="
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdLessThan
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id <"
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id <="
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeMoneyOrderIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_money_order_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdLike
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id like"
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdNotLike
(
String
value
)
{
addCriterion
(
"guarantee_money_order_id not like"
,
value
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"guarantee_money_order_id in"
,
values
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"guarantee_money_order_id not in"
,
values
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"guarantee_money_order_id between"
,
value1
,
value2
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeMoneyOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"guarantee_money_order_id not between"
,
value1
,
value2
,
"guaranteeMoneyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNull
()
{
addCriterion
(
"prepay_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNotNull
()
{
addCriterion
(
"prepay_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id ="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <>"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThan
(
String
value
)
{
addCriterion
(
"prepay_id >"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id >="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThan
(
String
value
)
{
addCriterion
(
"prepay_id <"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLike
(
String
value
)
{
addCriterion
(
"prepay_id like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotLike
(
String
value
)
{
addCriterion
(
"prepay_id not like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id not in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id not between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNull
()
{
addCriterion
(
"transaction_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNotNull
()
{
addCriterion
(
"transaction_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id ="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <>"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThan
(
String
value
)
{
addCriterion
(
"transaction_id >"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id >="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThan
(
String
value
)
{
addCriterion
(
"transaction_id <"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLike
(
String
value
)
{
addCriterion
(
"transaction_id like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotLike
(
String
value
)
{
addCriterion
(
"transaction_id not like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id not in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id not between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNull
()
{
addCriterion
(
"user_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNotNull
()
{
addCriterion
(
"user_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdEqualTo
(
Long
value
)
{
addCriterion
(
"user_id ="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <>"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThan
(
Long
value
)
{
addCriterion
(
"user_id >"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id >="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThan
(
Long
value
)
{
addCriterion
(
"user_id <"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id not in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNull
()
{
addCriterion
(
"user_open_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNotNull
()
{
addCriterion
(
"user_open_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id ="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <>"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThan
(
String
value
)
{
addCriterion
(
"user_open_id >"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id >="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThan
(
String
value
)
{
addCriterion
(
"user_open_id <"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLike
(
String
value
)
{
addCriterion
(
"user_open_id like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotLike
(
String
value
)
{
addCriterion
(
"user_open_id not like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id not in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id not between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNull
()
{
addCriterion
(
"amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNotNull
()
{
addCriterion
(
"amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountEqualTo
(
Long
value
)
{
addCriterion
(
"amount ="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotEqualTo
(
Long
value
)
{
addCriterion
(
"amount <>"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThan
(
Long
value
)
{
addCriterion
(
"amount >"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount >="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThan
(
Long
value
)
{
addCriterion
(
"amount <"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount <="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount not in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount not between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNull
()
{
addCriterion
(
"pay_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNotNull
()
{
addCriterion
(
"pay_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time ="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <>"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"pay_time >"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time >="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThan
(
Date
value
)
{
addCriterion
(
"pay_time <"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time not in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time between"
,
value1
,
value2
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time not between"
,
value1
,
value2
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
Boolean
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
GuaranteeMoneyRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
GuaranteeMoneyRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
GuaranteeMoneyRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
GuaranteeMoneyRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopApplyOrder.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/10/29
*/
@Data
public
class
OpenShopApplyOrder
implements
Entity
{
private
Integer
id
;
/**
* 开店申请单
*/
private
String
openShopApplyOrderId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 微信openid
*/
private
String
userOpenId
;
/**
* 开店费
*/
private
Long
openShopAmount
;
/**
* 质保金
*/
private
Long
guaranteeAmount
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 状态0待付款;10待审核;20通过;30拒绝
*/
private
Integer
state
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", openShopApplyOrderId="
).
append
(
openShopApplyOrderId
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
", userOpenId="
).
append
(
userOpenId
);
sb
.
append
(
", openShopAmount="
).
append
(
openShopAmount
);
sb
.
append
(
", guaranteeAmount="
).
append
(
guaranteeAmount
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
OpenShopApplyOrder
other
=
(
OpenShopApplyOrder
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getOpenShopApplyOrderId
()
==
null
?
other
.
getOpenShopApplyOrderId
()
==
null
:
this
.
getOpenShopApplyOrderId
().
equals
(
other
.
getOpenShopApplyOrderId
()))
&&
(
this
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
getUserOpenId
()
==
null
?
other
.
getUserOpenId
()
==
null
:
this
.
getUserOpenId
().
equals
(
other
.
getUserOpenId
()))
&&
(
this
.
getOpenShopAmount
()
==
null
?
other
.
getOpenShopAmount
()
==
null
:
this
.
getOpenShopAmount
().
equals
(
other
.
getOpenShopAmount
()))
&&
(
this
.
getGuaranteeAmount
()
==
null
?
other
.
getGuaranteeAmount
()
==
null
:
this
.
getGuaranteeAmount
().
equals
(
other
.
getGuaranteeAmount
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getOpenShopApplyOrderId
()
==
null
)
?
0
:
getOpenShopApplyOrderId
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getUserOpenId
()
==
null
)
?
0
:
getUserOpenId
().
hashCode
());
result
=
prime
*
result
+
((
getOpenShopAmount
()
==
null
)
?
0
:
getOpenShopAmount
().
hashCode
());
result
=
prime
*
result
+
((
getGuaranteeAmount
()
==
null
)
?
0
:
getGuaranteeAmount
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
openShopApplyOrderId
(
"open_shop_apply_order_id"
,
"openShopApplyOrderId"
,
"VARCHAR"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
userOpenId
(
"user_open_id"
,
"userOpenId"
,
"VARCHAR"
,
false
),
openShopAmount
(
"open_shop_amount"
,
"openShopAmount"
,
"BIGINT"
,
false
),
guaranteeAmount
(
"guarantee_amount"
,
"guaranteeAmount"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopApplyOrderExample.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
OpenShopApplyOrderExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
OpenShopApplyOrderExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopApplyOrderExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopApplyOrderExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
OpenShopApplyOrderExample
example
=
new
OpenShopApplyOrderExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdIsNull
()
{
addCriterion
(
"open_shop_apply_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdIsNotNull
()
{
addCriterion
(
"open_shop_apply_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id ="
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id <>"
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id >"
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id >="
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdLessThan
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id <"
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id <="
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopApplyOrderIdLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_apply_order_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdLike
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id like"
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdNotLike
(
String
value
)
{
addCriterion
(
"open_shop_apply_order_id not like"
,
value
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"open_shop_apply_order_id in"
,
values
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"open_shop_apply_order_id not in"
,
values
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"open_shop_apply_order_id between"
,
value1
,
value2
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopApplyOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"open_shop_apply_order_id not between"
,
value1
,
value2
,
"openShopApplyOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNull
()
{
addCriterion
(
"user_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNotNull
()
{
addCriterion
(
"user_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdEqualTo
(
Long
value
)
{
addCriterion
(
"user_id ="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <>"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThan
(
Long
value
)
{
addCriterion
(
"user_id >"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id >="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThan
(
Long
value
)
{
addCriterion
(
"user_id <"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id not in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNull
()
{
addCriterion
(
"user_open_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNotNull
()
{
addCriterion
(
"user_open_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id ="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <>"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThan
(
String
value
)
{
addCriterion
(
"user_open_id >"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id >="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThan
(
String
value
)
{
addCriterion
(
"user_open_id <"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLike
(
String
value
)
{
addCriterion
(
"user_open_id like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotLike
(
String
value
)
{
addCriterion
(
"user_open_id not like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id not in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id not between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountIsNull
()
{
addCriterion
(
"open_shop_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountIsNotNull
()
{
addCriterion
(
"open_shop_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountEqualTo
(
Long
value
)
{
addCriterion
(
"open_shop_amount ="
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountNotEqualTo
(
Long
value
)
{
addCriterion
(
"open_shop_amount <>"
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountGreaterThan
(
Long
value
)
{
addCriterion
(
"open_shop_amount >"
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"open_shop_amount >="
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountLessThan
(
Long
value
)
{
addCriterion
(
"open_shop_amount <"
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"open_shop_amount <="
,
value
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopAmountLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_amount <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountIn
(
List
<
Long
>
values
)
{
addCriterion
(
"open_shop_amount in"
,
values
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"open_shop_amount not in"
,
values
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"open_shop_amount between"
,
value1
,
value2
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopAmountNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"open_shop_amount not between"
,
value1
,
value2
,
"openShopAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountIsNull
()
{
addCriterion
(
"guarantee_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountIsNotNull
()
{
addCriterion
(
"guarantee_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountEqualTo
(
Long
value
)
{
addCriterion
(
"guarantee_amount ="
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountNotEqualTo
(
Long
value
)
{
addCriterion
(
"guarantee_amount <>"
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountGreaterThan
(
Long
value
)
{
addCriterion
(
"guarantee_amount >"
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"guarantee_amount >="
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountLessThan
(
Long
value
)
{
addCriterion
(
"guarantee_amount <"
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"guarantee_amount <="
,
value
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andGuaranteeAmountLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"guarantee_amount <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountIn
(
List
<
Long
>
values
)
{
addCriterion
(
"guarantee_amount in"
,
values
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"guarantee_amount not in"
,
values
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"guarantee_amount between"
,
value1
,
value2
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGuaranteeAmountNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"guarantee_amount not between"
,
value1
,
value2
,
"guaranteeAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNull
()
{
addCriterion
(
"`state` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNotNull
()
{
addCriterion
(
"`state` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` ="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <>"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateNotEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThan
(
Integer
value
)
{
addCriterion
(
"`state` >"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` >="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThan
(
Integer
value
)
{
addCriterion
(
"`state` <"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanOrEqualToColumn
(
OpenShopApplyOrder
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` not in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
OpenShopApplyOrderExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
OpenShopApplyOrderExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopApplyOrderExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopCostRecord.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/10/29
*/
@Data
public
class
OpenShopCostRecord
implements
Entity
{
private
Long
id
;
/**
* 缴纳开店费的单号
*/
private
String
openShopCostOrderId
;
/**
* 预支付id
*/
private
String
prepayId
;
/**
* 微信支付订单号
*/
private
String
transactionId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 微信openid
*/
private
String
userOpenId
;
/**
* 支付金额,单位分
*/
private
Long
amount
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 支付时间
*/
private
Date
payTime
;
/**
* 开始有效时间
*/
private
Date
startValidTime
;
/**
* 结束有效时间
*/
private
Date
endValidTime
;
/**
* 是否有效
*/
private
Boolean
isValid
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", openShopCostOrderId="
).
append
(
openShopCostOrderId
);
sb
.
append
(
", prepayId="
).
append
(
prepayId
);
sb
.
append
(
", transactionId="
).
append
(
transactionId
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
", userOpenId="
).
append
(
userOpenId
);
sb
.
append
(
", amount="
).
append
(
amount
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", payTime="
).
append
(
payTime
);
sb
.
append
(
", startValidTime="
).
append
(
startValidTime
);
sb
.
append
(
", endValidTime="
).
append
(
endValidTime
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
OpenShopCostRecord
other
=
(
OpenShopCostRecord
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getOpenShopCostOrderId
()
==
null
?
other
.
getOpenShopCostOrderId
()
==
null
:
this
.
getOpenShopCostOrderId
().
equals
(
other
.
getOpenShopCostOrderId
()))
&&
(
this
.
getPrepayId
()
==
null
?
other
.
getPrepayId
()
==
null
:
this
.
getPrepayId
().
equals
(
other
.
getPrepayId
()))
&&
(
this
.
getTransactionId
()
==
null
?
other
.
getTransactionId
()
==
null
:
this
.
getTransactionId
().
equals
(
other
.
getTransactionId
()))
&&
(
this
.
getUserId
()
==
null
?
other
.
getUserId
()
==
null
:
this
.
getUserId
().
equals
(
other
.
getUserId
()))
&&
(
this
.
getUserOpenId
()
==
null
?
other
.
getUserOpenId
()
==
null
:
this
.
getUserOpenId
().
equals
(
other
.
getUserOpenId
()))
&&
(
this
.
getAmount
()
==
null
?
other
.
getAmount
()
==
null
:
this
.
getAmount
().
equals
(
other
.
getAmount
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getPayTime
()
==
null
?
other
.
getPayTime
()
==
null
:
this
.
getPayTime
().
equals
(
other
.
getPayTime
()))
&&
(
this
.
getStartValidTime
()
==
null
?
other
.
getStartValidTime
()
==
null
:
this
.
getStartValidTime
().
equals
(
other
.
getStartValidTime
()))
&&
(
this
.
getEndValidTime
()
==
null
?
other
.
getEndValidTime
()
==
null
:
this
.
getEndValidTime
().
equals
(
other
.
getEndValidTime
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getOpenShopCostOrderId
()
==
null
)
?
0
:
getOpenShopCostOrderId
().
hashCode
());
result
=
prime
*
result
+
((
getPrepayId
()
==
null
)
?
0
:
getPrepayId
().
hashCode
());
result
=
prime
*
result
+
((
getTransactionId
()
==
null
)
?
0
:
getTransactionId
().
hashCode
());
result
=
prime
*
result
+
((
getUserId
()
==
null
)
?
0
:
getUserId
().
hashCode
());
result
=
prime
*
result
+
((
getUserOpenId
()
==
null
)
?
0
:
getUserOpenId
().
hashCode
());
result
=
prime
*
result
+
((
getAmount
()
==
null
)
?
0
:
getAmount
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getPayTime
()
==
null
)
?
0
:
getPayTime
().
hashCode
());
result
=
prime
*
result
+
((
getStartValidTime
()
==
null
)
?
0
:
getStartValidTime
().
hashCode
());
result
=
prime
*
result
+
((
getEndValidTime
()
==
null
)
?
0
:
getEndValidTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
openShopCostOrderId
(
"open_shop_cost_order_id"
,
"openShopCostOrderId"
,
"VARCHAR"
,
false
),
prepayId
(
"prepay_id"
,
"prepayId"
,
"VARCHAR"
,
false
),
transactionId
(
"transaction_id"
,
"transactionId"
,
"VARCHAR"
,
false
),
userId
(
"user_id"
,
"userId"
,
"BIGINT"
,
false
),
userOpenId
(
"user_open_id"
,
"userOpenId"
,
"VARCHAR"
,
false
),
amount
(
"amount"
,
"amount"
,
"BIGINT"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
payTime
(
"pay_time"
,
"payTime"
,
"TIMESTAMP"
,
false
),
startValidTime
(
"start_valid_time"
,
"startValidTime"
,
"TIMESTAMP"
,
false
),
endValidTime
(
"end_valid_time"
,
"endValidTime"
,
"TIMESTAMP"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/openShop/OpenShopCostRecordExample.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.domain.openShop
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
OpenShopCostRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
OpenShopCostRecordExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopCostRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopCostRecordExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
OpenShopCostRecordExample
example
=
new
OpenShopCostRecordExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdIsNull
()
{
addCriterion
(
"open_shop_cost_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdIsNotNull
()
{
addCriterion
(
"open_shop_cost_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id ="
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id <>"
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id >"
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id >="
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdLessThan
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id <"
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id <="
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOpenShopCostOrderIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"open_shop_cost_order_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdLike
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id like"
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdNotLike
(
String
value
)
{
addCriterion
(
"open_shop_cost_order_id not like"
,
value
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"open_shop_cost_order_id in"
,
values
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"open_shop_cost_order_id not in"
,
values
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"open_shop_cost_order_id between"
,
value1
,
value2
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOpenShopCostOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"open_shop_cost_order_id not between"
,
value1
,
value2
,
"openShopCostOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNull
()
{
addCriterion
(
"prepay_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIsNotNull
()
{
addCriterion
(
"prepay_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id ="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <>"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThan
(
String
value
)
{
addCriterion
(
"prepay_id >"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id >="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThan
(
String
value
)
{
addCriterion
(
"prepay_id <"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"prepay_id <="
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPrepayIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"prepay_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdLike
(
String
value
)
{
addCriterion
(
"prepay_id like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotLike
(
String
value
)
{
addCriterion
(
"prepay_id not like"
,
value
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"prepay_id not in"
,
values
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrepayIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"prepay_id not between"
,
value1
,
value2
,
"prepayId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNull
()
{
addCriterion
(
"transaction_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIsNotNull
()
{
addCriterion
(
"transaction_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id ="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <>"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThan
(
String
value
)
{
addCriterion
(
"transaction_id >"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id >="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThan
(
String
value
)
{
addCriterion
(
"transaction_id <"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"transaction_id <="
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTransactionIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"transaction_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdLike
(
String
value
)
{
addCriterion
(
"transaction_id like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotLike
(
String
value
)
{
addCriterion
(
"transaction_id not like"
,
value
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"transaction_id not in"
,
values
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTransactionIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"transaction_id not between"
,
value1
,
value2
,
"transactionId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNull
()
{
addCriterion
(
"user_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIsNotNull
()
{
addCriterion
(
"user_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdEqualTo
(
Long
value
)
{
addCriterion
(
"user_id ="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <>"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThan
(
Long
value
)
{
addCriterion
(
"user_id >"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id >="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThan
(
Long
value
)
{
addCriterion
(
"user_id <"
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"user_id <="
,
value
,
"userId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"user_id not in"
,
values
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNull
()
{
addCriterion
(
"user_open_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIsNotNull
()
{
addCriterion
(
"user_open_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id ="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <>"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThan
(
String
value
)
{
addCriterion
(
"user_open_id >"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id >="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThan
(
String
value
)
{
addCriterion
(
"user_open_id <"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_open_id <="
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUserOpenIdLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"user_open_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdLike
(
String
value
)
{
addCriterion
(
"user_open_id like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotLike
(
String
value
)
{
addCriterion
(
"user_open_id not like"
,
value
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_open_id not in"
,
values
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserOpenIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_open_id not between"
,
value1
,
value2
,
"userOpenId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNull
()
{
addCriterion
(
"amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIsNotNull
()
{
addCriterion
(
"amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountEqualTo
(
Long
value
)
{
addCriterion
(
"amount ="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotEqualTo
(
Long
value
)
{
addCriterion
(
"amount <>"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThan
(
Long
value
)
{
addCriterion
(
"amount >"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount >="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThan
(
Long
value
)
{
addCriterion
(
"amount <"
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"amount <="
,
value
,
"amount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAmountLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"amount <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAmountIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"amount not in"
,
values
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAmountNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"amount not between"
,
value1
,
value2
,
"amount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNull
()
{
addCriterion
(
"pay_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIsNotNull
()
{
addCriterion
(
"pay_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time ="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <>"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"pay_time >"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time >="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThan
(
Date
value
)
{
addCriterion
(
"pay_time <"
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"pay_time <="
,
value
,
"payTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPayTimeLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"pay_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"pay_time not in"
,
values
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time between"
,
value1
,
value2
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"pay_time not between"
,
value1
,
value2
,
"payTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeIsNull
()
{
addCriterion
(
"start_valid_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeIsNotNull
()
{
addCriterion
(
"start_valid_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"start_valid_time ="
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"start_valid_time <>"
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"start_valid_time >"
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_valid_time >="
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeLessThan
(
Date
value
)
{
addCriterion
(
"start_valid_time <"
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"start_valid_time <="
,
value
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStartValidTimeLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"start_valid_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_valid_time in"
,
values
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"start_valid_time not in"
,
values
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"start_valid_time between"
,
value1
,
value2
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStartValidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"start_valid_time not between"
,
value1
,
value2
,
"startValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeIsNull
()
{
addCriterion
(
"end_valid_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeIsNotNull
()
{
addCriterion
(
"end_valid_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time ="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time <>"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"end_valid_time >"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time >="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeLessThan
(
Date
value
)
{
addCriterion
(
"end_valid_time <"
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"end_valid_time <="
,
value
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andEndValidTimeLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"end_valid_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_valid_time in"
,
values
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"end_valid_time not in"
,
values
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_valid_time between"
,
value1
,
value2
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEndValidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"end_valid_time not between"
,
value1
,
value2
,
"endValidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
Boolean
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
OpenShopCostRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
OpenShopCostRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
OpenShopCostRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
OpenShopCostRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/UserBankCardRequestDto.java
View file @
e290676d
...
@@ -22,10 +22,15 @@ public class UserBankCardRequestDto extends BaseRequestDto implements Entity {
...
@@ -22,10 +22,15 @@ public class UserBankCardRequestDto extends BaseRequestDto implements Entity {
private
String
cardId
;
private
String
cardId
;
/**
/**
* 名称
*
持卡人
名称
*/
*/
private
String
name
;
private
String
name
;
/**
* 开户行名称
*/
private
String
bankName
;
/**
/**
* 创建时间
* 创建时间
*/
*/
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/GuaranteeMoneyRecordRequestDto.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dto.request.openShop
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
GuaranteeMoneyRecordRequestDto
implements
Entity
{
private
Long
id
;
/**
* 缴纳保证金的单号
*/
private
String
guaranteeMoneyOrderId
;
/**
* 预支付id
*/
private
String
prepayId
;
/**
* 微信支付订单号
*/
private
String
transactionId
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 微信openid
*/
private
String
userOpenId
;
/**
* 支付金额,单位元
*/
private
String
amount
;
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/OpenShopApplyOrderRequestDto.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dto.request.openShop
;
import
com.wwdz.ch.db.dto.request.BaseRequestDto
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
OpenShopApplyOrderRequestDto
extends
BaseRequestDto
{
/**
* 开店申请单
*/
private
String
openShopApplyOrderId
;
/**
* 系统订单号
* 开店费用订单或者质保金缴纳订单
*/
private
String
systemOrderId
;
/**
* 用户id
*/
private
Long
userId
;
private
String
userOpenId
;
private
List
<
Long
>
userIdList
;
/**
* 用户名称
*/
private
String
userName
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 状态0待付款;10待审核;20通过;30拒绝
*/
private
Integer
state
;
/**
* 支付费用类型
* 1开店费,2质保金
*/
private
Integer
costType
;
}
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/openShop/OpenShopInfoRequestDto.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.dto.request.openShop
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
OpenShopInfoRequestDto
implements
Entity
{
/**
* 用户id
*/
private
Long
userId
;
private
String
userOpenId
;
/**
* 身份证正面
*/
private
String
idCardFrontImage
;
/**
* 身份证背面
*/
private
String
idCardBackImage
;
/**
* 卡号
*/
private
String
cardId
;
/**
* 持卡人名称
*/
private
String
name
;
/**
* 开户行名称
*/
private
String
bankName
;
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/CollectorWhiteListDaoImpl.java
View file @
e290676d
...
@@ -17,6 +17,12 @@ public class CollectorWhiteListDaoImpl implements CollectorWhiteListDao {
...
@@ -17,6 +17,12 @@ public class CollectorWhiteListDaoImpl implements CollectorWhiteListDao {
@Autowired
@Autowired
CollectorWhiteListMapper
collectorWhiteListMapper
;
CollectorWhiteListMapper
collectorWhiteListMapper
;
@Override
public
boolean
insert
(
CollectorWhiteList
collectorWhiteList
)
{
return
collectorWhiteListMapper
.
insert
(
collectorWhiteList
)
>
0
;
}
@Override
@Override
public
boolean
isExisted
(
long
collectorId
)
{
public
boolean
isExisted
(
long
collectorId
)
{
CollectorWhiteListExample
example
=
new
CollectorWhiteListExample
();
CollectorWhiteListExample
example
=
new
CollectorWhiteListExample
();
...
@@ -36,7 +42,7 @@ public class CollectorWhiteListDaoImpl implements CollectorWhiteListDao {
...
@@ -36,7 +42,7 @@ public class CollectorWhiteListDaoImpl implements CollectorWhiteListDao {
if
(
count
>
0
)
{
if
(
count
>
0
)
{
collectorWhiteListMapper
.
updateByExampleSelective
(
collectorWhiteList
,
example
);
collectorWhiteListMapper
.
updateByExampleSelective
(
collectorWhiteList
,
example
);
}
else
{
}
else
{
collectorWhiteList
.
setChannelCostRebate
(
new
BigDecimal
(
"1
5
"
));
collectorWhiteList
.
setChannelCostRebate
(
new
BigDecimal
(
"1"
));
collectorWhiteListMapper
.
insert
(
collectorWhiteList
);
collectorWhiteListMapper
.
insert
(
collectorWhiteList
);
}
}
}
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/GuaranteeMoneyRecordDaoImpl.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.impl.openShop
;
import
com.wwdz.ch.db.dao.openShop.GuaranteeMoneyRecordDao
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample
;
import
com.wwdz.ch.db.mapper.openShop.GuaranteeMoneyRecordMapper
;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
GuaranteeMoneyRecordDaoImpl
implements
GuaranteeMoneyRecordDao
{
@Autowired
GuaranteeMoneyRecordMapper
guaranteeMoneyRecordMapper
;
@Override
public
boolean
insert
(
GuaranteeMoneyRecord
guaranteeMoneyRecord
)
{
return
guaranteeMoneyRecordMapper
.
insert
(
guaranteeMoneyRecord
)
>
0
;
}
@Override
public
boolean
update
(
GuaranteeMoneyRecord
guaranteeMoneyRecord
)
{
GuaranteeMoneyRecordExample
example
=
new
GuaranteeMoneyRecordExample
();
GuaranteeMoneyRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
guaranteeMoneyRecord
.
getGuaranteeMoneyOrderId
(),
criteria
::
andGuaranteeMoneyOrderIdEqualTo
);
JdbcHelper
.
ifPresent
(
guaranteeMoneyRecord
.
getUserId
(),
criteria
::
andUserIdEqualTo
);
return
guaranteeMoneyRecordMapper
.
updateByExampleSelective
(
guaranteeMoneyRecord
,
example
)
>
0
;
}
@Override
public
GuaranteeMoneyRecord
findByOrderId
(
String
orderId
)
{
GuaranteeMoneyRecordExample
example
=
new
GuaranteeMoneyRecordExample
();
GuaranteeMoneyRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andGuaranteeMoneyOrderIdEqualTo
(
orderId
);
return
guaranteeMoneyRecordMapper
.
selectOneByExample
(
example
);
}
@Override
public
boolean
checkValidRecord
(
long
userId
)
{
GuaranteeMoneyRecordExample
example
=
new
GuaranteeMoneyRecordExample
();
GuaranteeMoneyRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
userId
);
criteria
.
andIsValidEqualTo
(
true
);
criteria
.
andTransactionIdIsNotNull
();
return
guaranteeMoneyRecordMapper
.
countByExample
(
example
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/OpenShopApplyOrderDaoImpl.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.impl.openShop
;
import
com.github.pagehelper.PageHelper
;
import
com.wwdz.ch.db.dao.openShop.OpenShopApplyOrderDao
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopApplyOrderRequestDto
;
import
com.wwdz.ch.db.mapper.openShop.OpenShopApplyOrderMapper
;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
import
java.util.List
;
@Repository
public
class
OpenShopApplyOrderDaoImpl
implements
OpenShopApplyOrderDao
{
@Autowired
OpenShopApplyOrderMapper
openShopApplyOrderMapper
;
@Override
public
boolean
insert
(
OpenShopApplyOrder
openShopApplyOrder
)
{
return
openShopApplyOrderMapper
.
insert
(
openShopApplyOrder
)
>
0
;
}
@Override
public
List
<
OpenShopApplyOrder
>
findByPage
(
OpenShopApplyOrderRequestDto
dto
)
{
OpenShopApplyOrderExample
example
=
new
OpenShopApplyOrderExample
();
OpenShopApplyOrderExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria
::
andUserIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserIdList
(),
criteria
::
andUserIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getState
(),
criteria
::
andStateEqualTo
);
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
example
.
setOrderByClause
(
"create_time desc"
);
return
openShopApplyOrderMapper
.
selectByExample
(
example
);
}
@Override
public
boolean
updateState
(
String
orderId
,
int
state
)
{
OpenShopApplyOrderExample
example
=
new
OpenShopApplyOrderExample
();
OpenShopApplyOrderExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andOpenShopApplyOrderIdEqualTo
(
orderId
);
OpenShopApplyOrder
openShopApplyOrder
=
new
OpenShopApplyOrder
();
openShopApplyOrder
.
setState
(
state
);
openShopApplyOrder
.
setUpdateTime
(
new
Date
());
return
openShopApplyOrderMapper
.
updateByExampleSelective
(
openShopApplyOrder
,
example
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/openShop/OpenShopCostRecordDaoImpl.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.impl.openShop
;
import
com.wwdz.ch.db.dao.openShop.OpenShopCostRecordDao
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecord
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample
;
import
com.wwdz.ch.db.mapper.openShop.OpenShopCostRecordMapper
;
import
com.xxdxxs.db.component.JdbcHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
OpenShopCostRecordDaoImpl
implements
OpenShopCostRecordDao
{
@Autowired
OpenShopCostRecordMapper
openShopCostRecordMapper
;
@Override
public
boolean
insert
(
OpenShopCostRecord
openShopCostRecord
)
{
return
openShopCostRecordMapper
.
insert
(
openShopCostRecord
)
>
0
;
}
@Override
public
boolean
update
(
OpenShopCostRecord
openShopCostRecord
)
{
OpenShopCostRecordExample
example
=
new
OpenShopCostRecordExample
();
OpenShopCostRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
openShopCostRecord
.
getOpenShopCostOrderId
(),
criteria
::
andOpenShopCostOrderIdEqualTo
);
JdbcHelper
.
ifPresent
(
openShopCostRecord
.
getUserId
(),
criteria
::
andUserIdEqualTo
);
return
openShopCostRecordMapper
.
updateByExampleSelective
(
openShopCostRecord
,
example
)
>
0
;
}
@Override
public
OpenShopCostRecord
findByOrderId
(
String
orderId
)
{
OpenShopCostRecordExample
example
=
new
OpenShopCostRecordExample
();
OpenShopCostRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andOpenShopCostOrderIdEqualTo
(
orderId
);
return
openShopCostRecordMapper
.
selectOneByExample
(
example
);
}
@Override
public
boolean
checkValidRecord
(
long
userId
)
{
OpenShopCostRecordExample
example
=
new
OpenShopCostRecordExample
();
OpenShopCostRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
userId
);
criteria
.
andIsValidEqualTo
(
true
);
//开带你飞截止有效时间必须大于当前时间
criteria
.
andEndValidTimeGreaterThan
(
new
Date
());
criteria
.
andTransactionIdIsNotNull
();
return
openShopCostRecordMapper
.
countByExample
(
example
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.mapper.openShop
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
GuaranteeMoneyRecordMapper
{
long
countByExample
(
GuaranteeMoneyRecordExample
example
);
int
deleteByExample
(
GuaranteeMoneyRecordExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
GuaranteeMoneyRecord
record
);
int
insertSelective
(
GuaranteeMoneyRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GuaranteeMoneyRecord
selectOneByExample
(
GuaranteeMoneyRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GuaranteeMoneyRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
GuaranteeMoneyRecordExample
example
,
@Param
(
"selective"
)
GuaranteeMoneyRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
GuaranteeMoneyRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
GuaranteeMoneyRecordExample
example
,
@Param
(
"selective"
)
GuaranteeMoneyRecord
.
Column
...
selective
);
List
<
GuaranteeMoneyRecord
>
selectByExample
(
GuaranteeMoneyRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guarantee_money_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
GuaranteeMoneyRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
GuaranteeMoneyRecord
.
Column
...
selective
);
GuaranteeMoneyRecord
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
GuaranteeMoneyRecord
record
,
@Param
(
"example"
)
GuaranteeMoneyRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
GuaranteeMoneyRecord
record
,
@Param
(
"example"
)
GuaranteeMoneyRecordExample
example
);
int
updateByPrimaryKeySelective
(
GuaranteeMoneyRecord
record
);
int
updateByPrimaryKey
(
GuaranteeMoneyRecord
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.mapper.openShop
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
OpenShopApplyOrderMapper
{
long
countByExample
(
OpenShopApplyOrderExample
example
);
int
deleteByExample
(
OpenShopApplyOrderExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
OpenShopApplyOrder
record
);
int
insertSelective
(
OpenShopApplyOrder
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopApplyOrder
selectOneByExample
(
OpenShopApplyOrderExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopApplyOrder
selectOneByExampleSelective
(
@Param
(
"example"
)
OpenShopApplyOrderExample
example
,
@Param
(
"selective"
)
OpenShopApplyOrder
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
OpenShopApplyOrder
>
selectByExampleSelective
(
@Param
(
"example"
)
OpenShopApplyOrderExample
example
,
@Param
(
"selective"
)
OpenShopApplyOrder
.
Column
...
selective
);
List
<
OpenShopApplyOrder
>
selectByExample
(
OpenShopApplyOrderExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_apply_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopApplyOrder
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
OpenShopApplyOrder
.
Column
...
selective
);
OpenShopApplyOrder
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
OpenShopApplyOrder
record
,
@Param
(
"example"
)
OpenShopApplyOrderExample
example
);
int
updateByExample
(
@Param
(
"record"
)
OpenShopApplyOrder
record
,
@Param
(
"example"
)
OpenShopApplyOrderExample
example
);
int
updateByPrimaryKeySelective
(
OpenShopApplyOrder
record
);
int
updateByPrimaryKey
(
OpenShopApplyOrder
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.db.mapper.openShop
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecord
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
OpenShopCostRecordMapper
{
long
countByExample
(
OpenShopCostRecordExample
example
);
int
deleteByExample
(
OpenShopCostRecordExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
OpenShopCostRecord
record
);
int
insertSelective
(
OpenShopCostRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopCostRecord
selectOneByExample
(
OpenShopCostRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopCostRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
OpenShopCostRecordExample
example
,
@Param
(
"selective"
)
OpenShopCostRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
OpenShopCostRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
OpenShopCostRecordExample
example
,
@Param
(
"selective"
)
OpenShopCostRecord
.
Column
...
selective
);
List
<
OpenShopCostRecord
>
selectByExample
(
OpenShopCostRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table open_shop_cost_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
OpenShopCostRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
OpenShopCostRecord
.
Column
...
selective
);
OpenShopCostRecord
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
OpenShopCostRecord
record
,
@Param
(
"example"
)
OpenShopCostRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
OpenShopCostRecord
record
,
@Param
(
"example"
)
OpenShopCostRecordExample
example
);
int
updateByPrimaryKeySelective
(
OpenShopCostRecord
record
);
int
updateByPrimaryKey
(
OpenShopCostRecord
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
View file @
e290676d
...
@@ -6,10 +6,13 @@
...
@@ -6,10 +6,13 @@
<result
column=
"collector_id"
jdbcType=
"BIGINT"
property=
"collectorId"
/>
<result
column=
"collector_id"
jdbcType=
"BIGINT"
property=
"collectorId"
/>
<result
column=
"channel_cost_rebate"
jdbcType=
"DECIMAL"
property=
"channelCostRebate"
/>
<result
column=
"channel_cost_rebate"
jdbcType=
"DECIMAL"
property=
"channelCostRebate"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"end_valid_time"
jdbcType=
"TIMESTAMP"
property=
"endValidTime"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
<result
column=
"delivery_auth"
jdbcType=
"INTEGER"
property=
"deliveryAuth"
/>
<result
column=
"delivery_auth"
jdbcType=
"INTEGER"
property=
"deliveryAuth"
/>
<result
column=
"is_show"
jdbcType=
"BIT"
property=
"isShow"
/>
<result
column=
"is_show"
jdbcType=
"BIT"
property=
"isShow"
/>
<result
column=
"is_upload_limit"
jdbcType=
"BIT"
property=
"isUploadLimit"
/>
<result
column=
"is_upload_limit"
jdbcType=
"BIT"
property=
"isUploadLimit"
/>
<result
column=
"id_card_front_image"
jdbcType=
"VARCHAR"
property=
"idCardFrontImage"
/>
<result
column=
"id_card_back_image"
jdbcType=
"VARCHAR"
property=
"idCardBackImage"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -70,8 +73,8 @@
...
@@ -70,8 +73,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, collector_id, channel_cost_rebate, create_time,
is_valid, delivery_auth, is_show
,
id, collector_id, channel_cost_rebate, create_time,
end_valid_time, is_valid, delivery_auth
,
is_
upload_limit
is_
show, is_upload_limit, id_card_front_image, id_card_back_image
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -106,8 +109,8 @@
...
@@ -106,8 +109,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time,
is_valid, delivery_auth, is_show
,
id, collector_id, channel_cost_rebate, create_time,
end_valid_time, is_valid, delivery_auth
,
is_
upload_limit
is_
show, is_upload_limit, id_card_front_image, id_card_back_image
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
@@ -138,8 +141,8 @@
...
@@ -138,8 +141,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time,
is_valid, delivery_auth, is_show
,
id, collector_id, channel_cost_rebate, create_time,
end_valid_time, is_valid, delivery_auth
,
is_
upload_limit
is_
show, is_upload_limit, id_card_front_image, id_card_back_image
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
@@ -160,11 +163,13 @@
...
@@ -160,11 +163,13 @@
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into collector_white_list (collector_id, channel_cost_rebate, create_time,
insert into collector_white_list (collector_id, channel_cost_rebate, create_time,
is_valid, delivery_auth, is_show,
end_valid_time, is_valid, delivery_auth,
is_upload_limit)
is_show, is_upload_limit, id_card_front_image,
id_card_back_image)
values (#{collectorId,jdbcType=BIGINT}, #{channelCostRebate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
values (#{collectorId,jdbcType=BIGINT}, #{channelCostRebate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
#{isValid,jdbcType=BIT}, #{deliveryAuth,jdbcType=INTEGER}, #{isShow,jdbcType=BIT},
#{endValidTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT}, #{deliveryAuth,jdbcType=INTEGER},
#{isUploadLimit,jdbcType=BIT})
#{isShow,jdbcType=BIT}, #{isUploadLimit,jdbcType=BIT}, #{idCardFrontImage,jdbcType=VARCHAR},
#{idCardBackImage,jdbcType=VARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteList"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteList"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
@@ -181,6 +186,9 @@
...
@@ -181,6 +186,9 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
</if>
</if>
<if
test=
"endValidTime != null"
>
end_valid_time,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -193,6 +201,12 @@
...
@@ -193,6 +201,12 @@
<if
test=
"isUploadLimit != null"
>
<if
test=
"isUploadLimit != null"
>
is_upload_limit,
is_upload_limit,
</if>
</if>
<if
test=
"idCardFrontImage != null"
>
id_card_front_image,
</if>
<if
test=
"idCardBackImage != null"
>
id_card_back_image,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"collectorId != null"
>
<if
test=
"collectorId != null"
>
...
@@ -204,6 +218,9 @@
...
@@ -204,6 +218,9 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"endValidTime != null"
>
#{endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
#{isValid,jdbcType=BIT},
</if>
</if>
...
@@ -216,6 +233,12 @@
...
@@ -216,6 +233,12 @@
<if
test=
"isUploadLimit != null"
>
<if
test=
"isUploadLimit != null"
>
#{isUploadLimit,jdbcType=BIT},
#{isUploadLimit,jdbcType=BIT},
</if>
</if>
<if
test=
"idCardFrontImage != null"
>
#{idCardFrontImage,jdbcType=VARCHAR},
</if>
<if
test=
"idCardBackImage != null"
>
#{idCardBackImage,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultType=
"java.lang.Long"
>
...
@@ -239,6 +262,9 @@
...
@@ -239,6 +262,9 @@
<if
test=
"record.createTime != null"
>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.endValidTime != null"
>
end_valid_time = #{record.endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</if>
...
@@ -251,6 +277,12 @@
...
@@ -251,6 +277,12 @@
<if
test=
"record.isUploadLimit != null"
>
<if
test=
"record.isUploadLimit != null"
>
is_upload_limit = #{record.isUploadLimit,jdbcType=BIT},
is_upload_limit = #{record.isUploadLimit,jdbcType=BIT},
</if>
</if>
<if
test=
"record.idCardFrontImage != null"
>
id_card_front_image = #{record.idCardFrontImage,jdbcType=VARCHAR},
</if>
<if
test=
"record.idCardBackImage != null"
>
id_card_back_image = #{record.idCardBackImage,jdbcType=VARCHAR},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -262,10 +294,13 @@
...
@@ -262,10 +294,13 @@
collector_id = #{record.collectorId,jdbcType=BIGINT},
collector_id = #{record.collectorId,jdbcType=BIGINT},
channel_cost_rebate = #{record.channelCostRebate,jdbcType=DECIMAL},
channel_cost_rebate = #{record.channelCostRebate,jdbcType=DECIMAL},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
end_valid_time = #{record.endValidTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT},
is_valid = #{record.isValid,jdbcType=BIT},
delivery_auth = #{record.deliveryAuth,jdbcType=INTEGER},
delivery_auth = #{record.deliveryAuth,jdbcType=INTEGER},
is_show = #{record.isShow,jdbcType=BIT},
is_show = #{record.isShow,jdbcType=BIT},
is_upload_limit = #{record.isUploadLimit,jdbcType=BIT}
is_upload_limit = #{record.isUploadLimit,jdbcType=BIT},
id_card_front_image = #{record.idCardFrontImage,jdbcType=VARCHAR},
id_card_back_image = #{record.idCardBackImage,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -282,6 +317,9 @@
...
@@ -282,6 +317,9 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"endValidTime != null"
>
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
is_valid = #{isValid,jdbcType=BIT},
</if>
</if>
...
@@ -294,6 +332,12 @@
...
@@ -294,6 +332,12 @@
<if
test=
"isUploadLimit != null"
>
<if
test=
"isUploadLimit != null"
>
is_upload_limit = #{isUploadLimit,jdbcType=BIT},
is_upload_limit = #{isUploadLimit,jdbcType=BIT},
</if>
</if>
<if
test=
"idCardFrontImage != null"
>
id_card_front_image = #{idCardFrontImage,jdbcType=VARCHAR},
</if>
<if
test=
"idCardBackImage != null"
>
id_card_back_image = #{idCardBackImage,jdbcType=VARCHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -302,10 +346,13 @@
...
@@ -302,10 +346,13 @@
set collector_id = #{collectorId,jdbcType=BIGINT},
set collector_id = #{collectorId,jdbcType=BIGINT},
channel_cost_rebate = #{channelCostRebate,jdbcType=DECIMAL},
channel_cost_rebate = #{channelCostRebate,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT},
is_valid = #{isValid,jdbcType=BIT},
delivery_auth = #{deliveryAuth,jdbcType=INTEGER},
delivery_auth = #{deliveryAuth,jdbcType=INTEGER},
is_show = #{isShow,jdbcType=BIT},
is_show = #{isShow,jdbcType=BIT},
is_upload_limit = #{isUploadLimit,jdbcType=BIT}
is_upload_limit = #{isUploadLimit,jdbcType=BIT},
id_card_front_image = #{idCardFrontImage,jdbcType=VARCHAR},
id_card_back_image = #{idCardBackImage,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
...
@@ -341,8 +388,8 @@
...
@@ -341,8 +388,8 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time,
is_valid, delivery_auth, is_show
,
id, collector_id, channel_cost_rebate, create_time,
end_valid_time, is_valid, delivery_auth
,
is_
upload_limit
is_
show, is_upload_limit, id_card_front_image, id_card_back_image
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/GuaranteeMoneyRecordMapper.xml
0 → 100644
View file @
e290676d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.wwdz.ch.db.mapper.openShop.GuaranteeMoneyRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"guarantee_money_order_id"
jdbcType=
"VARCHAR"
property=
"guaranteeMoneyOrderId"
/>
<result
column=
"prepay_id"
jdbcType=
"VARCHAR"
property=
"prepayId"
/>
<result
column=
"transaction_id"
jdbcType=
"VARCHAR"
property=
"transactionId"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"user_open_id"
jdbcType=
"VARCHAR"
property=
"userOpenId"
/>
<result
column=
"amount"
jdbcType=
"BIGINT"
property=
"amount"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"pay_time"
jdbcType=
"TIMESTAMP"
property=
"payTime"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, guarantee_money_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, is_valid
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, guarantee_money_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, is_valid
</otherwise>
</choose>
from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from guarantee_money_record
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, guarantee_money_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, is_valid
</otherwise>
</choose>
from guarantee_money_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from guarantee_money_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample"
>
delete from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into guarantee_money_record (guarantee_money_order_id, prepay_id,
transaction_id, user_id, user_open_id,
amount, create_time, update_time,
pay_time, is_valid)
values (#{guaranteeMoneyOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{userOpenId,jdbcType=VARCHAR},
#{amount,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{payTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into guarantee_money_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"guaranteeMoneyOrderId != null"
>
guarantee_money_order_id,
</if>
<if
test=
"prepayId != null"
>
prepay_id,
</if>
<if
test=
"transactionId != null"
>
transaction_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"userOpenId != null"
>
user_open_id,
</if>
<if
test=
"amount != null"
>
amount,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"payTime != null"
>
pay_time,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"guaranteeMoneyOrderId != null"
>
#{guaranteeMoneyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
#{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
#{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
#{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
#{amount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"payTime != null"
>
#{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample"
resultType=
"java.lang.Long"
>
select count(*) from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update guarantee_money_record
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.guaranteeMoneyOrderId != null"
>
guarantee_money_order_id = #{record.guaranteeMoneyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.prepayId != null"
>
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"record.transactionId != null"
>
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.userOpenId != null"
>
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"record.amount != null"
>
amount = #{record.amount,jdbcType=BIGINT},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.payTime != null"
>
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update guarantee_money_record
set id = #{record.id,jdbcType=BIGINT},
guarantee_money_order_id = #{record.guaranteeMoneyOrderId,jdbcType=VARCHAR},
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
amount = #{record.amount,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord"
>
update guarantee_money_record
<set>
<if
test=
"guaranteeMoneyOrderId != null"
>
guarantee_money_order_id = #{guaranteeMoneyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
prepay_id = #{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
transaction_id = #{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
user_open_id = #{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
amount = #{amount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"payTime != null"
>
pay_time = #{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord"
>
update guarantee_money_record
set guarantee_money_order_id = #{guaranteeMoneyOrderId,jdbcType=VARCHAR},
prepay_id = #{prepayId,jdbcType=VARCHAR},
transaction_id = #{transactionId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
user_open_id = #{userOpenId,jdbcType=VARCHAR},
amount = #{amount,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
pay_time = #{payTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecordExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, guarantee_money_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, is_valid
</otherwise>
</choose>
from guarantee_money_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/OpenShopApplyOrderMapper.xml
0 → 100644
View file @
e290676d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.wwdz.ch.db.mapper.openShop.OpenShopApplyOrderMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"open_shop_apply_order_id"
jdbcType=
"VARCHAR"
property=
"openShopApplyOrderId"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"user_open_id"
jdbcType=
"VARCHAR"
property=
"userOpenId"
/>
<result
column=
"open_shop_amount"
jdbcType=
"BIGINT"
property=
"openShopAmount"
/>
<result
column=
"guarantee_amount"
jdbcType=
"BIGINT"
property=
"guaranteeAmount"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, open_shop_apply_order_id, user_id, user_open_id, open_shop_amount, guarantee_amount,
create_time, update_time, `state`
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_apply_order_id, user_id, user_open_id, open_shop_amount, guarantee_amount,
create_time, update_time, `state`
</otherwise>
</choose>
from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from open_shop_apply_order
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_apply_order_id, user_id, user_open_id, open_shop_amount, guarantee_amount,
create_time, update_time, `state`
</otherwise>
</choose>
from open_shop_apply_order
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from open_shop_apply_order
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample"
>
delete from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into open_shop_apply_order (open_shop_apply_order_id, user_id, user_open_id,
open_shop_amount, guarantee_amount, create_time,
update_time, `state`)
values (#{openShopApplyOrderId,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{userOpenId,jdbcType=VARCHAR},
#{openShopAmount,jdbcType=BIGINT}, #{guaranteeAmount,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into open_shop_apply_order
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"openShopApplyOrderId != null"
>
open_shop_apply_order_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"userOpenId != null"
>
user_open_id,
</if>
<if
test=
"openShopAmount != null"
>
open_shop_amount,
</if>
<if
test=
"guaranteeAmount != null"
>
guarantee_amount,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"state != null"
>
`state`,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"openShopApplyOrderId != null"
>
#{openShopApplyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
#{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"openShopAmount != null"
>
#{openShopAmount,jdbcType=BIGINT},
</if>
<if
test=
"guaranteeAmount != null"
>
#{guaranteeAmount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
#{state,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample"
resultType=
"java.lang.Long"
>
select count(*) from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update open_shop_apply_order
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.openShopApplyOrderId != null"
>
open_shop_apply_order_id = #{record.openShopApplyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.userOpenId != null"
>
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"record.openShopAmount != null"
>
open_shop_amount = #{record.openShopAmount,jdbcType=BIGINT},
</if>
<if
test=
"record.guaranteeAmount != null"
>
guarantee_amount = #{record.guaranteeAmount,jdbcType=BIGINT},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.state != null"
>
`state` = #{record.state,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update open_shop_apply_order
set id = #{record.id,jdbcType=INTEGER},
open_shop_apply_order_id = #{record.openShopApplyOrderId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
open_shop_amount = #{record.openShopAmount,jdbcType=BIGINT},
guarantee_amount = #{record.guaranteeAmount,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder"
>
update open_shop_apply_order
<set>
<if
test=
"openShopApplyOrderId != null"
>
open_shop_apply_order_id = #{openShopApplyOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
user_open_id = #{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"openShopAmount != null"
>
open_shop_amount = #{openShopAmount,jdbcType=BIGINT},
</if>
<if
test=
"guaranteeAmount != null"
>
guarantee_amount = #{guaranteeAmount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"state != null"
>
`state` = #{state,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder"
>
update open_shop_apply_order
set open_shop_apply_order_id = #{openShopApplyOrderId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
user_open_id = #{userOpenId,jdbcType=VARCHAR},
open_shop_amount = #{openShopAmount,jdbcType=BIGINT},
guarantee_amount = #{guaranteeAmount,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopApplyOrderExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_apply_order_id, user_id, user_open_id, open_shop_amount, guarantee_amount,
create_time, update_time, `state`
</otherwise>
</choose>
from open_shop_apply_order
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/openShop/OpenShopCostRecordMapper.xml
0 → 100644
View file @
e290676d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.wwdz.ch.db.mapper.openShop.OpenShopCostRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecord"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"open_shop_cost_order_id"
jdbcType=
"VARCHAR"
property=
"openShopCostOrderId"
/>
<result
column=
"prepay_id"
jdbcType=
"VARCHAR"
property=
"prepayId"
/>
<result
column=
"transaction_id"
jdbcType=
"VARCHAR"
property=
"transactionId"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"user_open_id"
jdbcType=
"VARCHAR"
property=
"userOpenId"
/>
<result
column=
"amount"
jdbcType=
"BIGINT"
property=
"amount"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"pay_time"
jdbcType=
"TIMESTAMP"
property=
"payTime"
/>
<result
column=
"start_valid_time"
jdbcType=
"TIMESTAMP"
property=
"startValidTime"
/>
<result
column=
"end_valid_time"
jdbcType=
"TIMESTAMP"
property=
"endValidTime"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, open_shop_cost_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, start_valid_time, end_valid_time, is_valid
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_cost_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, start_valid_time, end_valid_time, is_valid
</otherwise>
</choose>
from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from open_shop_cost_record
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_cost_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, start_valid_time, end_valid_time, is_valid
</otherwise>
</choose>
from open_shop_cost_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from open_shop_cost_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample"
>
delete from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into open_shop_cost_record (open_shop_cost_order_id, prepay_id, transaction_id,
user_id, user_open_id, amount,
create_time, update_time, pay_time,
start_valid_time, end_valid_time, is_valid
)
values (#{openShopCostOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
#{userId,jdbcType=BIGINT}, #{userOpenId,jdbcType=VARCHAR}, #{amount,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP},
#{startValidTime,jdbcType=TIMESTAMP}, #{endValidTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into open_shop_cost_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"openShopCostOrderId != null"
>
open_shop_cost_order_id,
</if>
<if
test=
"prepayId != null"
>
prepay_id,
</if>
<if
test=
"transactionId != null"
>
transaction_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"userOpenId != null"
>
user_open_id,
</if>
<if
test=
"amount != null"
>
amount,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"payTime != null"
>
pay_time,
</if>
<if
test=
"startValidTime != null"
>
start_valid_time,
</if>
<if
test=
"endValidTime != null"
>
end_valid_time,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"openShopCostOrderId != null"
>
#{openShopCostOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
#{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
#{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
#{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
#{amount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"payTime != null"
>
#{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"startValidTime != null"
>
#{startValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"endValidTime != null"
>
#{endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample"
resultType=
"java.lang.Long"
>
select count(*) from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update open_shop_cost_record
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.openShopCostOrderId != null"
>
open_shop_cost_order_id = #{record.openShopCostOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.prepayId != null"
>
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"record.transactionId != null"
>
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if
test=
"record.userOpenId != null"
>
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"record.amount != null"
>
amount = #{record.amount,jdbcType=BIGINT},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.payTime != null"
>
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.startValidTime != null"
>
start_valid_time = #{record.startValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.endValidTime != null"
>
end_valid_time = #{record.endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update open_shop_cost_record
set id = #{record.id,jdbcType=BIGINT},
open_shop_cost_order_id = #{record.openShopCostOrderId,jdbcType=VARCHAR},
prepay_id = #{record.prepayId,jdbcType=VARCHAR},
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
user_open_id = #{record.userOpenId,jdbcType=VARCHAR},
amount = #{record.amount,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
start_valid_time = #{record.startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{record.endValidTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecord"
>
update open_shop_cost_record
<set>
<if
test=
"openShopCostOrderId != null"
>
open_shop_cost_order_id = #{openShopCostOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"prepayId != null"
>
prepay_id = #{prepayId,jdbcType=VARCHAR},
</if>
<if
test=
"transactionId != null"
>
transaction_id = #{transactionId,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=BIGINT},
</if>
<if
test=
"userOpenId != null"
>
user_open_id = #{userOpenId,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
amount = #{amount,jdbcType=BIGINT},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"payTime != null"
>
pay_time = #{payTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"startValidTime != null"
>
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"endValidTime != null"
>
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecord"
>
update open_shop_cost_record
set open_shop_cost_order_id = #{openShopCostOrderId,jdbcType=VARCHAR},
prepay_id = #{prepayId,jdbcType=VARCHAR},
transaction_id = #{transactionId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
user_open_id = #{userOpenId,jdbcType=VARCHAR},
amount = #{amount,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
pay_time = #{payTime,jdbcType=TIMESTAMP},
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.openShop.OpenShopCostRecordExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, open_shop_cost_order_id, prepay_id, transaction_id, user_id, user_open_id, amount,
create_time, update_time, pay_time, start_valid_time, end_valid_time, is_valid
</otherwise>
</choose>
from open_shop_cost_record
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
e290676d
...
@@ -63,16 +63,16 @@
...
@@ -63,16 +63,16 @@
<!--生成Model类存放位置-->
<!--生成Model类存放位置-->
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain"
targetProject=
"ch-dao/src/main/java"
>
<javaModelGenerator
targetPackage=
"com.wwdz.ch.db.domain
.openShop
"
targetProject=
"ch-dao/src/main/java"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
<property
name=
"enableSubPackages"
value=
"true"
/>
<property
name=
"trimStrings"
value=
"true"
/>
<property
name=
"trimStrings"
value=
"true"
/>
</javaModelGenerator>
</javaModelGenerator>
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper"
targetProject=
"ch-dao/src/main/resources"
/>
<sqlMapGenerator
targetPackage=
"com.wwdz.ch.db.mapper
.openShop
"
targetProject=
"ch-dao/src/main/resources"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper"
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper
.openShop
"
targetProject=
"ch-dao/src/main/java"
/>
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
collector_white_list
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
guarantee_money_record
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/WxPayCallbackController.java
View file @
e290676d
...
@@ -361,6 +361,7 @@ public class WxPayCallbackController {
...
@@ -361,6 +361,7 @@ public class WxPayCallbackController {
String
lastOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getSellerId
());
String
lastOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getSellerId
());
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
lastOpenId
))
{
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
lastOpenId
))
{
DistributionOrderNoticeMsg
distributionOrderNoticeMsg
=
new
DistributionOrderNoticeMsg
();
DistributionOrderNoticeMsg
distributionOrderNoticeMsg
=
new
DistributionOrderNoticeMsg
();
distributionOrderNoticeMsg
.
setDistributionOrderId
(
distributionOrderId
);
distributionOrderNoticeMsg
.
setOpenId
(
lastOpenId
);
distributionOrderNoticeMsg
.
setOpenId
(
lastOpenId
);
distributionOrderNoticeMsg
.
setItemId
(
supplierItem
.
getId
());
distributionOrderNoticeMsg
.
setItemId
(
supplierItem
.
getId
());
distributionOrderNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
distributionOrderNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
e290676d
...
@@ -51,7 +51,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -51,7 +51,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/exchange/findExchangeItem"
,
"/wx/specialPerformance/findInfos"
,
"/wx/specialPerformance/findItemList"
,
"/wx/exchange/findExchangeItem"
,
"/wx/specialPerformance/findInfos"
,
"/wx/specialPerformance/findItemList"
,
"/wx/groupPurchase/findList"
,
"/wx/groupPurchase/findItemDetail"
,
"/wx/exchangeApplyOrder/handleApplyOrder"
,
"/wx/supplierItem/findDiscountList"
"/wx/groupPurchase/findList"
,
"/wx/groupPurchase/findItemDetail"
,
"/wx/exchangeApplyOrder/handleApplyOrder"
,
"/wx/supplierItem/findDiscountList"
//下列路径上线注释
//下列路径上线注释
,
"/wx/itemTagOperate/**"
,
"/wx/itemTagOperate/**"
,
"/wx/openShop/**"
/* ,"/wx/specialPerformance/**"
/* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
"/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**"
"/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**"
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
e290676d
...
@@ -848,6 +848,8 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -848,6 +848,8 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
signedNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
signedNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
signedNoticeMsg
.
setSignedTime
(
new
Date
());
signedNoticeMsg
.
setSignedTime
(
new
Date
());
signedNoticeMsg
.
setWaybill
(
distributionOrder
.
getWaybill
());
signedNoticeMsg
.
setBuyerName
(
distributionOrder
.
getReceiverName
());
//发送给卖家
//发送给卖家
String
sellerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getSellerId
());
String
sellerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getSellerId
());
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
sellerOpenId
))
{
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
sellerOpenId
))
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
View file @
e290676d
...
@@ -4,9 +4,11 @@ import com.github.pagehelper.PageInfo;
...
@@ -4,9 +4,11 @@ import com.github.pagehelper.PageInfo;
import
com.wwdz.ch.core.api.WxAppletApi
;
import
com.wwdz.ch.core.api.WxAppletApi
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.ExchangeApplyOrderEnum
;
import
com.wwdz.ch.core.consts.ExchangeApplyOrderEnum
;
import
com.wwdz.ch.core.entity.ExchangeNoticeMsg
;
import
com.wwdz.ch.core.entity.SupplierItemVo
;
import
com.wwdz.ch.core.entity.SupplierItemVo
;
import
com.wwdz.ch.core.entity.exchange.ExchangeApplyOrderVo
;
import
com.wwdz.ch.core.entity.exchange.ExchangeApplyOrderVo
;
import
com.wwdz.ch.core.notify.AliSmsSender
;
import
com.wwdz.ch.core.notify.AliSmsSender
;
import
com.wwdz.ch.core.service.SendMsgService
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.CacheUtil
;
import
com.wwdz.ch.core.util.CacheUtil
;
...
@@ -69,6 +71,9 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
...
@@ -69,6 +71,9 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
@Autowired
@Autowired
WxAppletApi
wxAppletApi
;
WxAppletApi
wxAppletApi
;
@Autowired
SendMsgService
sendMsgService
;
@Transactional
@Transactional
@Override
@Override
public
Result
applyExchange
(
ExchangeApplyOrderRequestDto
dto
)
{
public
Result
applyExchange
(
ExchangeApplyOrderRequestDto
dto
)
{
...
@@ -123,11 +128,21 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
...
@@ -123,11 +128,21 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
try
{
try
{
String
url
=
wxAppletApi
.
getUrlLink
(
"/pages/saleExchangeApplyOrder/index"
,
null
);
String
url
=
wxAppletApi
.
getUrlLink
(
"/pages/saleExchangeApplyOrder/index"
,
null
);
String
msg
=
"您有一个换货申请待审批,"
+
"请前往"
+
url
+
"查看"
;
String
msg
=
"您有一个换货申请待审批,"
+
"请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
dto
.
getTargetUserId
(),
msg
);
String
userOpenId
=
sendMsgService
.
getOpenIdByUserId
(
dto
.
getTargetUserId
());
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
userOpenId
))
{
ExchangeNoticeMsg
exchangeNoticeMsg
=
new
ExchangeNoticeMsg
();
exchangeNoticeMsg
.
setItemName
(
targetSupplierItem
.
getName
());
exchangeNoticeMsg
.
setApplicant
(
cacheUtil
.
getAppletUserById
(
dto
.
getUserId
()).
getNickname
());
Result
result
=
sendMsgService
.
exchangeNoticeMsg
(
exchangeNoticeMsg
);
if
(!
result
.
getSuccess
())
{
aliSmsSender
.
sendSms
(
dto
.
getTargetUserId
(),
msg
);
}
}
else
{
aliSmsSender
.
sendSms
(
dto
.
getTargetUserId
(),
msg
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
">>>>>>>>> 用户id:{}, 发送换货申请待审批通知短信失败 <<<<<<<<<"
,
dto
.
getTargetUserId
());
logger
.
info
(
">>>>>>>>> 用户id:{}, 发送换货申请待审批通知短信失败 <<<<<<<<<"
,
dto
.
getTargetUserId
());
}
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"exchangeApplyOrderId"
,
exchangeApplyOrderId
);
map
.
put
(
"exchangeApplyOrderId"
,
exchangeApplyOrderId
);
return
Result
.
success
(
map
);
return
Result
.
success
(
map
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/IdentifyOrderServiceImpl.java
View file @
e290676d
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.wx.impl.distribution;
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.wx.impl.distribution;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.consts.LogisticsEnum
;
import
com.wwdz.ch.core.entity.DeliveryNoticeMsg
;
import
com.wwdz.ch.core.entity.DeliveryNoticeMsg
;
import
com.wwdz.ch.core.service.SendMsgService
;
import
com.wwdz.ch.core.service.SendMsgService
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
...
@@ -73,6 +74,7 @@ public class IdentifyOrderServiceImpl implements IdentifyOrderService {
...
@@ -73,6 +74,7 @@ public class IdentifyOrderServiceImpl implements IdentifyOrderService {
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
deliveryNoticeMsg
.
setDeliveryTime
(
now
);
deliveryNoticeMsg
.
setDeliveryTime
(
now
);
deliveryNoticeMsg
.
setLogisticsName
(
LogisticsEnum
.
getNameByCode
(
dto
.
getLogisticsCode
()));
//发送给买家
//发送给买家
String
buyerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getBuyerId
());
String
buyerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getBuyerId
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/OpenShopServiceImpl.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.wx.impl.openShop
;
import
com.wwdz.ch.core.api.wxpay.WxPayServiceApi
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.CommonEnum
;
import
com.wwdz.ch.core.consts.OpenShopApplyOrderEnum
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.IdUtils
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.dao.CollectorWhiteListDao
;
import
com.wwdz.ch.db.dao.FollowFansRecordDao
;
import
com.wwdz.ch.db.dao.distribution.SupplierItemDao
;
import
com.wwdz.ch.db.dao.distribution.UserBankCardDao
;
import
com.wwdz.ch.db.dao.openShop.GuaranteeMoneyRecordDao
;
import
com.wwdz.ch.db.dao.openShop.OpenShopApplyOrderDao
;
import
com.wwdz.ch.db.dao.openShop.OpenShopCostRecordDao
;
import
com.wwdz.ch.db.domain.CollectorWhiteList
;
import
com.wwdz.ch.db.domain.distribution.UserBankCard
;
import
com.wwdz.ch.db.domain.openShop.GuaranteeMoneyRecord
;
import
com.wwdz.ch.db.domain.openShop.OpenShopApplyOrder
;
import
com.wwdz.ch.db.domain.openShop.OpenShopCostRecord
;
import
com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.GuaranteeMoneyRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopApplyOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopInfoRequestDto
;
import
com.wwdz.ch.wx.impl.AiAssistantServiceImpl
;
import
com.wwdz.ch.wx.service.openShop.OpenShopService
;
import
com.wwdz.mall.common.util.CommonUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
@Service
public
class
OpenShopServiceImpl
implements
OpenShopService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AiAssistantServiceImpl
.
class
);
@Autowired
OpenShopApplyOrderDao
openShopApplyOrderDao
;
@Autowired
CollectorWhiteListDao
collectorWhiteListDao
;
@Autowired
FollowFansRecordDao
followFansRecordDao
;
@Autowired
SupplierItemDao
supplierItemDao
;
@Autowired
WxPayServiceApi
wxPayServiceApi
;
@Autowired
OpenShopCostRecordDao
openShopCostRecordDao
;
@Autowired
GuaranteeMoneyRecordDao
guaranteeMoneyRecordDao
;
@Autowired
UserBankCardDao
userBankCardDao
;
@Override
public
Result
checkAbleToOpenShop
(
OpenShopInfoRequestDto
dto
)
{
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
long
userId
=
dto
.
getUserId
();
//查询是否粉丝数超过了100
long
fansNum
=
followFansRecordDao
.
countFans
(
userId
);
map
.
put
(
"fansNum"
,
fansNum
);
map
.
put
(
"fansNumAble"
,
fansNum
>=
100
);
//查询发布的商品数是否达到10个
long
itemNum
=
supplierItemDao
.
countByCreatorId
(
userId
);
map
.
put
(
"itemNum"
,
itemNum
);
map
.
put
(
"itemNumAble"
,
itemNum
>=
10
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"检查是否满足开店条件失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
@Transactional
@Override
public
Result
createOpenShopApplyOrder
(
OpenShopInfoRequestDto
dto
)
{
try
{
Date
now
=
new
Date
();
//创建申请单
String
orderId
=
IdUtils
.
getOrderNumber
(
"OA"
);
OpenShopApplyOrder
openShopApplyOrder
=
new
OpenShopApplyOrder
();
openShopApplyOrder
.
setOpenShopApplyOrderId
(
orderId
);
openShopApplyOrder
.
setUserId
(
dto
.
getUserId
());
openShopApplyOrder
.
setUserOpenId
(
dto
.
getUserOpenId
());
openShopApplyOrder
.
setCreateTime
(
now
);
openShopApplyOrder
.
setUpdateTime
(
now
);
openShopApplyOrder
.
setState
(
OpenShopApplyOrderEnum
.
StateEnum
.
PRE_PAY
.
getCode
());
openShopApplyOrderDao
.
insert
(
openShopApplyOrder
);
//新增藏家白名单,但是不生效
CollectorWhiteList
collectorWhiteList
=
new
CollectorWhiteList
();
collectorWhiteList
.
setCollectorId
(
dto
.
getUserId
());
collectorWhiteList
.
setChannelCostRebate
(
new
BigDecimal
(
"1"
));
collectorWhiteList
.
setCreateTime
(
now
);
collectorWhiteList
.
setIsValid
(
false
);
collectorWhiteList
.
setDeliveryAuth
(
0
);
collectorWhiteList
.
setIsShow
(
false
);
collectorWhiteList
.
setIsUploadLimit
(
true
);
collectorWhiteList
.
setIdCardFrontImage
(
dto
.
getIdCardFrontImage
());
collectorWhiteList
.
setIdCardBackImage
(
dto
.
getIdCardBackImage
());
collectorWhiteListDao
.
upsert
(
collectorWhiteList
);
//保存银行卡信息
UserBankCard
userBankCard
=
new
UserBankCard
();
userBankCard
.
setUserId
(
dto
.
getUserId
());
userBankCard
.
setCardId
(
dto
.
getCardId
());
userBankCard
.
setName
(
dto
.
getName
());
userBankCard
.
setBankName
(
dto
.
getBankName
());
userBankCard
.
setCreateTime
(
now
);
userBankCard
.
setState
(
0
);
userBankCardDao
.
insert
(
userBankCard
);
//创建开店费用订单
String
openShopCostOrderId
=
IdUtils
.
getOrderNumber
(
CommConsts
.
OPEN_SHOP_COST_ORDER_PREFIX
);
OpenShopCostRecord
openShopCostRecord
=
new
OpenShopCostRecord
();
openShopCostRecord
.
setOpenShopCostOrderId
(
openShopCostOrderId
);
openShopCostRecord
.
setUserId
(
dto
.
getUserId
());
openShopCostRecord
.
setUserOpenId
(
dto
.
getUserOpenId
());
//月底修改为300
openShopCostRecord
.
setAmount
(
10000L
);
openShopCostRecord
.
setCreateTime
(
now
);
openShopCostRecord
.
setUpdateTime
(
now
);
openShopCostRecord
.
setIsValid
(
false
);
openShopCostRecordDao
.
insert
(
openShopCostRecord
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"openShopCostOrderId"
,
openShopCostOrderId
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"创建开店申请单失败 error : {}"
,
e
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
Result
.
failed
();
}
@Override
public
Result
getPayParam
(
OpenShopApplyOrderRequestDto
dto
)
{
try
{
DistributionOrderRequestDto
prePayDto
=
new
DistributionOrderRequestDto
();
prePayDto
.
setDistributionOrderId
(
dto
.
getOpenShopApplyOrderId
());
String
orderId
=
dto
.
getSystemOrderId
();
long
amount
=
0
;
String
itemName
=
"店铺费用"
;
//开店费用
if
(
dto
.
getCostType
()
==
OpenShopApplyOrderEnum
.
CostTypeEnum
.
OPEN_SHOP_AMOUNT
.
getCode
())
{
OpenShopCostRecord
openShopCostRecord
=
openShopCostRecordDao
.
findByOrderId
(
orderId
);
amount
=
openShopCostRecord
.
getAmount
();
itemName
=
"开店费用"
;
prePayDto
.
setBuyerOpenid
(
openShopCostRecord
.
getUserOpenId
());
}
else
if
(
dto
.
getCostType
()
==
OpenShopApplyOrderEnum
.
CostTypeEnum
.
GUARANTEE_MONEY
.
getCode
())
{
GuaranteeMoneyRecord
guaranteeMoneyRecord
=
guaranteeMoneyRecordDao
.
findByOrderId
(
orderId
);
amount
=
guaranteeMoneyRecord
.
getAmount
();
itemName
=
"开店质保金"
;
prePayDto
.
setBuyerOpenid
(
guaranteeMoneyRecord
.
getUserOpenId
());
}
//限时100元开店费
prePayDto
.
setAmount
(
String
.
valueOf
(
amount
));
prePayDto
.
setItemName
(
itemName
);
Result
prePayResult
=
wxPayServiceApi
.
createPrepareOrder
(
prePayDto
);
if
(!
prePayResult
.
getSuccess
())
{
return
Result
.
failed
(
"预下单失败"
);
}
String
prepayId
=
(
String
)
prePayResult
.
getData
();
Result
result
=
wxPayServiceApi
.
wxAppPayTuneUp
(
prepayId
);
return
result
;
}
catch
(
Exception
e
)
{
logger
.
error
(
"支付参数获取失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
@Override
public
Result
createGuaranteeMoneyOrder
(
GuaranteeMoneyRecordRequestDto
dto
)
{
try
{
if
(
Integer
.
valueOf
(
dto
.
getAmount
())
<
300
)
{
return
Result
.
failed
(
"质保金最低300元"
);
}
Date
now
=
new
Date
();
String
guaranteeMoneyOrderId
=
IdUtils
.
getOrderNumber
(
CommConsts
.
GUARANTEE_MONEY_ORDER_PREFIX
);
GuaranteeMoneyRecord
guaranteeMoneyRecord
=
new
GuaranteeMoneyRecord
();
guaranteeMoneyRecord
.
setGuaranteeMoneyOrderId
(
guaranteeMoneyOrderId
);
guaranteeMoneyRecord
.
setUserId
(
dto
.
getUserId
());
guaranteeMoneyRecord
.
setUserOpenId
(
dto
.
getUserOpenId
());
guaranteeMoneyRecord
.
setAmount
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getAmount
()));
guaranteeMoneyRecord
.
setCreateTime
(
now
);
guaranteeMoneyRecord
.
setUpdateTime
(
now
);
guaranteeMoneyRecord
.
setIsValid
(
false
);
guaranteeMoneyRecordDao
.
insert
(
guaranteeMoneyRecord
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"guaranteeMoneyOrderId"
,
guaranteeMoneyOrderId
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"创建质保金缴纳订单失败 error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/openShop/OpenShopService.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.wx.service.openShop
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.openShop.GuaranteeMoneyRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopApplyOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopInfoRequestDto
;
public
interface
OpenShopService
{
/**
* 检查是否满足开店条件
* @param dto
* @return
*/
Result
checkAbleToOpenShop
(
OpenShopInfoRequestDto
dto
);
/**
* 创建申请开店的订单
* @param dto
* @return
*/
Result
createOpenShopApplyOrder
(
OpenShopInfoRequestDto
dto
);
/**
* 获取支付参数
* 预支付并返回支付所需要的前端参数
* @return
*/
Result
getPayParam
(
OpenShopApplyOrderRequestDto
dto
);
/**
* 创建质保金缴纳订单
* @param dto
* @return
*/
Result
createGuaranteeMoneyOrder
(
GuaranteeMoneyRecordRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/openShop/OpenShopController.java
0 → 100644
View file @
e290676d
package
com.wwdz.ch.wx.web.openShop
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.entity.im.IMChatRequestDto
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.DistributionOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.GuaranteeMoneyRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopApplyOrderRequestDto
;
import
com.wwdz.ch.db.dto.request.openShop.OpenShopInfoRequestDto
;
import
com.wwdz.ch.wx.service.openShop.OpenShopService
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.validation.Validator
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Authorization
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/wx/openShop"
)
public
class
OpenShopController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
OpenShopController
.
class
);
@Autowired
OpenShopService
openShopService
;
@ApiOperation
(
value
=
"检查是否满足开店条件"
)
@PostMapping
(
"/checkAbleToOpenShop"
)
public
Result
checkAbleToOpenShop
(
@RequestBody
OpenShopInfoRequestDto
dto
)
{
logger
.
info
(
"【请求开始】检查是否满足开店条件,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"userId"
,
"用户id"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
openShopService
.
checkAbleToOpenShop
(
dto
);
}
@ApiOperation
(
value
=
"创建申请开店的订单"
)
@PostMapping
(
"/createOpenShopApplyOrder"
)
public
Result
createOpenShopApplyOrder
(
@RequestBody
OpenShopInfoRequestDto
dto
)
{
logger
.
info
(
"【请求开始】创建申请开店的订单,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"userId"
,
"用户id"
).
must
().
number
()
.
set
(
"userOpenId"
,
"openid"
).
must
().
string
()
.
set
(
"idCardFrontImage"
,
"身份证正面"
).
must
().
string
()
.
set
(
"idCardBackImage"
,
"身份证背面"
).
must
().
string
()
.
set
(
"cardId"
,
"卡号"
).
must
().
string
()
.
set
(
"name"
,
"持卡人名称"
).
must
().
string
()
.
set
(
"bankName"
,
"开户行名称"
).
must
().
string
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
openShopService
.
createOpenShopApplyOrder
(
dto
);
}
@ApiOperation
(
value
=
"获取支付参数"
)
@PostMapping
(
"/getPayParam"
)
public
Result
getPayParam
(
@RequestBody
OpenShopApplyOrderRequestDto
dto
)
{
logger
.
info
(
"获取支付参数,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"systemOrderId"
,
"系统订单号"
).
must
().
string
()
.
set
(
"costType"
,
"支付费用类型"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
openShopService
.
getPayParam
(
dto
);
}
@ApiOperation
(
value
=
"创建质保金缴纳订单"
)
@PostMapping
(
"/createGuaranteeMoneyOrder"
)
public
Result
createGuaranteeMoneyOrder
(
@RequestBody
GuaranteeMoneyRecordRequestDto
dto
)
{
logger
.
info
(
"创建质保金缴纳订单,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"userId"
,
"用户id"
).
must
().
number
()
.
set
(
"userOpenId"
,
"openid"
).
must
().
string
()
.
set
(
"amount"
,
"质保金金额"
).
must
().
string
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
openShopService
.
createGuaranteeMoneyOrder
(
dto
);
}
}
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/WxPayServiceTest.java
View file @
e290676d
...
@@ -89,12 +89,12 @@ public class WxPayServiceTest {
...
@@ -89,12 +89,12 @@ public class WxPayServiceTest {
@Test
@Test
public
void
refund
()
{
public
void
refund
()
{
List
<
String
>
list
=
Arrays
.
asList
(
"DA24101
42000276534622
"
);
List
<
String
>
list
=
Arrays
.
asList
(
"DA24101
82000468846189
"
);
list
.
forEach
(
orderId
->{
list
.
forEach
(
orderId
->{
DistributionOrderRequestDto
dto
=
new
DistributionOrderRequestDto
();
DistributionOrderRequestDto
dto
=
new
DistributionOrderRequestDto
();
dto
.
setDistributionOrderId
(
orderId
);
dto
.
setDistributionOrderId
(
orderId
);
dto
.
setAmount
(
"1
2
"
);
dto
.
setAmount
(
"1
86
"
);
dto
.
setRefundPrice
(
"1
2
"
);
dto
.
setRefundPrice
(
"1
86
"
);
Result
result
=
wxPayServiceApi
.
refund
(
dto
);
Result
result
=
wxPayServiceApi
.
refund
(
dto
);
logger
.
info
(
"申请微信支付退款:{}"
,
result
);
logger
.
info
(
"申请微信支付退款:{}"
,
result
);
});
});
...
...
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