| | |
| | | import org.springblade.common.utils.PositionUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.modules.yw.entity.FirmInfo; |
| | | import org.springblade.modules.yw.entity.RescueTeamEntity; |
| | | import org.springblade.modules.yw.excel.FirmInfoExcel; |
| | | import org.springblade.modules.yw.mapper.FirmInfoMapper; |
| | | import org.springblade.modules.yw.service.IFirmInfoService; |
| | | import org.springblade.modules.yw.service.IRescueTeamService; |
| | | import org.springblade.modules.yw.vo.FirmInfoVO; |
| | | import org.springblade.modules.yw.vo.SearchVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | |
| | | */ |
| | | @Service |
| | | public class FirmInfoServiceImpl extends ServiceImpl<FirmInfoMapper, FirmInfo> implements IFirmInfoService { |
| | | |
| | | @Lazy |
| | | @Resource |
| | | private IRescueTeamService rescueTeamService; |
| | | |
| | | /** |
| | | * 自定义分页查询 |
| | |
| | | DictBizCache.getValues("industry_category",detail.getCategory()) |
| | | ); |
| | | } |
| | | // 查询救援队伍信息 |
| | | QueryWrapper<RescueTeamEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("firm_id",detail.getId()).eq("is_deleted",0); |
| | | List<RescueTeamEntity> list = rescueTeamService.list(wrapper); |
| | | if (list.size()>0){ |
| | | firmInfo.setRescuePerName(list.get(0).getPerInCha()); |
| | | firmInfo.setRescuePerPhone(list.get(0).getPerInChaPho()); |
| | | } |
| | | // 返回 |
| | | return detail; |
| | | } |