| | |
| | | import cn.gistack.sm.sjztmd.entity.AttResBase; |
| | | import cn.gistack.sm.sjztmd.mapper.AttResBaseMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.vo.AttResAdVO; |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseVO; |
| | | import cn.gistack.sm.sjztmd.vo.ManagePersonVO; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<AttResBaseUserDTO> getAttResBaseUserPage(IPage<AttResBaseUserDTO> page,Map<String, Object> params) { |
| | | List<String> list = new ArrayList<>(); |
| | | Object adCode = params.get("adCode"); |
| | | if (null != adCode && !adCode.equals("")) { |
| | | list = callTaskMapper.getAllChildrenAreaByAreaCode(adCode.toString()); |
| | | public Object getAttResBaseUserPage(IPage<AttResBaseUserDTO> page,Map<String, Object> params) { |
| | | |
| | | Object isExport = params.get("isExport"); |
| | | // 判断是否导出,导出不分页 |
| | | if (null != isExport && !isExport.equals("")) { |
| | | return baseMapper.getAttResBaseUserPage(null,params); |
| | | } |
| | | List<AttResBaseUserDTO> attResBaseUserDTOList = baseMapper.getAttResBaseUserPage(page,list,params); |
| | | List<AttResBaseUserDTO> attResBaseUserDTOList = baseMapper.getAttResBaseUserPage(page,params); |
| | | // 返回数据 |
| | | return page.setRecords(attResBaseUserDTOList); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateResBaseByGuid(AttResBase attResBase) { |
| | | attResBase.setUpdateTime(DateUtil.now()); |
| | | return baseMapper.updateResBaseByGuid(attResBase); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前水库对应的市级编号和县区编号 |
| | | * @param res_cd |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AttResBaseVO getCityCountyCodeByResGuid(String res_cd) { |
| | | return baseMapper.getCityCountyCodeByResGuid(res_cd); |
| | | } |
| | | |
| | | /** |
| | | * 根据水库编码获取行政区数据 |
| | | * @param guid |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AttResAdVO getWaterRegionInfoByResGuid(String guid) { |
| | | return baseMapper.getWaterRegionInfoByResGuid(guid); |
| | | } |
| | | } |