| | |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.entity.AttResBase; |
| | | import cn.gistack.sm.sjztmd.entity.AttResStagChar; |
| | | import cn.gistack.sm.sjztmd.excel.AttResBaseUserExcel; |
| | | import cn.gistack.sm.sjztmd.service.IAttAdBaseService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.vo.AttAdBaseVO; |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @ApiOperation(value = "中台水库-查询该行政区下的水库", notes = "中台水库-查询该行政区下的水库") |
| | | @GetMapping(value = "/getListByRegion") |
| | | public R getListByRegion(@ApiIgnore @RequestParam Map<String, Object> obj,Query query) { |
| | | IPage<AttResBase> pageList = attResBaseService.getListByRegion(Condition.getPage(query),obj); |
| | | IPage<AttResBaseVO> pageList = attResBaseService.getListByRegion(Condition.getPage(query),obj); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | |
| | | public R getAttResBaseUserPage(@RequestParam Map<String, Object> params,Query query) { |
| | | return R.data(attResBaseService.getAttResBaseUserPage(Condition.getPage(query),params)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出责任人数据 |
| | | * @param params 条件查询参数对象 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "中台水库-导出责任人数据", notes = "中台水库-导出责任人数据") |
| | | @GetMapping(value = "/exportAttResBaseUser") |
| | | public void exportAttResBaseUser(@RequestParam Map<String, Object> params, HttpServletResponse response) { |
| | | |
| | | List<AttResBaseUserExcel> list = attResBaseService.exportAttResBaseUser(params); |
| | | ExcelUtil.export(response, "水库责任人数据数据" + DateUtil.time(), "水库责任人数据表", list, AttResBaseUserExcel.class); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 编辑 |
| | |
| | | return R.data(attResBaseService.getWaterRegionInfoByResGuid(guid)); |
| | | } |
| | | |
| | | /** |
| | | * 更新报汛状态 |
| | | * @param ids |
| | | * @param status |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/updateIsShowStatus") |
| | | public R updateIsShowStatus(String ids,Integer status){ |
| | | return R.status(attResBaseService.updateIsShowStatus(ids,status)); |
| | | } |
| | | |
| | | } |