|
|
@@ -201,6 +201,13 @@ public class KwsEnterpriseService {
|
|
|
// });
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param id 主键id
|
|
|
+ * @return KwsEntCertificate
|
|
|
+ * @desc: 查资质
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
public KwsEntCertificate checkEntCertificate(long id) throws SystemException {
|
|
|
KwsEntCertificate kwsEntCertificate = kwsEntCertificateDao.selectByKey(id);
|
|
|
if (Objects.isNull(kwsEntCertificate) || kwsEntCertificate.getDelFlag() == Global.YES) {
|
|
|
@@ -277,6 +284,13 @@ public class KwsEnterpriseService {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param reqVo 分页入参
|
|
|
+ * @return FindEntListPojo
|
|
|
+ * @desc: 分页查企业信息
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
public List<FindEntListPojo> findPojo(EntFindPageReqVo reqVo) {
|
|
|
FindPojoParam findPojoParam = new FindPojoParam();
|
|
|
BeanUtils.copyProperties(reqVo, findPojoParam);
|
|
|
@@ -457,10 +471,15 @@ public class KwsEnterpriseService {
|
|
|
kwsUserService.fillUserRole(String.valueOf(findManagePojo.getRoleId()), userByAccount.getId(), SystemTypeEnum.COMPANY.getCode());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param id 主键id
|
|
|
+ * @return KwsEnterprise
|
|
|
+ * @desc: 查企业
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
private KwsEnterprise checkKwsEnterpriseById(long id) throws SystemException {
|
|
|
KwsEnterprise kwsEnterprise = queryKwsEnterpriseById(id);
|
|
|
if (Objects.isNull(kwsEnterprise) || kwsEnterprise.getDelFlag() == Global.YES) {
|
|
|
@@ -469,6 +488,13 @@ public class KwsEnterpriseService {
|
|
|
return kwsEnterprise;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param id 主键
|
|
|
+ * @return KwsEnterprise
|
|
|
+ * @desc: 放开接口
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
public KwsEnterprise queryKwsEnterpriseById(long id) {
|
|
|
return kwsEnterpriseDao.selectByKey(id);
|
|
|
}
|
|
|
@@ -581,7 +607,6 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/7/25
|
|
|
*/
|
|
|
private void checkAddEntSettleParam(AddEntSettleReqVo reqVo) {
|
|
|
-
|
|
|
List<BusinessLicense> businessLicenseList = reqVo.getBusinessLicense();
|
|
|
for (BusinessLicense businessLicense : businessLicenseList) {
|
|
|
Integer type = businessLicense.getType();
|
|
|
@@ -700,6 +725,13 @@ public class KwsEnterpriseService {
|
|
|
return findListGroupResVo;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param id 企业id
|
|
|
+ * @return EntDetailResVo
|
|
|
+ * @desc: 查详情
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
public EntDetailResVo detail(Long id) {
|
|
|
KwsEnterprise kwsEnterprise = selectByKey(id);
|
|
|
if (Objects.isNull(kwsEnterprise)) {
|
|
|
@@ -714,6 +746,13 @@ public class KwsEnterpriseService {
|
|
|
return entDetailResVo;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param reqVo 入参
|
|
|
+ * @return FindEntUserPojo
|
|
|
+ * @desc: 查企业用户
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/26
|
|
|
+ */
|
|
|
public List<FindEntUserPojo> findEntUser(FindListReqVo reqVo) {
|
|
|
List<FindEntUserPojo> list = kwsEnterpriseDao.findUserByEntIds(Collections.singletonList(reqVo.getId()));
|
|
|
if (CollectionUtils.isEmpty(list)) {
|