|
|
@ -25,6 +25,7 @@ import com.baiye.util.QueryHelp;
|
|
|
|
import com.baiye.util.SecurityUtils;
|
|
|
|
import com.baiye.util.SecurityUtils;
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
import org.hibernate.type.DoubleType;
|
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
@ -75,6 +76,11 @@ public class CompanyServiceImpl implements CompanyService {
|
|
|
|
BeanUtil.copyProperties(companyDto, byUserId);
|
|
|
|
BeanUtil.copyProperties(companyDto, byUserId);
|
|
|
|
byUserId.setApplicationTime(DateUtil.date());
|
|
|
|
byUserId.setApplicationTime(DateUtil.date());
|
|
|
|
byUserId.setCompanyCode(byUserId.getCompanyName().trim());
|
|
|
|
byUserId.setCompanyCode(byUserId.getCompanyName().trim());
|
|
|
|
|
|
|
|
byUserId.setRollCallFee(DoubleType.ZERO);
|
|
|
|
|
|
|
|
byUserId.setTalkCallFee(DoubleType.ZERO);
|
|
|
|
|
|
|
|
byUserId.setDoubleCallFee(DoubleType.ZERO);
|
|
|
|
|
|
|
|
byUserId.setTiktokCallFee(DoubleType.ZERO);
|
|
|
|
|
|
|
|
byUserId.setDeliveryCallFee(DoubleType.ZERO);
|
|
|
|
userRepository.updateStatusById(Boolean.FALSE, SecurityUtils.getCurrentUserId());
|
|
|
|
userRepository.updateStatusById(Boolean.FALSE, SecurityUtils.getCurrentUserId());
|
|
|
|
return companyMapper.toDto(companyRepository.save(byUserId));
|
|
|
|
return companyMapper.toDto(companyRepository.save(byUserId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|