| | |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @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)); |
| | |
| | | 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; |
| | | } |
| | | } |