| | |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.sxkj.common.utils.HeaderUtils; |
| | | import org.sxkj.fw.area.entity.FwPoliceStationEntity; |
| | | import org.sxkj.fw.area.param.FwPoliceStationQueryParam; |
| | | import org.sxkj.fw.area.vo.FwPoliceStationVO; |
| | | import org.sxkj.fw.area.excel.FwPoliceStationExcel; |
| | | import org.sxkj.fw.area.mapper.FwPoliceStationMapper; |
| | |
| | | * @since 2026-01-08 |
| | | */ |
| | | @Service |
| | | public class FwPoliceStationServiceImpl extends BaseServiceImpl<FwPoliceStationMapper, FwPoliceStationEntity> implements IFwPoliceStationService { |
| | | public class FwPoliceStationServiceImpl extends BaseServiceImpl<FwPoliceStationMapper, FwPoliceStationEntity> |
| | | implements IFwPoliceStationService { |
| | | |
| | | @Override |
| | | public IPage<FwPoliceStationVO> selectFwPoliceStationPage(IPage<FwPoliceStationVO> page, FwPoliceStationVO fwPoliceStation) { |
| | | return page.setRecords(baseMapper.selectFwPoliceStationPage(page, fwPoliceStation)); |
| | | public IPage<FwPoliceStationVO> selectFwPoliceStationPage(IPage<FwPoliceStationVO> page, |
| | | FwPoliceStationQueryParam param) { |
| | | return page.setRecords(baseMapper.selectFwPoliceStationPage(page, param)); |
| | | } |
| | | |
| | | @Override |
| | | public List<FwPoliceStationVO> selectFwPoliceStationList() { |
| | | return baseMapper.selectFwPoliceStationList(); |
| | | public List<FwPoliceStationVO> selectFwPoliceStationList(String stationName) { |
| | | return baseMapper.selectFwPoliceStationList(stationName); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<FwPoliceStationExcel> exportFwPoliceStation(Wrapper<FwPoliceStationEntity> queryWrapper) { |
| | | List<FwPoliceStationExcel> fwPoliceStationList = baseMapper.exportFwPoliceStation(queryWrapper); |
| | | //fwPoliceStationList.forEach(fwPoliceStation -> { |
| | | // fwPoliceStation.setTypeName(DictCache.getValue(DictEnum.YES_NO, FwPoliceStation.getType())); |
| | | //}); |
| | | // fwPoliceStationList.forEach(fwPoliceStation -> { |
| | | // fwPoliceStation.setTypeName(DictCache.getValue(DictEnum.YES_NO, |
| | | // FwPoliceStation.getType())); |
| | | // }); |
| | | return fwPoliceStationList; |
| | | } |
| | | |
| | |
| | | deptId = null; |
| | | } |
| | | } |
| | | // String areaCode = HeaderUtils.getAreaCode(); |
| | | // if (StringUtil.isBlank(areaCode)) { |
| | | // areaCode = fwPoliceStation.getAreaCode(); |
| | | // } |
| | | // String areaCode = HeaderUtils.getAreaCode(); |
| | | // if (StringUtil.isBlank(areaCode)) { |
| | | // areaCode = fwPoliceStation.getAreaCode(); |
| | | // } |
| | | Date now = new Date(); |
| | | fwPoliceStation.setCreateUser(userId); |
| | | fwPoliceStation.setUpdateUser(userId); |
| | | if (deptId != null) { |
| | | fwPoliceStation.setCreateDept(deptId); |
| | | } |
| | | // if (StringUtil.isNotBlank(areaCode)) { |
| | | // fwPoliceStation.setAreaCode(areaCode); |
| | | // } |
| | | // if (StringUtil.isNotBlank(areaCode)) { |
| | | // fwPoliceStation.setAreaCode(areaCode); |
| | | // } |
| | | fwPoliceStation.setCreateTime(now); |
| | | fwPoliceStation.setUpdateTime(now); |
| | | } |