| | |
| | | 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; |
| | |
| | | @Override |
| | | public Object getAttResBaseUserPage(IPage<AttResBaseUserDTO> page,Map<String, Object> params) { |
| | | |
| | | Object adCode = params.get("adCode"); |
| | | String ad_code = ""; |
| | | String code = adCode.toString(); |
| | | if (code.substring(0,4).indexOf("00") > -1) { |
| | | ad_code = adCode.toString().substring(0,2); |
| | | } else if (code.substring(0,6).indexOf("00") > -1) { |
| | | ad_code = adCode.toString().substring(0,4); |
| | | } else { |
| | | ad_code = adCode.toString().substring(0,6); |
| | | } |
| | | Object isExport = params.get("isExport"); |
| | | |
| | | // 判断是否导出,导出不分页 |
| | | if (null != isExport && !isExport.equals("")) { |
| | | return baseMapper.getAttResBaseUserPage(null,ad_code,params); |
| | | return baseMapper.getAttResBaseUserPage(null,params); |
| | | } |
| | | List<AttResBaseUserDTO> attResBaseUserDTOList = baseMapper.getAttResBaseUserPage(page,ad_code,params); |
| | | List<AttResBaseUserDTO> attResBaseUserDTOList = baseMapper.getAttResBaseUserPage(page,params); |
| | | // 返回数据 |
| | | return page.setRecords(attResBaseUserDTOList); |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |