智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/recordLegalperson/service/impl/RecordLegalpersonServiceImpl.java
@@ -18,12 +18,18 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.core.mp.support.Condition;
import org.springblade.modules.licetuser.entity.Licetuser;
import org.springblade.modules.licetuser.service.ILicetuserService;
import org.springblade.modules.recordLegalperson.dto.RecordLegalpersonDTO;
import org.springblade.modules.recordLegalperson.entity.RecordLegalperson;
import org.springblade.modules.recordLegalperson.mapper.RecordLegalpersonMapper;
import org.springblade.modules.recordLegalperson.service.IRecordLegalpersonService;
import org.springblade.modules.recordLegalperson.vo.RecordLegalpersonVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
@@ -35,6 +41,9 @@
@Service
public class RecordLegalpersonServiceImpl extends ServiceImpl<RecordLegalpersonMapper, RecordLegalperson> implements IRecordLegalpersonService {
   @Autowired
   private ILicetuserService licetuserService;
   @Override
   public IPage<RecordLegalpersonVO> selectRecordPage(IPage<RecordLegalpersonVO> page, RecordLegalpersonVO record, String jurisdiction) {
      return page.setRecords(baseMapper.selectRecordPage(page, record,jurisdiction));
@@ -45,4 +54,26 @@
      return baseMapper.selectIn(cardid,type);
   }
   /**
    * 保安公司法人变更详情(基本信息和附件列表信息)
    * @param record
    * @return
    */
   @Override
   public RecordLegalpersonDTO getDetails(RecordLegalpersonDTO record) {
      //查询公司信息
      RecordLegalpersonDTO recordLegalpersonDTO = baseMapper.selectRecordDetail(record);
      if (null!= recordLegalpersonDTO) {
         //查询材料信息
         Licetuser licetuser = new Licetuser();
         licetuser.setUserid(record.getCardid());
         licetuser.setPtype(record.getPtype());
         List<Licetuser> licetusers = licetuserService.list(Condition.getQueryWrapper(licetuser));
         //数据封装
         recordLegalpersonDTO.setLicetusers(licetusers);
         //返回数据
         return recordLegalpersonDTO;
      }
      return null;
   }
}