|
|
@@ -77,7 +77,7 @@ public class KwsEnterpriseService {
|
|
|
* @author: czh
|
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
|
- public void add(KwsEnterprise params) throws SystemException {
|
|
|
+ public void add(KwsEnterprise params) {
|
|
|
if (kwsEnterpriseDao.insert(params) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
}
|
|
|
@@ -92,7 +92,7 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
|
@Transactional(rollbackFor = {})
|
|
|
- public void deleteByKey(String ids) throws SystemException {
|
|
|
+ public void deleteByKey(String ids) {
|
|
|
//校验,有员工还在企业下则不能删除
|
|
|
List<Long> list = Arrays.stream(ids.split(",")).map(Long::parseLong).toList();
|
|
|
List<KwsEnterprise> kwsEnterprises = kwsEnterpriseDao.selectAllByKeys(list);
|
|
|
@@ -130,7 +130,7 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void update(UpdateEntInfoReqVo reqVo) throws SystemException {
|
|
|
+ public void update(UpdateEntInfoReqVo reqVo) {
|
|
|
/*1、更新企业信息表*/
|
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(LoginUserHolder.getEntId());
|
|
|
commonService.checkEntRepeat(reqVo.getFirmName(), "");
|
|
|
@@ -153,7 +153,7 @@ public class KwsEnterpriseService {
|
|
|
* @author: czh
|
|
|
* @date: 2023/7/26
|
|
|
*/
|
|
|
- public KwsEntCertificate checkEntCertificate(long id) throws SystemException {
|
|
|
+ public KwsEntCertificate checkEntCertificate(long id) {
|
|
|
KwsEntCertificate kwsEntCertificate = kwsEntCertificateDao.selectByKey(id);
|
|
|
if (Objects.isNull(kwsEntCertificate) || kwsEntCertificate.getDelFlag() == Global.YES) {
|
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENTCERTIFICATES_NOT_EXISTS);
|
|
|
@@ -181,7 +181,7 @@ public class KwsEnterpriseService {
|
|
|
* @author: czh
|
|
|
* @date: 2023/6/9
|
|
|
*/
|
|
|
- public PageResult findPage(EntFindPageReqVo reqVo) throws SystemException {
|
|
|
+ public PageResult findPage(EntFindPageReqVo reqVo) {
|
|
|
PageHelper.startPage(reqVo.getPage(), reqVo.getPageSize());
|
|
|
List<FindEntListPojo> list = findPojo(reqVo);
|
|
|
List<EntFindPageResVo> result = new ArrayList<>();
|
|
|
@@ -252,7 +252,7 @@ public class KwsEnterpriseService {
|
|
|
* 新增企业(注册)
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void register(EntRegisterReqVo reqVo) throws SystemException {
|
|
|
+ public void register(EntRegisterReqVo reqVo) {
|
|
|
checkRegisterParam(reqVo);
|
|
|
|
|
|
/*1、存企业信息表*/
|
|
|
@@ -376,7 +376,7 @@ public class KwsEnterpriseService {
|
|
|
* 企业审批
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void approval(ApprovalReqVo reqVo) throws SystemException {
|
|
|
+ public void approval(ApprovalReqVo reqVo) {
|
|
|
Integer status = reqVo.getStatus();
|
|
|
Long entId = reqVo.getEntId();
|
|
|
List<KwsEntCertificate> kwsEntCertificateList = kwsEntCertificateDao.selectByEntId(entId);
|
|
|
@@ -446,7 +446,7 @@ public class KwsEnterpriseService {
|
|
|
* @author: czh
|
|
|
* @date: 2023/7/26
|
|
|
*/
|
|
|
- private KwsEnterprise checkKwsEnterpriseById(long id) throws SystemException {
|
|
|
+ private KwsEnterprise checkKwsEnterpriseById(long id) {
|
|
|
KwsEnterprise kwsEnterprise = queryKwsEnterpriseById(id);
|
|
|
if (Objects.isNull(kwsEnterprise) || kwsEnterprise.getDelFlag() == Global.YES) {
|
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
|
@@ -468,7 +468,7 @@ public class KwsEnterpriseService {
|
|
|
/**
|
|
|
* 企业冻结/解冻
|
|
|
*/
|
|
|
- public void freeze(FreezeReqVo reqVo) throws SystemException {
|
|
|
+ public void freeze(FreezeReqVo reqVo) {
|
|
|
KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(reqVo.getId());
|
|
|
kwsEnterprise.setStatus(reqVo.getStatus());
|
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
@@ -479,7 +479,7 @@ public class KwsEnterpriseService {
|
|
|
/**
|
|
|
* 企业证件信息
|
|
|
*/
|
|
|
- public List<CertificateResVo> certificate(Long entId) throws SystemException {
|
|
|
+ public List<CertificateResVo> certificate(Long entId) {
|
|
|
/*查企业资质*/
|
|
|
List<KwsEntCertificate> kwsEntCertificates = kwsEntCertificateDao.selectByEntId(entId);
|
|
|
if (CollectionUtils.isEmpty(kwsEntCertificates)) {
|
|
|
@@ -500,7 +500,7 @@ public class KwsEnterpriseService {
|
|
|
/**
|
|
|
* 企业证件信息
|
|
|
*/
|
|
|
- public List<CertificateResVo> queryCertificate(Long entId) throws SystemException {
|
|
|
+ public List<CertificateResVo> queryCertificate(Long entId) {
|
|
|
/*查企业资质*/
|
|
|
List<KwsEntCertificate> kwsEntCertificates = kwsEntCertificateDao.selectByEntId(entId);
|
|
|
if (CollectionUtils.isEmpty(kwsEntCertificates)) {
|
|
|
@@ -536,7 +536,7 @@ public class KwsEnterpriseService {
|
|
|
* @date: 2023/6/19
|
|
|
*/
|
|
|
@Transactional(rollbackFor = {})
|
|
|
- public void addEntSettle(AddEntSettleReqVo reqVo) throws SystemException {
|
|
|
+ public void addEntSettle(AddEntSettleReqVo reqVo) {
|
|
|
checkAddEntSettleParam(reqVo);
|
|
|
//运营端新增企业入驻,直接通过
|
|
|
if (Objects.isNull(reqVo.getEntPid())) {
|