yshop1.9.9版本,优化了公众号配置,后台新增订单分类搜索与优化了商品显示等,修复#I19S9R问题

This commit is contained in:
hupeng
2020-02-19 14:42:36 +08:00
parent 5e59cde9ad
commit 9017644082
7 changed files with 57 additions and 7 deletions

View File

@ -83,7 +83,8 @@ public class YxStoreOrderController {
@PreAuthorize("@el.check('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT')")
public ResponseEntity getYxStoreOrders(YxStoreOrderQueryCriteria criteria,
Pageable pageable,
@RequestParam(name = "orderStatus") String orderStatus){
@RequestParam(name = "orderStatus") String orderStatus,
@RequestParam(name = "orderType") String orderType){
if(StrUtil.isNotEmpty(orderStatus)){
@ -133,6 +134,25 @@ public class YxStoreOrderController {
break;
}
}
if(StrUtil.isNotEmpty(orderType)){
switch (orderType){
case "1":
criteria.setBargainId(0);
criteria.setCombinationId(0);
criteria.setSeckillId(0);
break;
case "2":
criteria.setNewCombinationId(0);
break;
case "3":
criteria.setNewSeckillId(0);
break;
case "4":
criteria.setNewBargainId(0);
break;
}
}
return new ResponseEntity(yxStoreOrderService.queryAll(criteria,pageable),HttpStatus.OK);
}

View File

@ -19,7 +19,7 @@ public interface YxStoreOrderService {
Map<String,Object> chartCount();
String orderType(int id, int pinkId, int combinationId, int seckillId);
String orderType(int id, int pinkId, int combinationId, int seckillId,int bargainId);
void refund(YxStoreOrder resources);

View File

@ -33,4 +33,22 @@ public class YxStoreOrderQueryCriteria{
@Query
private Integer isDel;
@Query
private Integer combinationId;
@Query
private Integer seckillId;
@Query
private Integer bargainId;
@Query(propName="combinationId",type = Query.Type.NOT_EQUAL)
private Integer newCombinationId;
@Query(propName="seckillId",type = Query.Type.NOT_EQUAL)
private Integer newSeckillId;
@Query(propName="bargainId",type = Query.Type.NOT_EQUAL)
private Integer newBargainId;
}

View File

@ -197,7 +197,7 @@ public class YxStoreOrderServiceImpl implements YxStoreOrderService {
}
@Override
public String orderType(int id,int pinkId, int combinationId,int seckillId) {
public String orderType(int id,int pinkId, int combinationId,int seckillId,int bargainId) {
String str = "[普通订单]";
if(pinkId > 0 || combinationId > 0){
YxStorePink storePink = storePinkRepository.findByOrderIdKey(id);
@ -222,6 +222,8 @@ public class YxStoreOrderServiceImpl implements YxStoreOrderService {
}else if(seckillId > 0){
str = "[秒杀订单]";
}else if(bargainId > 0){
str = "[砍价订单]";
}
return str;
}
@ -263,7 +265,7 @@ public class YxStoreOrderServiceImpl implements YxStoreOrderService {
yxStoreOrderDTO.setPinkName(orderType(yxStoreOrder.getId()
,yxStoreOrder.getPinkId(),yxStoreOrder.getCombinationId()
,yxStoreOrder.getSeckillId()));
,yxStoreOrder.getSeckillId(),yxStoreOrder.getBargainId()));
List<StoreOrderCartInfo> cartInfos = yxStoreOrderCartInfoRepository
.findByOid(yxStoreOrder.getId());

View File

@ -55,7 +55,7 @@ public class YxSystemConfigController {
yxSystemConfigModel.setValue(value.toString());
//重新配置微信相关
if(key.equals("wechat_appid")){
WxMpConfiguration.removeWxMpService(key);
WxMpConfiguration.removeWxMpService(value.toString());
}
RedisUtil.set(key,value.toString(),0);
if(ObjectUtil.isNull(yxSystemConfig)){