Compare commits

..

No commits in common. "68f73228fe773c6017dc2ecea13be7d7cb413589" and "c9af504c4670be4ee6d438d505779892516afd4c" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -96,7 +96,7 @@ public class GoodServiceImpl extends ServiceImpl<GoodMapper, Good> implements Go
if (ObjectUtils.isEmpty(festivalOrder) || festivalOrder <= 0) { if (ObjectUtils.isEmpty(festivalOrder) || festivalOrder <= 0) {
throw new BusinessException(ErrorCode.PARAMS_ERROR, "节日参数错误"); throw new BusinessException(ErrorCode.PARAMS_ERROR, "节日参数错误");
} }
if (ObjectUtils.isEmpty(price) || price.compareTo(BigDecimal.ZERO) < 0) { if (ObjectUtils.isEmpty(price) || price.compareTo(BigDecimal.ZERO) <= 0) {
throw new BusinessException(ErrorCode.PARAMS_ERROR, "商品价格不能小于等于0"); throw new BusinessException(ErrorCode.PARAMS_ERROR, "商品价格不能小于等于0");
} }

View File

@ -1,17 +1,17 @@
spring: spring:
datasource: datasource:
# 生产环境 # 生产环境
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://154.8.193.216:3306/feiyi?serverTimezone=Asia/Shanghai
# username: feiyi
# password: 123456asd
# 测试环境
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://123.249.108.160:3306/feiyi?serverTimezone=Asia/Shanghai url: jdbc:mysql://154.8.193.216:3306/feiyi?serverTimezone=Asia/Shanghai
username: feiyi username: feiyi
password: 123456asd password: 123456asd
# 测试环境
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://123.249.108.160:3306/feiyi?serverTimezone=Asia/Shanghai
# username: feiyi
# password: 123456asd
hikari: hikari:
max-lifetime: 120000 max-lifetime: 120000
data: data: