mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-21 15:49:47 +08:00
update 运营分析接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user