修改公司代码

master
bynt 2 years ago
parent 0042ff81fa
commit 22e92da2a2

@ -25,6 +25,7 @@ import com.baiye.util.QueryHelp;
import com.baiye.util.SecurityUtils;
import com.google.common.collect.Lists;
import lombok.RequiredArgsConstructor;
import org.hibernate.type.DoubleType;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
@ -75,6 +76,11 @@ public class CompanyServiceImpl implements CompanyService {
BeanUtil.copyProperties(companyDto, byUserId);
byUserId.setApplicationTime(DateUtil.date());
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());
return companyMapper.toDto(companyRepository.save(byUserId));
}

Loading…
Cancel
Save