|
@@ -19,12 +19,15 @@ import com.sckw.core.utils.IdWorker;
|
|
|
import com.sckw.core.utils.StringUtils;
|
|
import com.sckw.core.utils.StringUtils;
|
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
|
-import com.sckw.core.web.response.HttpResult;
|
|
|
|
|
import com.sckw.system.api.model.dto.req.RegisterReqDto;
|
|
import com.sckw.system.api.model.dto.req.RegisterReqDto;
|
|
|
|
|
+import com.sckw.system.api.model.dto.res.RegisterResDto;
|
|
|
import com.sckw.system.dao.*;
|
|
import com.sckw.system.dao.*;
|
|
|
import com.sckw.system.model.*;
|
|
import com.sckw.system.model.*;
|
|
|
|
|
+import com.sckw.system.model.pojo.FindMenuTreePojo;
|
|
|
import com.sckw.system.model.vo.req.*;
|
|
import com.sckw.system.model.vo.req.*;
|
|
|
import com.sckw.system.model.vo.res.CertificateResVo;
|
|
import com.sckw.system.model.vo.res.CertificateResVo;
|
|
|
|
|
+import com.sckw.system.model.vo.res.IdResVo;
|
|
|
|
|
+import com.sckw.system.model.vo.res.KwsMenuResVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -53,16 +56,28 @@ public class KwsEnterpriseService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private KwsEntDeptDao kwsEntDeptDao;
|
|
private KwsEntDeptDao kwsEntDeptDao;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsDeptDao kwsDeptDao;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private KwsUserService kwsUserService;
|
|
private KwsUserService kwsUserService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsDeptService kwsDeptService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsMenuService kwsMenuService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsRoleService kwsRoleService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @param params 入库
|
|
* @param params 入库
|
|
|
* @desc: 单表入库
|
|
* @desc: 单表入库
|
|
|
* @author: czh
|
|
* @author: czh
|
|
|
* @date: 2023/6/19
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
*/
|
|
|
- public void add(KwsEnterprise params) {
|
|
|
|
|
|
|
+ public void add(KwsEnterprise params) throws SystemException {
|
|
|
if (kwsEnterpriseDao.insert(params) <= 0) {
|
|
if (kwsEnterpriseDao.insert(params) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
}
|
|
}
|
|
@@ -76,11 +91,8 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/6/19
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
*/
|
|
|
public void deleteByKey(String ids) throws Exception {
|
|
public void deleteByKey(String ids) throws Exception {
|
|
|
- String[] idArr = ids.split(",");
|
|
|
|
|
- List<Long> list = new ArrayList<>();
|
|
|
|
|
- for (String id : idArr) {
|
|
|
|
|
- list.add(Long.valueOf(id));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /*1、删除企业*/
|
|
|
|
|
+ List<Long> list = Arrays.stream(ids.split(",")).map(Long::parseLong).toList();
|
|
|
List<KwsEnterprise> kwsEnterprises = kwsEnterpriseDao.selectByKeys(list);
|
|
List<KwsEnterprise> kwsEnterprises = kwsEnterpriseDao.selectByKeys(list);
|
|
|
if (CollectionUtils.isEmpty(kwsEnterprises)) {
|
|
if (CollectionUtils.isEmpty(kwsEnterprises)) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
@@ -92,6 +104,9 @@ public class KwsEnterpriseService {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /*2、删除机构*/
|
|
|
|
|
+ kwsDeptService.deleteDept(kwsDeptDao.selectByEntIdList(list));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -101,7 +116,7 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/6/19
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void update(KwsEnterpriseReqVo reqVo) throws Exception {
|
|
|
|
|
|
|
+ public void update(KwsEnterpriseReqVo reqVo) throws SystemException {
|
|
|
/*1、更新企业信息表*/
|
|
/*1、更新企业信息表*/
|
|
|
long entId = reqVo.getId();
|
|
long entId = reqVo.getId();
|
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(entId);
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(entId);
|
|
@@ -120,7 +135,7 @@ public class KwsEnterpriseService {
|
|
|
|
|
|
|
|
//若入参传来的type在表里面本来就有则不管,没有就新增
|
|
//若入参传来的type在表里面本来就有则不管,没有就新增
|
|
|
typeReqList.forEach(item -> {
|
|
typeReqList.forEach(item -> {
|
|
|
- if (CollectionUtils.isEmpty(kwsEntTypes) || kwsEntTypes.stream().filter(x -> x.getType() == Integer.parseInt(item)).findAny().isPresent()) {
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(kwsEntTypes) || kwsEntTypes.stream().anyMatch(x -> x.getType() == Integer.parseInt(item))) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -182,7 +197,7 @@ public class KwsEnterpriseService {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public KwsEntCertificate checkEntCertificate(long id) {
|
|
|
|
|
|
|
+ public KwsEntCertificate checkEntCertificate(long id) throws SystemException {
|
|
|
KwsEntCertificate kwsEntCertificate = kwsEntCertificateDao.selectByKey(id);
|
|
KwsEntCertificate kwsEntCertificate = kwsEntCertificateDao.selectByKey(id);
|
|
|
if (Objects.isNull(kwsEntCertificate) || kwsEntCertificate.getDelFlag() == Global.YES) {
|
|
if (Objects.isNull(kwsEntCertificate) || kwsEntCertificate.getDelFlag() == Global.YES) {
|
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENTCERTIFICATES_NOT_EXISTS);
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENTCERTIFICATES_NOT_EXISTS);
|
|
@@ -227,20 +242,12 @@ public class KwsEnterpriseService {
|
|
|
return kwsEnterpriseDao.findList(reqVo);
|
|
return kwsEnterpriseDao.findList(reqVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * @param params 参数校验
|
|
|
|
|
- * @desc: 参数校验
|
|
|
|
|
- * @author: czh
|
|
|
|
|
- * @date: 2023/6/19
|
|
|
|
|
- */
|
|
|
|
|
- public void paramsCheck(KwsEnterprise params) {
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 新增企业(注册)
|
|
* 新增企业(注册)
|
|
|
*/
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void register(EntRegisterReqVo reqVo) {
|
|
|
|
|
|
|
+ public void register(EntRegisterReqVo reqVo) throws SystemException {
|
|
|
/*1、存企业信息表*/
|
|
/*1、存企业信息表*/
|
|
|
KwsEnterprise kwsEnterprise = kwsEnterpriseDao.selectByKey(reqVo.getEntId());
|
|
KwsEnterprise kwsEnterprise = kwsEnterpriseDao.selectByKey(reqVo.getEntId());
|
|
|
if (Objects.isNull(kwsEnterprise)) {
|
|
if (Objects.isNull(kwsEnterprise)) {
|
|
@@ -250,15 +257,25 @@ public class KwsEnterpriseService {
|
|
|
Long entId = kwsEnterprise.getId();
|
|
Long entId = kwsEnterprise.getId();
|
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
|
Long userId = LoginUserHolder.getUserId();
|
|
Long userId = LoginUserHolder.getUserId();
|
|
|
- BeanUtils.copyProperties(reqVo, kwsEnterprise);
|
|
|
|
|
|
|
+ kwsEnterprise.setCode(reqVo.getCode());
|
|
|
|
|
+ kwsEnterprise.setLegalName(reqVo.getLegalName());
|
|
|
|
|
+ kwsEnterprise.setLegalTelephone(reqVo.getLegalTelephone());
|
|
|
|
|
+ kwsEnterprise.setHead(reqVo.getHead());
|
|
|
|
|
+ kwsEnterprise.setRegSource(LoginUserHolder.getClientType());
|
|
|
|
|
+ kwsEnterprise.setCityCode(reqVo.getCityCode());
|
|
|
|
|
+ kwsEnterprise.setCityName(reqVo.getCityName());
|
|
|
|
|
+ kwsEnterprise.setDetailAddress(reqVo.getDetailAddress());
|
|
|
|
|
+ kwsEnterprise.setLat(reqVo.getLat());
|
|
|
|
|
+ kwsEnterprise.setLng(reqVo.getLng());
|
|
|
|
|
|
|
|
//一些待确认的字段
|
|
//一些待确认的字段
|
|
|
kwsEnterprise.setIntegral(0);
|
|
kwsEnterprise.setIntegral(0);
|
|
|
kwsEnterprise.setBalance(0L);
|
|
kwsEnterprise.setBalance(0L);
|
|
|
kwsEnterprise.setExperience(0);
|
|
kwsEnterprise.setExperience(0);
|
|
|
kwsEnterprise.setMemberLevel(0);
|
|
kwsEnterprise.setMemberLevel(0);
|
|
|
|
|
+ kwsEnterprise.setOrgCode("");
|
|
|
kwsEnterprise.setRegTime(date);
|
|
kwsEnterprise.setRegTime(date);
|
|
|
- kwsEnterprise.setApproval(ApprovalEnum.NO.getCode());
|
|
|
|
|
|
|
+ kwsEnterprise.setApproval(ApprovalEnum.PROCESS.getCode());
|
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
}
|
|
}
|
|
@@ -284,20 +301,20 @@ public class KwsEnterpriseService {
|
|
|
|
|
|
|
|
/*3、存企业证书*/
|
|
/*3、存企业证书*/
|
|
|
List<KwsEntCertificate> kwsEntCertificates = new ArrayList<>();
|
|
List<KwsEntCertificate> kwsEntCertificates = new ArrayList<>();
|
|
|
- reqVo.getBusinessLicense().forEach(item -> {
|
|
|
|
|
|
|
+ for (BusinessLicense businessLicense : reqVo.getBusinessLicense()) {
|
|
|
KwsEntCertificate kwsEntCertificate = new KwsEntCertificate();
|
|
KwsEntCertificate kwsEntCertificate = new KwsEntCertificate();
|
|
|
//todo 上传证书正反面,将url放到两个入参里
|
|
//todo 上传证书正反面,将url放到两个入参里
|
|
|
kwsEntCertificate.setEntId(entId);
|
|
kwsEntCertificate.setEntId(entId);
|
|
|
- kwsEntCertificate.setId(new IdWorker(1).nextId());
|
|
|
|
|
kwsEntCertificate.setStatus(Global.NO);
|
|
kwsEntCertificate.setStatus(Global.NO);
|
|
|
kwsEntCertificate.setCreateBy(userId);
|
|
kwsEntCertificate.setCreateBy(userId);
|
|
|
kwsEntCertificate.setCreateTime(date);
|
|
kwsEntCertificate.setCreateTime(date);
|
|
|
kwsEntCertificate.setUpdateBy(userId);
|
|
kwsEntCertificate.setUpdateBy(userId);
|
|
|
kwsEntCertificate.setUpdateTime(date);
|
|
kwsEntCertificate.setUpdateTime(date);
|
|
|
kwsEntCertificate.setDelFlag(Global.NO);
|
|
kwsEntCertificate.setDelFlag(Global.NO);
|
|
|
- BeanUtils.copyProperties(item, kwsEntCertificate);
|
|
|
|
|
|
|
+ BeanUtils.copyProperties(businessLicense, kwsEntCertificate);
|
|
|
|
|
+ kwsEntCertificate.setId(new IdWorker(1).nextId());
|
|
|
kwsEntCertificates.add(kwsEntCertificate);
|
|
kwsEntCertificates.add(kwsEntCertificate);
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
if (kwsEntCertificateDao.saveBatch(kwsEntCertificates) != kwsEntCertificates.size()) {
|
|
if (kwsEntCertificateDao.saveBatch(kwsEntCertificates) != kwsEntCertificates.size()) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
}
|
|
}
|
|
@@ -319,11 +336,12 @@ public class KwsEnterpriseService {
|
|
|
* 企业审批
|
|
* 企业审批
|
|
|
*/
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void approval(KwsEntCheckTrack kwsEntCheckTrack) {
|
|
|
|
|
|
|
+ public void approval(KwsEntCheckTrack kwsEntCheckTrack) throws SystemException {
|
|
|
/*更新企业信息主表审批状态*/
|
|
/*更新企业信息主表审批状态*/
|
|
|
- KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(kwsEntCheckTrack.getEntId());
|
|
|
|
|
|
|
+ Long entId = kwsEntCheckTrack.getEntId();
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(entId);
|
|
|
kwsEnterprise.setApproval(kwsEntCheckTrack.getStatus());
|
|
kwsEnterprise.setApproval(kwsEntCheckTrack.getStatus());
|
|
|
- if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
|
|
|
|
+ if (kwsEnterpriseDao.approval(kwsEnterprise) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -331,9 +349,39 @@ public class KwsEnterpriseService {
|
|
|
if (kwsEntCheckTrackDao.insert(kwsEntCheckTrack) <= 0) {
|
|
if (kwsEntCheckTrackDao.insert(kwsEntCheckTrack) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /*审批通过,构建管理员角色及权限*/
|
|
|
|
|
+ /*1、新增管理员机构*/
|
|
|
|
|
+ KwsDept kwsDept = new KwsDept();
|
|
|
|
|
+ long deptId = new IdWorker(1L).nextId();
|
|
|
|
|
+ kwsDept.setEntId(entId);
|
|
|
|
|
+ kwsDept.setName(Global.MANAGE_NAME);
|
|
|
|
|
+ kwsDept.setSystemType(SystemTypeEnum.COMPANY.getCode());
|
|
|
|
|
+ kwsDept.setCompany(Global.NO);
|
|
|
|
|
+ kwsDept.setId(deptId);
|
|
|
|
|
+ kwsDeptService.add(kwsDept);
|
|
|
|
|
+
|
|
|
|
|
+ /*2、新增管理员角色*/
|
|
|
|
|
+ AddRoleReqVo addRoleReqVo = new AddRoleReqVo();
|
|
|
|
|
+ List<KwsMenu> list = kwsMenuService.selectAll();
|
|
|
|
|
+ if (CollectionUtils.isEmpty(list)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ addRoleReqVo.setName(Global.MANAGE_NAME);
|
|
|
|
|
+ addRoleReqVo.setCurrentDeptId(deptId);
|
|
|
|
|
+ addRoleReqVo.setMenuIds(String.join(",", list.stream().map(KwsMenu::getId).map(String::valueOf).toList()));
|
|
|
|
|
+ addRoleReqVo.setVisiblePersonal(false);
|
|
|
|
|
+ IdResVo idResVo = kwsRoleService.add(addRoleReqVo);
|
|
|
|
|
+
|
|
|
|
|
+ /*3、绑定角色等*/
|
|
|
|
|
+ KwsUser userByAccount = kwsUserService.getUserByAccount(kwsEnterprise.getTelephone(), SystemTypeEnum.COMPANY.getCode());
|
|
|
|
|
+ if (Objects.isNull(userByAccount)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ kwsUserService.fillUserRole(String.valueOf(idResVo.getId()),userByAccount.getId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private KwsEnterprise checkKwsEnterpriseById(long id) {
|
|
|
|
|
|
|
+ private KwsEnterprise checkKwsEnterpriseById(long id) throws SystemException {
|
|
|
KwsEnterprise kwsEnterprise = queryKwsEnterpriseById(id);
|
|
KwsEnterprise kwsEnterprise = queryKwsEnterpriseById(id);
|
|
|
if (Objects.isNull(kwsEnterprise) || kwsEnterprise.getDelFlag() == Global.YES) {
|
|
if (Objects.isNull(kwsEnterprise) || kwsEnterprise.getDelFlag() == Global.YES) {
|
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
@@ -348,7 +396,7 @@ public class KwsEnterpriseService {
|
|
|
/**
|
|
/**
|
|
|
* 企业冻结/解冻
|
|
* 企业冻结/解冻
|
|
|
*/
|
|
*/
|
|
|
- public void freeze(FreezeReqVo reqVo) {
|
|
|
|
|
|
|
+ public void freeze(FreezeReqVo reqVo) throws SystemException {
|
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(reqVo.getId());
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(reqVo.getId());
|
|
|
kwsEnterprise.setStatus(reqVo.getStatus());
|
|
kwsEnterprise.setStatus(reqVo.getStatus());
|
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
@@ -359,7 +407,7 @@ public class KwsEnterpriseService {
|
|
|
/**
|
|
/**
|
|
|
* 企业证件信息
|
|
* 企业证件信息
|
|
|
*/
|
|
*/
|
|
|
- public List<CertificateResVo> certificate(Long id) {
|
|
|
|
|
|
|
+ public List<CertificateResVo> certificate(Long id) throws SystemException {
|
|
|
/*查企业资质*/
|
|
/*查企业资质*/
|
|
|
List<KwsEntCertificate> kwsEntCertificates = kwsEntCertificateDao.selectByEntId(id);
|
|
List<KwsEntCertificate> kwsEntCertificates = kwsEntCertificateDao.selectByEntId(id);
|
|
|
if (CollectionUtils.isEmpty(kwsEntCertificates)) {
|
|
if (CollectionUtils.isEmpty(kwsEntCertificates)) {
|
|
@@ -394,7 +442,7 @@ public class KwsEnterpriseService {
|
|
|
* @author: czh
|
|
* @author: czh
|
|
|
* @date: 2023/6/19
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
*/
|
|
|
- public void addEntSettle(EntRegisterReqVo reqVo) {
|
|
|
|
|
|
|
+ public void addEntSettle(AddEntSettleReqVo reqVo) throws SystemException {
|
|
|
/*1、存用户信息*/
|
|
/*1、存用户信息*/
|
|
|
RegisterReqDto registerReqDto = new RegisterReqDto();
|
|
RegisterReqDto registerReqDto = new RegisterReqDto();
|
|
|
registerReqDto.setEntName(reqVo.getFirmName());
|
|
registerReqDto.setEntName(reqVo.getFirmName());
|
|
@@ -402,9 +450,16 @@ public class KwsEnterpriseService {
|
|
|
registerReqDto.setTelephone(reqVo.getTelephone());
|
|
registerReqDto.setTelephone(reqVo.getTelephone());
|
|
|
registerReqDto.setIsMain(Global.YES);
|
|
registerReqDto.setIsMain(Global.YES);
|
|
|
registerReqDto.setSystemType(SystemTypeEnum.COMPANY.getCode());
|
|
registerReqDto.setSystemType(SystemTypeEnum.COMPANY.getCode());
|
|
|
- kwsUserService.register(registerReqDto);
|
|
|
|
|
|
|
+ RegisterResDto register = kwsUserService.register(registerReqDto);
|
|
|
|
|
|
|
|
/*2、认证*/
|
|
/*2、认证*/
|
|
|
- register(reqVo);
|
|
|
|
|
|
|
+ EntRegisterReqVo entRegisterReqVo = new EntRegisterReqVo();
|
|
|
|
|
+ BeanUtils.copyProperties(reqVo, entRegisterReqVo);
|
|
|
|
|
+ entRegisterReqVo.setEntId(register.getEntId());
|
|
|
|
|
+ register(entRegisterReqVo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public List<KwsEntCheckTrack> entCheck(Long entId) {
|
|
|
|
|
+ return kwsEntCheckTrackDao.findList(entId);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|