|
@@ -1,25 +1,62 @@
|
|
|
package com.sckw.system.service;
|
|
package com.sckw.system.service;
|
|
|
|
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
|
|
+import com.sckw.core.exception.SystemException;
|
|
|
|
|
+import com.sckw.core.model.constant.Global;
|
|
|
|
|
+import com.sckw.core.model.enums.ApprovalEnum;
|
|
|
|
|
+import com.sckw.core.model.enums.EntTypeEnum;
|
|
|
|
|
+import com.sckw.core.model.page.PageHelperUtil;
|
|
|
|
|
+import com.sckw.core.model.page.PageResult;
|
|
|
|
|
+import com.sckw.core.utils.BeanUtils;
|
|
|
|
|
+import com.sckw.core.utils.CollectionUtils;
|
|
|
|
|
+import com.sckw.core.utils.IdWorker;
|
|
|
|
|
+import com.sckw.core.utils.StringUtils;
|
|
|
|
|
+import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
|
|
+import com.sckw.system.dao.KwsEntCertificateDao;
|
|
|
|
|
+import com.sckw.system.dao.KwsEntCheckTrackDao;
|
|
|
|
|
+import com.sckw.system.dao.KwsEntTypeDao;
|
|
|
import com.sckw.system.dao.KwsEnterpriseDao;
|
|
import com.sckw.system.dao.KwsEnterpriseDao;
|
|
|
|
|
+import com.sckw.system.model.KwsEntCertificate;
|
|
|
|
|
+import com.sckw.system.model.KwsEntCheckTrack;
|
|
|
|
|
+import com.sckw.system.model.KwsEntType;
|
|
|
import com.sckw.system.model.KwsEnterprise;
|
|
import com.sckw.system.model.KwsEnterprise;
|
|
|
-import com.sckw.system.model.vo.res.KwsEnterpriseResVo;
|
|
|
|
|
|
|
+import com.sckw.system.model.vo.req.*;
|
|
|
|
|
+import com.sckw.system.model.vo.res.CertificateResVo;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 企业service接口
|
|
* 企业service接口
|
|
|
|
|
+ *
|
|
|
* @author zk
|
|
* @author zk
|
|
|
* @date 2023-05-31
|
|
* @date 2023-05-31
|
|
|
*/
|
|
*/
|
|
|
@Service
|
|
@Service
|
|
|
public class KwsEnterpriseService extends ServiceImpl<KwsEnterpriseDao, KwsEnterprise> {
|
|
public class KwsEnterpriseService extends ServiceImpl<KwsEnterpriseDao, KwsEnterprise> {
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsEnterpriseDao kwsEnterpriseDao;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsEntTypeDao kwsEntTypeDao;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsEntCertificateDao kwsEntCertificateDao;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private KwsEntCheckTrackDao kwsEntCheckTrackDao;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 添加新纪录
|
|
* 添加新纪录
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
@@ -38,6 +75,7 @@ public class KwsEnterpriseService extends ServiceImpl<KwsEnterpriseDao, KwsEnter
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 删除记录-根据主键
|
|
* 删除记录-根据主键
|
|
|
|
|
+ *
|
|
|
* @param ids
|
|
* @param ids
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
@@ -47,47 +85,140 @@ public class KwsEnterpriseService extends ServiceImpl<KwsEnterpriseDao, KwsEnter
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 更新记录
|
|
|
|
|
- * @param params
|
|
|
|
|
- * @return
|
|
|
|
|
- * @throws Exception
|
|
|
|
|
|
|
+ * 更新记录,有的是更新有的是新增,两种情况
|
|
|
*/
|
|
*/
|
|
|
- public HttpResult update(KwsEnterpriseResVo params) throws Exception {
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ @Transactional(rollbackFor = {})
|
|
|
|
|
+ public void update(KwsEnterpriseReqVo reqVo) throws Exception {
|
|
|
|
|
+ /*1、更新企业信息表*/
|
|
|
|
|
+ long entId = reqVo.getId();
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(entId);
|
|
|
|
|
+ BeanUtils.copyProperties(reqVo, kwsEnterprise);
|
|
|
|
|
+ if (!this.updateById(kwsEnterprise)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*2、更新企业类型*/
|
|
|
|
|
+ LambdaQueryWrapper<KwsEntType> kwsEntTypeLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ kwsEntTypeLambdaQueryWrapper.eq(KwsEntType::getEntId, entId);
|
|
|
|
|
+// List<KwsEntType> kwsEntTypes = kwsEntTypeDao.selectList(kwsEntTypeLambdaQueryWrapper);
|
|
|
|
|
+ List<KwsEntType> kwsEntTypes = null;
|
|
|
|
|
+ List<String> typeReqList = Arrays.stream(reqVo.getEntTypes().split(",")).toList();
|
|
|
|
|
+ //若入参传来的type在表里面本来就有则不管,没有就新增
|
|
|
|
|
+ typeReqList.forEach(item -> {
|
|
|
|
|
+ if (CollectionUtils.isEmpty(kwsEntTypes) || kwsEntTypes.stream().filter(x -> x.getType() == Integer.parseInt(item)).findAny().isPresent()) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ KwsEntType kwsEntType = new KwsEntType();
|
|
|
|
|
+ kwsEntType.setEntId(entId);
|
|
|
|
|
+ kwsEntType.setType(Integer.parseInt(item));
|
|
|
|
|
+ if (kwsEntTypeDao.insert(kwsEntType) <= 0) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ //若表里的type没有在入参传来的type里则做逻辑删除,有就不管
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(kwsEntTypes)) {
|
|
|
|
|
+ kwsEntTypes.forEach(item -> {
|
|
|
|
|
+ if (typeReqList.contains(String.valueOf(item.getType()))) {
|
|
|
|
|
+ item.setDelFlag(Global.YES);
|
|
|
|
|
+ if (kwsEntTypeDao.update(item) <= 0) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*更新证书信息*/
|
|
|
|
|
+ List<BusinessLicense> certificates = reqVo.getCertificates();
|
|
|
|
|
+ certificates.forEach(item -> {
|
|
|
|
|
+ long id = item.getId();
|
|
|
|
|
+ if (Objects.isNull(id)) {
|
|
|
|
|
+ KwsEntCertificate kwsEntCertificate = new KwsEntCertificate();
|
|
|
|
|
+ kwsEntCertificate.setEntId(entId);
|
|
|
|
|
+ BeanUtils.copyProperties(item, kwsEntCertificate);
|
|
|
|
|
+ if(kwsEntCertificateDao.insert(kwsEntCertificate) <= 0) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ KwsEntCertificate kwsEntCertificate = checkEntCertificate(id);
|
|
|
|
|
+ BeanUtils.copyProperties(item, kwsEntCertificate);
|
|
|
|
|
+ //不做更新条数校验
|
|
|
|
|
+ kwsEntCertificateDao.update(kwsEntCertificate);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public KwsEntCertificate checkEntCertificate(long id){
|
|
|
|
|
+ KwsEntCertificate kwsEntCertificate = kwsEntCertificateDao.selectById(id);
|
|
|
|
|
+ if(Objects.isNull(kwsEntCertificate) || kwsEntCertificate.getDelFlag() == Global.NO){
|
|
|
|
|
+ throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENTCERTIFICATES_NOT_EXISTS);
|
|
|
|
|
+ }
|
|
|
|
|
+ return kwsEntCertificate;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 根据主键查询
|
|
* 根据主键查询
|
|
|
|
|
+ *
|
|
|
* @param key
|
|
* @param key
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
|
public KwsEnterprise selectByKey(Long key) throws Exception {
|
|
public KwsEnterprise selectByKey(Long key) throws Exception {
|
|
|
- return null;
|
|
|
|
|
|
|
+ return checkKwsEnterpriseById(key);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 分页查询
|
|
|
|
|
- * @param params
|
|
|
|
|
- * @return
|
|
|
|
|
- * @throws Exception
|
|
|
|
|
|
|
+ * @param reqVo
|
|
|
|
|
+ * @return HttpResult
|
|
|
|
|
+ * @desc: 分页查询
|
|
|
|
|
+ * @author: czh
|
|
|
|
|
+ * @date: 2023/6/9
|
|
|
*/
|
|
*/
|
|
|
- public List<KwsEnterprise> findPage(Map<String, Object> params) throws Exception{
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ public PageResult findPage(EntFindPageReqVo reqVo) throws Exception {
|
|
|
|
|
+ PageHelper.startPage(reqVo.getPageNum(), reqVo.getPageSize());
|
|
|
|
|
+ List<KwsEnterprise> list = findList(reqVo);
|
|
|
|
|
+ return PageHelperUtil.getPageResult(new PageInfo(list));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param reqVo
|
|
|
|
|
+ * @return List<KwsEnterprise>
|
|
|
|
|
+ * @desc: 全量查询
|
|
|
|
|
+ * @author: czh
|
|
|
|
|
+ * @date: 2023/6/9
|
|
|
|
|
+ */
|
|
|
|
|
+ public List<KwsEnterprise> findList(EntFindPageReqVo reqVo) {
|
|
|
|
|
+ LambdaQueryWrapper<KwsEnterprise> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotBlank(reqVo.getFirmName()), KwsEnterprise::getFirmName, reqVo.getFirmName());
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotBlank(reqVo.getContacts()), KwsEnterprise::getContacts, reqVo.getContacts());
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotBlank(reqVo.getTelephone()), KwsEnterprise::getTelephone, reqVo.getTelephone());
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotBlank(reqVo.getLegalName()), KwsEnterprise::getLegalName, reqVo.getLegalName());
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotBlank(reqVo.getLegalTelephone()), KwsEnterprise::getLegalTelephone, reqVo.getLegalTelephone());
|
|
|
|
|
+ wrapper.eq(!Objects.isNull(reqVo.getApproval()), KwsEnterprise::getApproval, reqVo.getApproval());
|
|
|
|
|
+ wrapper.eq(KwsEnterprise::getDelFlag, Global.NO);
|
|
|
|
|
+ wrapper.orderByDesc(KwsEnterprise::getCreateTime);
|
|
|
|
|
+ return this.list(wrapper);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 查询
|
|
* 查询
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
|
- public List<Map<String, Object>> findList(Map<String, Object> params) throws Exception{
|
|
|
|
|
|
|
+ public List<Map<String, Object>> findList(Map<String, Object> params) throws Exception {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 参数校验
|
|
* 参数校验
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
@@ -96,4 +227,121 @@ public class KwsEnterpriseService extends ServiceImpl<KwsEnterpriseDao, KwsEnter
|
|
|
|
|
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 新增企业(注册)
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transactional(rollbackFor = {})
|
|
|
|
|
+ public void register(EntRegisterReqVo reqVo) {
|
|
|
|
|
+ /*存企业信息表*/
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = new KwsEnterprise();
|
|
|
|
|
+ long entId = new IdWorker(1).nextId();
|
|
|
|
|
+ kwsEnterprise.setId(entId);
|
|
|
|
|
+ BeanUtils.copyProperties(reqVo, kwsEnterprise);
|
|
|
|
|
+
|
|
|
|
|
+ //一些待确认的字段
|
|
|
|
|
+ kwsEnterprise.setIntegral(0);
|
|
|
|
|
+ kwsEnterprise.setBalance(0L);
|
|
|
|
|
+ kwsEnterprise.setExperience(0);
|
|
|
|
|
+ kwsEnterprise.setMemberLevel(0);
|
|
|
|
|
+ kwsEnterprise.setRegTime(new Date());
|
|
|
|
|
+ kwsEnterprise.setApproval(ApprovalEnum.NO.getCode());
|
|
|
|
|
+ kwsEnterpriseDao.insertPPPPP(kwsEnterprise);
|
|
|
|
|
+ if (!this.save(kwsEnterprise)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*存企业类型,一个企业可以有多个类型*/
|
|
|
|
|
+ List<KwsEntType> kwsEntTypes = new ArrayList<>();
|
|
|
|
|
+ Arrays.stream(reqVo.getEntTypes().split(",")).toList().forEach(item -> {
|
|
|
|
|
+ KwsEntType kwsEntType = new KwsEntType();
|
|
|
|
|
+ kwsEntType.setEntId(entId);
|
|
|
|
|
+ kwsEntType.setType(Integer.parseInt(item));
|
|
|
|
|
+ kwsEntTypes.add(kwsEntType);
|
|
|
|
|
+ });
|
|
|
|
|
+ if (kwsEntTypeDao.insertForBatchtest(kwsEntTypes) != kwsEntTypes.size()) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*存企业证书*/
|
|
|
|
|
+ List<KwsEntCertificate> kwsEntCertificates = new ArrayList<>();
|
|
|
|
|
+ reqVo.getBusinessLicense().forEach(item -> {
|
|
|
|
|
+ KwsEntCertificate kwsEntCertificate = new KwsEntCertificate();
|
|
|
|
|
+ //todo 上传证书正反面,将url放到两个入参里
|
|
|
|
|
+ kwsEntCertificate.setEntId(entId);
|
|
|
|
|
+ BeanUtils.copyProperties(item, kwsEntCertificate);
|
|
|
|
|
+ kwsEntCertificates.add(kwsEntCertificate);
|
|
|
|
|
+ });
|
|
|
|
|
+ if (kwsEntCertificateDao.insertForBatch(kwsEntCertificates) != kwsEntCertificates.size()) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 企业审批
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transactional(rollbackFor = {})
|
|
|
|
|
+ public void approval(KwsEntCheckTrack kwsEntCheckTrack) {
|
|
|
|
|
+ /*更新企业信息主表审批状态*/
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(kwsEntCheckTrack.getEntId());
|
|
|
|
|
+ LambdaUpdateChainWrapper<KwsEnterprise> wrapper = new LambdaUpdateChainWrapper<>(kwsEnterpriseDao);
|
|
|
|
|
+ wrapper.eq(KwsEnterprise::getId, kwsEnterprise.getId());
|
|
|
|
|
+ wrapper.eq(KwsEnterprise::getApproval, ApprovalEnum.NO.getCode());
|
|
|
|
|
+ wrapper.set(KwsEnterprise::getApproval, kwsEntCheckTrack.getStatus());
|
|
|
|
|
+ if (!wrapper.update()) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*新增审批记录*/
|
|
|
|
|
+ if (kwsEntCheckTrackDao.insert(kwsEntCheckTrack) <= 0) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.INSERT_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private KwsEnterprise checkKwsEnterpriseById(long id) {
|
|
|
|
|
+ LambdaQueryWrapper<KwsEnterprise> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(KwsEnterprise::getId, id);
|
|
|
|
|
+ wrapper.eq(KwsEnterprise::getDelFlag, Global.NO);
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = this.getOne(wrapper);
|
|
|
|
|
+ if (Objects.isNull(kwsEnterprise)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENT_NOT_EXISTS);
|
|
|
|
|
+ }
|
|
|
|
|
+ return kwsEnterprise;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 企业冻结/解冻
|
|
|
|
|
+ */
|
|
|
|
|
+ public void freeze(FreezeReqVo reqVo) {
|
|
|
|
|
+ KwsEnterprise kwsEnterprise = checkKwsEnterpriseById(reqVo.getId());
|
|
|
|
|
+ kwsEnterprise.setStatus(reqVo.getStatus());
|
|
|
|
|
+ if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 企业证件信息
|
|
|
|
|
+ */
|
|
|
|
|
+ public List<CertificateResVo> certificate(Long id) {
|
|
|
|
|
+ /*查企业资质*/
|
|
|
|
|
+ LambdaQueryWrapper<KwsEntCertificate> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(KwsEntCertificate::getEntId, id);
|
|
|
|
|
+ wrapper.eq(KwsEntCertificate::getDelFlag, Global.NO);
|
|
|
|
|
+ List<KwsEntCertificate> kwsEntCertificates = kwsEntCertificateDao.selectList(wrapper);
|
|
|
|
|
+ if (CollectionUtils.isEmpty(kwsEntCertificates)) {
|
|
|
|
|
+ throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENTCERTIFICATES_NOT_EXISTS);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*拼装返参*/
|
|
|
|
|
+ List<CertificateResVo> list = new ArrayList<>();
|
|
|
|
|
+ kwsEntCertificates.forEach(item -> {
|
|
|
|
|
+ CertificateResVo certificateResVo = new CertificateResVo();
|
|
|
|
|
+ certificateResVo.setTypeName(EntTypeEnum.getName(item.getType()).getName());
|
|
|
|
|
+ BeanUtils.copyProperties(item, certificateResVo);
|
|
|
|
|
+ list.add(certificateResVo);
|
|
|
|
|
+ });
|
|
|
|
|
+ return list;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|