提交 bc6e9da5 作者: han

修改

上级 cb8d50d2
流水线 #8008 已通过 于阶段
in 2 分 30 秒
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论