update 运营分析接口

This commit is contained in:
Lemon
2026-04-02 14:13:23 +08:00
parent 19c89db265
commit f7d541d44a
3 changed files with 20 additions and 5 deletions

View File

@@ -122,9 +122,12 @@ public class BusinessFinancialController extends BaseController {
* @param dto 查询参数
*/
private void validateBusinessOperationQuery(BusinessOperationAnalysisQueryDTO dto) {
if (dto == null
|| StringUtils.isBlank(dto.getStartTime())
|| StringUtils.isBlank(dto.getEndTime())) {
if (dto == null) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
boolean startTimeBlank = StringUtils.isBlank(dto.getStartTime());
boolean endTimeBlank = StringUtils.isBlank(dto.getEndTime());
if (startTimeBlank ^ endTimeBlank) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
}

View File

@@ -38,7 +38,7 @@ spring:
master:
# url: jdbc:mysql://106.14.94.149:3306/jsowell_pre?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: jsowell_pre
url: jdbc:mysql://192.168.0.4:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://192.168.0.32:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: jsowell_dev
password: 123456
# 从库数据源