bug
This commit is contained in:
@@ -70,7 +70,7 @@ public class BookForumArticlesServiceController {
|
|||||||
wrapper.leftJoin(AuthorEntity.class,AuthorEntity::getId,BookEntity::getAuthorId);
|
wrapper.leftJoin(AuthorEntity.class,AuthorEntity::getId,BookEntity::getAuthorId);
|
||||||
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
|
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
|
||||||
wrapper.eq(BookEntity::getDelFlag,0);
|
wrapper.eq(BookEntity::getDelFlag,0);
|
||||||
wrapper.eq(BookEntity::getState,0);
|
wrapper.eq(BookEntity::getState,1);
|
||||||
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesDao.selectJoinPage(new Page<>(page, limit), BookForumArticlesEntity.class, wrapper);
|
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesDao.selectJoinPage(new Page<>(page, limit), BookForumArticlesEntity.class, wrapper);
|
||||||
|
|
||||||
for (BookForumArticlesEntity b : bookForumArticlesEntityPage.getRecords()){
|
for (BookForumArticlesEntity b : bookForumArticlesEntityPage.getRecords()){
|
||||||
@@ -102,7 +102,7 @@ public class BookForumArticlesServiceController {
|
|||||||
wrapper.leftJoin(AuthorEntity.class,AuthorEntity::getId,BookEntity::getAuthorId);
|
wrapper.leftJoin(AuthorEntity.class,AuthorEntity::getId,BookEntity::getAuthorId);
|
||||||
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
|
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
|
||||||
wrapper.eq(BookEntity::getDelFlag,0);
|
wrapper.eq(BookEntity::getDelFlag,0);
|
||||||
wrapper.eq(BookEntity::getState,0);
|
wrapper.eq(BookEntity::getState,1);
|
||||||
wrapper.orderByDesc(BookForumArticlesEntity::getContlike);
|
wrapper.orderByDesc(BookForumArticlesEntity::getContlike);
|
||||||
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesDao.selectJoinPage(new Page<>(page, limit), BookForumArticlesEntity.class, wrapper);
|
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesDao.selectJoinPage(new Page<>(page, limit), BookForumArticlesEntity.class, wrapper);
|
||||||
|
|
||||||
|
|||||||
@@ -384,6 +384,13 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
|
|||||||
public Page<BuyOrder> getUserOrderList(UserOrderDto userOrderDto) {
|
public Page<BuyOrder> getUserOrderList(UserOrderDto userOrderDto) {
|
||||||
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(BuyOrder::getUserId,userOrderDto.getUserId());
|
wrapper.eq(BuyOrder::getUserId,userOrderDto.getUserId());
|
||||||
|
wrapper.eq(BuyOrder::getOrderType,"order");
|
||||||
|
if(userOrderDto.getOrderStatus()==null){
|
||||||
|
Integer[] sts = {0,1,2,3};
|
||||||
|
wrapper.in(BuyOrder::getOrderStatus,sts);
|
||||||
|
}else{
|
||||||
|
wrapper.eq(BuyOrder::getOrderStatus,userOrderDto.getOrderStatus());
|
||||||
|
}
|
||||||
wrapper.eq(userOrderDto.getOrderStatus()!=null,BuyOrder::getOrderStatus,userOrderDto.getOrderStatus());
|
wrapper.eq(userOrderDto.getOrderStatus()!=null,BuyOrder::getOrderStatus,userOrderDto.getOrderStatus());
|
||||||
wrapper.orderByDesc(BuyOrder::getCreateTime);
|
wrapper.orderByDesc(BuyOrder::getCreateTime);
|
||||||
Page<BuyOrder> buyOrderPage = this.getBaseMapper().selectPage(new Page<>(userOrderDto.getPage(), userOrderDto.getLimit()), wrapper);
|
Page<BuyOrder> buyOrderPage = this.getBaseMapper().selectPage(new Page<>(userOrderDto.getPage(), userOrderDto.getLimit()), wrapper);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ connection-timeout: 6000000ms
|
|||||||
spring:
|
spring:
|
||||||
# 环境 dev|test|prod
|
# 环境 dev|test|prod
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: prod
|
||||||
# jackson时间格式化
|
# jackson时间格式化
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
|
|||||||
@@ -5,22 +5,22 @@ wxpay.mchId:1612860909
|
|||||||
# ?? URL
|
# ?? URL
|
||||||
wxpay.payUrl:https://api.mch.weixin.qq.com/v3/pay/transactions/app
|
wxpay.payUrl:https://api.mch.weixin.qq.com/v3/pay/transactions/app
|
||||||
# ????
|
# ????
|
||||||
wxpay.notifyUrl:https://testapi.nuttyreading.com/pay/payNotify
|
wxpay.notifyUrl:https://api.nuttyreading.com/pay/payNotify
|
||||||
# ?? url
|
# ?? url
|
||||||
wxpay.refundNotifyUrl:http://pjm6m9.natappfree.cc/pay/refundNotify
|
wxpay.refundNotifyUrl:http://pjm6m9.natappfree.cc/pay/refundNotify
|
||||||
# key pem
|
# key pem
|
||||||
#wxpay.keyPemPath:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
wxpay.keyPemPath:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||||
#wxpay.keyPemPath:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
#wxpay.keyPemPath:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||||
wxpay.keyPemPath:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
#wxpay.keyPemPath:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||||
# ???
|
# ???
|
||||||
wxpay.serialNo:679AECB2F7AC4183033F713828892BA640E4EEE3
|
wxpay.serialNo:679AECB2F7AC4183033F713828892BA640E4EEE3
|
||||||
# API v3 key
|
# API v3 key
|
||||||
wxpay.apiV3Key:4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
wxpay.apiV3Key:4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
||||||
# ????
|
# ????
|
||||||
#wxpay.wechatPayCertificateUrl:/usr/local/hs/peanut_book/target/classes/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
wxpay.wechatPayCertificateUrl:/usr/local/hs/peanut_book/target/classes/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
||||||
#wxpay.wechatPayCertificateUrl:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
#wxpay.wechatPayCertificateUrl:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
||||||
wxpay.wechatPayCertificateUrl:D:/hs/nuttyreading-java/src/main/resources/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
# wxpay.wechatPayCertificateUrl:D:/hs/nuttyreading-java/src/main/resources/cent/wechatpay_7B5676E3CDF56680D0414A009CE501C844DBE2D6.pem
|
||||||
# ?? url
|
# ?? url
|
||||||
#wxpay.privateKeyUrl:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
wxpay.privateKeyUrl:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||||
#wxpay.privateKeyUrl:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
#wxpay.privateKeyUrl:C:/Users/Cauchy/IdeaProjects/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||||
wxpay.privateKeyUrl:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
#wxpay.privateKeyUrl:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||||
Reference in New Issue
Block a user