提交 6a784385 作者: han

Merge branch 'develop'

流水线 #8009 已通过 于阶段
in 2 分 30 秒
...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newTag: 44c4f3279675a28d348c4d91c0db1df1d9e0ff32 newTag: 5046aa4b5db1f77c123165dfc3ea7bb0adabe47d
...@@ -345,10 +345,18 @@ public class ProductServiceImpl implements ProductSkuService { ...@@ -345,10 +345,18 @@ public class ProductServiceImpl implements ProductSkuService {
} }
public int getDayRange(int day) { public int getDayRange(int day) {
if (between(day, 0 ,7)) return 0; if (between(day, 0 ,7)) {
if (between(day, 8, 15)) return 1; return 0;
if (between(day, 16,30)) return 2; }
if (day > 30) return 3; if (between(day, 8, 15)) {
return 1;
}
if (between(day, 16,30)) {
return 2;
}
if (day > 30) {
return 3;
}
throw new RuntimeException("租期有误!"); throw new RuntimeException("租期有误!");
} }
......
...@@ -42,7 +42,9 @@ public class LeaseGoodsServiceImpl implements LeaseGoodsService { ...@@ -42,7 +42,9 @@ public class LeaseGoodsServiceImpl implements LeaseGoodsService {
@Override @Override
public ResultBody addLeaseGoods(LeaseGoodsVO leaseGoodsVO, Integer userAccountId) { public ResultBody addLeaseGoods(LeaseGoodsVO leaseGoodsVO, Integer userAccountId) {
ResultBody resultError = mallGoodsService.checkInformation(leaseGoodsVO, null, userAccountId); ResultBody resultError = mallGoodsService.checkInformation(leaseGoodsVO, null, userAccountId);
if (resultError != null) return resultError; if (resultError != null) {
return resultError;
}
int count = leaseGoodsDao.countLeaseGoodsByUserAccountId(userAccountId); int count = leaseGoodsDao.countLeaseGoodsByUserAccountId(userAccountId);
LeaseGoodsDO leaseGoodsDO = new LeaseGoodsDO(leaseGoodsVO); LeaseGoodsDO leaseGoodsDO = new LeaseGoodsDO(leaseGoodsVO);
leaseGoodsDO.setUserAccountId(userAccountId); leaseGoodsDO.setUserAccountId(userAccountId);
......
...@@ -41,3 +41,4 @@ data-filter: ...@@ -41,3 +41,4 @@ data-filter:
- /pms/app/goods/recommend - /pms/app/goods/recommend
- /pms/brand/listBrandInfo - /pms/brand/listBrandInfo
- /pms/app/lease/leaseGoodsList - /pms/app/lease/leaseGoodsList
- /pms/lease/goods/getLeaseTermInfo
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论