|
|
|
@ -3,7 +3,10 @@ package cn.iocoder.yudao.module.bs.service.suppliercompany;
|
|
|
|
|
import cn.iocoder.yudao.framework.common.util.date.DateUtils;
|
|
|
|
|
import cn.iocoder.yudao.module.system.api.user.AdminUserApi;
|
|
|
|
|
import cn.iocoder.yudao.module.system.api.user.dto.UserCreateReqDTO;
|
|
|
|
|
import cn.iocoder.yudao.module.bs.dal.dataobject.quotationsheet.QuotationSheetDO;
|
|
|
|
|
import cn.iocoder.yudao.module.bs.dal.mysql.quotationsheet.QuotationSheetMapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
@ -29,7 +32,7 @@ import static cn.iocoder.yudao.module.bs.enums.ErrorCodeConstants.*;
|
|
|
|
|
*/
|
|
|
|
|
@Service
|
|
|
|
|
@Validated
|
|
|
|
|
public class SupplierCompanyServiceImpl implements SupplierCompanyService {
|
|
|
|
|
public class SupplierCompanyServiceImpl extends MPJBaseServiceImpl<SupplierCompanyMapper, SupplierCompanyDO> implements SupplierCompanyService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private SupplierCompanyMapper supplierCompanyMapper;
|
|
|
|
@ -44,6 +47,7 @@ public class SupplierCompanyServiceImpl implements SupplierCompanyService {
|
|
|
|
|
SupplierCompanyDO supplierCompany = SupplierCompanyConvert.INSTANCE.convert(createReqVO);
|
|
|
|
|
String companyNumber = numberCreate();
|
|
|
|
|
supplierCompany.setCompanyNumber(companyNumber);
|
|
|
|
|
supplierCompany.setDeleted(false);
|
|
|
|
|
supplierCompanyMapper.insert(supplierCompany);
|
|
|
|
|
UserCreateReqDTO userCreateReqDTO=new UserCreateReqDTO();
|
|
|
|
|
userCreateReqDTO.setPassword("123456Aa@");
|
|
|
|
|