bug修复
This commit is contained in:
@@ -620,8 +620,8 @@ public class OrderServiceImpl implements OrderService {
|
||||
result.setEvaluatedCount(storeOrderService.getTopDataUtil(Constants.ORDER_STATUS_H5_VERF, currentUser.getUid()).size());
|
||||
// 已完成
|
||||
result.setCompleteCount(storeOrderService.getTopDataUtil(Constants.ORDER_STATUS_H5_COMPLETE, currentUser.getUid()).size());
|
||||
// 退款中
|
||||
result.setRefundCount(storeOrderService.getTopDataUtil(Constants.ORDER_STATUS_H5_REFUNDING, currentUser.getUid()).size());
|
||||
// 退款中和已退款
|
||||
result.setRefundCount(storeOrderService.getTopDataUtil(Constants.ORDER_STATUS_H5_REFUND, currentUser.getUid()).size());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -398,7 +398,7 @@ public class StoreProductServiceImpl extends ServiceImpl<StoreProductDao, StoreP
|
||||
// 对attr表做全量更新,删除原有数据保存现有数据
|
||||
attrService.removeByProductId(storeProduct.getId());
|
||||
storeProductAttrValueService.removeByProductId(storeProduct.getId());
|
||||
if(storeProductRequest.getSpecType()) { // todo 确认单属性商品的attr参数
|
||||
if(storeProductRequest.getSpecType()) {
|
||||
storeProductRequest.getAttr().forEach(e->{
|
||||
e.setProductId(storeProductRequest.getId());
|
||||
e.setAttrValues(StringUtils.strip(e.getAttrValues().replace("\"",""),"[]"));
|
||||
@@ -421,9 +421,8 @@ public class StoreProductServiceImpl extends ServiceImpl<StoreProductDao, StoreP
|
||||
}
|
||||
spav.setSuk(String.join(",",skuList));
|
||||
}
|
||||
// HashMap<String, Object> attrValues = setAttrValueByRequest(storeProductRequest);
|
||||
spav.setAttrValue(JSON.toJSONString(attrValuesRequest.getAttrValue()));
|
||||
// spav.setAttrValue(JSON.toJSONString(attrValues));
|
||||
spav.setAttrValue(JSON.toJSONString(attrValuesRequest.getAttrValue()));
|
||||
spav.setImage(systemAttachmentService.clearPrefix(spav.getImage()));
|
||||
storeProductAttrValues.add(spav);
|
||||
}
|
||||
boolean saveOrUpdateResult = storeProductAttrValueService.saveOrUpdateBatch(storeProductAttrValues);
|
||||
|
||||
@@ -920,9 +920,10 @@ public class OrderUtils {
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.eq(StoreOrder::getStatus, 2);
|
||||
break;
|
||||
case Constants.ORDER_STATUS_H5_REFUND: // 退款
|
||||
case Constants.ORDER_STATUS_H5_REFUND: // 包含已退款和退款中
|
||||
queryWrapper.eq(StoreOrder::getPaid, true);
|
||||
queryWrapper.in(StoreOrder::getRefundStatus, "1,2"); //大于0
|
||||
queryWrapper.in(StoreOrder::getStatus,-1,-2);
|
||||
queryWrapper.in(StoreOrder::getRefundStatus, 1,2);
|
||||
break;
|
||||
}
|
||||
queryWrapper.eq(StoreOrder::getIsDel, false);
|
||||
|
||||
@@ -73,7 +73,6 @@ public class SystemCityServiceImpl extends ServiceImpl<SystemCityDao, SystemCity
|
||||
lambdaQueryWrapper.in(SystemCity::getIsShow, true);
|
||||
return dao.selectList(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改状态
|
||||
* @param id integer id
|
||||
|
||||
@@ -150,7 +150,6 @@ public class SystemConfigServiceImpl extends ServiceImpl<SystemConfigDao, System
|
||||
//修改之前的数据
|
||||
updateStatusByFormId(systemFormCheckRequest.getId());
|
||||
|
||||
//批量插入
|
||||
saveBatch(systemConfigList);
|
||||
|
||||
//删除之前隐藏的数据
|
||||
|
||||
Reference in New Issue
Block a user