This commit is contained in:
wangxiaopeng
2024-04-18 09:46:53 +08:00
parent 70bbb35362
commit 04e3f95787

View File

@@ -2,6 +2,7 @@ package com.cool.store.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
import com.cool.store.constants.CommonConstants;
import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.*;
@@ -20,6 +21,7 @@ import com.cool.store.utils.poi.DateUtils;
import com.cool.store.vo.*;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
@@ -33,6 +35,7 @@ import java.util.stream.Collectors;
* @Date 2024/3/25 13:48
* @Version 1.0
*/
@Slf4j
@Service
public class LineServiceImpl implements LineService {
@@ -375,6 +378,7 @@ public class LineServiceImpl implements LineService {
@Override
public Boolean addLine(AddLineRequest addLineRequest) {
//必填参数
log.info("addLine:{}", JSONObject.toJSONString(addLineRequest));
if (!StringUtil.isNoneBlank(addLineRequest.getMobile(),addLineRequest.getUserName())){
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
}