适配优化的api地址
This commit is contained in:
parent
1f1b534b13
commit
1d5a2008e1
@ -7,6 +7,7 @@ import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import cn.lili.cache.Cache;
|
||||
import cn.lili.cache.CachePrefix;
|
||||
import cn.lili.common.enums.PromotionTypeEnum;
|
||||
import cn.lili.common.enums.ResultCode;
|
||||
import cn.lili.common.exception.ServiceException;
|
||||
@ -447,7 +448,10 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
|
||||
goodsIndexService.deleteIndexById(goodsSku.getId());
|
||||
}
|
||||
goodsSku.setQuantity(quantity);
|
||||
this.update(new LambdaUpdateWrapper<GoodsSku>().eq(GoodsSku::getId, skuId).set(GoodsSku::getQuantity, quantity));
|
||||
boolean update = this.update(new LambdaUpdateWrapper<GoodsSku>().eq(GoodsSku::getId, skuId).set(GoodsSku::getQuantity, quantity));
|
||||
if (update) {
|
||||
cache.remove(CachePrefix.GOODS.getPrefix() + goodsSku.getGoodsId());
|
||||
}
|
||||
cache.put(GoodsSkuService.getCacheKeys(skuId), goodsSku);
|
||||
cache.put(GoodsSkuService.getStockCacheKey(skuId), quantity);
|
||||
|
||||
|
@ -51,6 +51,10 @@ public class BillSearchParams extends PageVO {
|
||||
//创建时间
|
||||
if (StringUtils.isNotEmpty(startDate) && StringUtils.isNotEmpty(endDate)) {
|
||||
wrapper.between("create_time", startDate, endDate);
|
||||
} else if (StringUtils.isNotEmpty(startDate)) {
|
||||
wrapper.ge("create_time", startDate);
|
||||
} else if (StringUtils.isNotEmpty(endDate)) {
|
||||
wrapper.le("create_time", endDate);
|
||||
}
|
||||
//账单号
|
||||
wrapper.eq(StringUtils.isNotEmpty(sn), "sn", sn);
|
||||
|
2
pom.xml
2
pom.xml
@ -18,7 +18,7 @@
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<revision>4.2.3</revision>
|
||||
<revision>4.3.0</revision>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<skipTests>true</skipTests>
|
||||
|
Loading…
x
Reference in New Issue
Block a user