55 changed files with 3005 additions and 15 deletions
@ -0,0 +1,115 @@ |
|||
package com.kms.yg.df.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.shuili.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.kms.yg.df.domain.AttEmbankmentDangerKnowledge; |
|||
import com.kms.yg.df.service.AttEmbankmentDangerKnowledgeService; |
|||
|
|||
|
|||
/** |
|||
* 堤围工程隐患处置知识库Controller |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/df/knowledge") |
|||
@Api(tags = "堤围工程隐患处置知识库") |
|||
public class AttEmbankmentDangerKnowledgeController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private AttEmbankmentDangerKnowledgeService attEmbankmentDangerKnowledgeService; |
|||
|
|||
|
|||
/** |
|||
* 查询堤围工程隐患处置知识库列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("堤围工程隐患处置知识库列表") |
|||
public IPage list(@RequestBody SearchParam<AttEmbankmentDangerKnowledge> sp) |
|||
{ |
|||
return attEmbankmentDangerKnowledgeService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出堤围工程隐患处置知识库列表 |
|||
*/ |
|||
@Log(title = "堤围工程隐患处置知识库导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("堤围工程隐患处置知识库导出") |
|||
public AjaxResult export(@RequestBody AttEmbankmentDangerKnowledge attEmbankmentDangerKnowledge) |
|||
{ |
|||
List<AttEmbankmentDangerKnowledge> list = attEmbankmentDangerKnowledgeService.listByIds(attEmbankmentDangerKnowledge.getIds()); |
|||
ExcelUtil<AttEmbankmentDangerKnowledge> util = new ExcelUtil<>(AttEmbankmentDangerKnowledge.class); |
|||
return util.exportExcel(list, "knowledge"); |
|||
} |
|||
|
|||
/** |
|||
* 获取堤围工程隐患处置知识库详细信息 |
|||
*/ |
|||
@ApiOperation(" 堤围工程隐患处置知识库详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(attEmbankmentDangerKnowledgeService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增堤围工程隐患处置知识库 |
|||
*/ |
|||
@Log(title = "堤围工程隐患处置知识库新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("堤围工程隐患处置知识库新增") |
|||
public AjaxResult add(@RequestBody AttEmbankmentDangerKnowledge attEmbankmentDangerKnowledge) |
|||
{ |
|||
BaseEntityUtils.preInsert(attEmbankmentDangerKnowledge); |
|||
return toAjax(attEmbankmentDangerKnowledgeService.save(attEmbankmentDangerKnowledge)); |
|||
} |
|||
|
|||
/** |
|||
* 修改堤围工程隐患处置知识库 |
|||
*/ |
|||
@ApiOperation("堤围工程隐患处置知识库修改") |
|||
@Log(title = "堤围工程隐患处置知识库修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody AttEmbankmentDangerKnowledge attEmbankmentDangerKnowledge) |
|||
{ |
|||
return toAjax(attEmbankmentDangerKnowledgeService.updateById(attEmbankmentDangerKnowledge)); |
|||
} |
|||
|
|||
/** |
|||
* 删除堤围工程隐患处置知识库 |
|||
*/ |
|||
@ApiOperation("堤围工程隐患处置知识库删除") |
|||
@Log(title = "堤围工程隐患处置知识库删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(attEmbankmentDangerKnowledgeService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.kms.yg.df.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 堤围工程隐患处置知识库对象 att_embankment_danger_knowledge |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@TableName("att_embankment_danger_knowledge") |
|||
@Data |
|||
@ApiModel("堤围工程隐患处置知识库") |
|||
public class AttEmbankmentDangerKnowledge extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String name; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String keyword; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String file; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("${comment}") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("${comment}") |
|||
private String updateUid; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.df.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.AttEmbankmentDangerKnowledge; |
|||
|
|||
/** |
|||
* 堤围工程隐患处置知识库Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@Repository |
|||
public interface AttEmbankmentDangerKnowledgeMapper extends BaseMapper<AttEmbankmentDangerKnowledge> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.df.service; |
|||
|
|||
import com.shuili.common.core.service.BaseService; |
|||
import com.kms.yg.df.mapper.AttEmbankmentDangerKnowledgeMapper; |
|||
import com.kms.yg.df.domain.AttEmbankmentDangerKnowledge; |
|||
import org.springframework.stereotype.Service; |
|||
/** |
|||
* 堤围工程隐患处置知识库Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@Service |
|||
public class AttEmbankmentDangerKnowledgeService extends BaseService<AttEmbankmentDangerKnowledgeMapper, AttEmbankmentDangerKnowledge>{ |
|||
|
|||
} |
@ -0,0 +1,115 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.shuili.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.kms.yg.res.domain.AttResDangerKnowledge; |
|||
import com.kms.yg.res.service.AttResDangerKnowledgeService; |
|||
|
|||
|
|||
/** |
|||
* 水库隐患处置知识库Controller |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/knowledge") |
|||
@Api(tags = "水库隐患处置知识库") |
|||
public class AttResDangerKnowledgeController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private AttResDangerKnowledgeService attResDangerKnowledgeService; |
|||
|
|||
|
|||
/** |
|||
* 查询水库隐患处置知识库列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水库隐患处置知识库列表") |
|||
public IPage list(@RequestBody SearchParam<AttResDangerKnowledge> sp) |
|||
{ |
|||
return attResDangerKnowledgeService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水库隐患处置知识库列表 |
|||
*/ |
|||
@Log(title = "水库隐患处置知识库导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水库隐患处置知识库导出") |
|||
public AjaxResult export(@RequestBody AttResDangerKnowledge attResDangerKnowledge) |
|||
{ |
|||
List<AttResDangerKnowledge> list = attResDangerKnowledgeService.listByIds(attResDangerKnowledge.getIds()); |
|||
ExcelUtil<AttResDangerKnowledge> util = new ExcelUtil<>(AttResDangerKnowledge.class); |
|||
return util.exportExcel(list, "knowledge"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水库隐患处置知识库详细信息 |
|||
*/ |
|||
@ApiOperation(" 水库隐患处置知识库详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(attResDangerKnowledgeService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水库隐患处置知识库 |
|||
*/ |
|||
@Log(title = "水库隐患处置知识库新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水库隐患处置知识库新增") |
|||
public AjaxResult add(@RequestBody AttResDangerKnowledge attResDangerKnowledge) |
|||
{ |
|||
BaseEntityUtils.preInsert(attResDangerKnowledge); |
|||
return toAjax(attResDangerKnowledgeService.save(attResDangerKnowledge)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水库隐患处置知识库 |
|||
*/ |
|||
@ApiOperation("水库隐患处置知识库修改") |
|||
@Log(title = "水库隐患处置知识库修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody AttResDangerKnowledge attResDangerKnowledge) |
|||
{ |
|||
return toAjax(attResDangerKnowledgeService.updateById(attResDangerKnowledge)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水库隐患处置知识库 |
|||
*/ |
|||
@ApiOperation("水库隐患处置知识库删除") |
|||
@Log(title = "水库隐患处置知识库删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(attResDangerKnowledgeService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,123 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
import com.kms.yg.res.domain.BsSgcResFxzzcy; |
|||
import com.kms.yg.res.service.BsSgcResFxzzcyService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 水闸防汛组织成员Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/fxzzcy") |
|||
@Api(tags = "水闸防汛组织成员") |
|||
public class BBsSgcResFxzzcyController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResFxzzcyService bsSgcSzFxzzcyService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询水闸防汛组织成员列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸防汛组织成员列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResFxzzcy> sp) |
|||
{ |
|||
return bsSgcSzFxzzcyService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸防汛组织成员列表 |
|||
*/ |
|||
@Log(title = "水闸防汛组织成员导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸防汛组织成员导出") |
|||
public AjaxResult export(@RequestBody BsSgcResFxzzcy bsSgcSzFxzzcy) |
|||
{ |
|||
List<BsSgcResFxzzcy> list = bsSgcSzFxzzcyService.listByIds(bsSgcSzFxzzcy.getIds()); |
|||
ExcelUtil<BsSgcResFxzzcy> util = new ExcelUtil<>(BsSgcResFxzzcy.class); |
|||
return util.exportExcel(list, "fxzzcy"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸防汛组织成员详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸防汛组织成员详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzFxzzcyService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸防汛组织成员 |
|||
*/ |
|||
@Log(title = "水闸防汛组织成员新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸防汛组织成员新增") |
|||
public AjaxResult add(@RequestBody BsSgcResFxzzcy bsSgcSzFxzzcy) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzFxzzcy); |
|||
return toAjax(bsSgcSzFxzzcyService.save(bsSgcSzFxzzcy)); |
|||
} |
|||
|
|||
@PostMapping("/saveBatch") |
|||
public AjaxResult saveBatch(@RequestBody List<BsSgcResFxzzcy> list) { |
|||
for (BsSgcResFxzzcy bsSgcSzFxzzcy : list) { |
|||
BaseEntityUtils.preInsert(bsSgcSzFxzzcy); |
|||
} |
|||
return toAjax(bsSgcSzFxzzcyService.saveBatch(list)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸防汛组织成员 |
|||
*/ |
|||
@ApiOperation("水闸防汛组织成员修改") |
|||
@Log(title = "水闸防汛组织成员修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResFxzzcy bsSgcSzFxzzcy) |
|||
{ |
|||
return toAjax(bsSgcSzFxzzcyService.updateById(bsSgcSzFxzzcy)); |
|||
} |
|||
|
|||
@PutMapping("/editBatch") |
|||
public AjaxResult editBatch(@RequestBody List<BsSgcResFxzzcy> list) { |
|||
return toAjax(bsSgcSzFxzzcyService.saveOrUpdateBatch(list)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸防汛组织成员 |
|||
*/ |
|||
@ApiOperation("水闸防汛组织成员删除") |
|||
@Log(title = "水闸防汛组织成员删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzFxzzcyService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,111 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResBydyzb; |
|||
import com.kms.yg.res.service.BsSgcResBydyzbService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 水闸备用电源主Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/bydyzb") |
|||
@Api(tags = "水闸备用电源主") |
|||
public class BsSgcResBydyzbController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResBydyzbService bsSgcSzBydyzbService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询水闸备用电源主列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸备用电源主列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResBydyzb> sp) |
|||
{ |
|||
return bsSgcSzBydyzbService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸备用电源主列表 |
|||
*/ |
|||
@Log(title = "水闸备用电源主导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸备用电源主导出") |
|||
public AjaxResult export(@RequestBody BsSgcResBydyzb bsSgcSzBydyzb) |
|||
{ |
|||
List<BsSgcResBydyzb> list = bsSgcSzBydyzbService.listByIds(bsSgcSzBydyzb.getIds()); |
|||
ExcelUtil<BsSgcResBydyzb> util = new ExcelUtil<>(BsSgcResBydyzb.class); |
|||
return util.exportExcel(list, "bydyzb"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸备用电源主详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸备用电源主详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzBydyzbService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸备用电源主 |
|||
*/ |
|||
@Log(title = "水闸备用电源主新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸备用电源主新增") |
|||
public AjaxResult add(@RequestBody BsSgcResBydyzb bsSgcSzBydyzb) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzBydyzb); |
|||
return toAjax(bsSgcSzBydyzbService.save(bsSgcSzBydyzb)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸备用电源主 |
|||
*/ |
|||
@ApiOperation("水闸备用电源主修改") |
|||
@Log(title = "水闸备用电源主修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResBydyzb bsSgcSzBydyzb) |
|||
{ |
|||
return toAjax(bsSgcSzBydyzbService.updateById(bsSgcSzBydyzb)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸备用电源主 |
|||
*/ |
|||
@ApiOperation("水闸备用电源主删除") |
|||
@Log(title = "水闸备用电源主删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzBydyzbService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,164 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.common.utils.UserUtils; |
|||
import com.kms.system.domain.SysXzqh; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResBzbp; |
|||
import com.kms.yg.res.service.BsSgcResBzbpService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.core.domain.entity.SysDept; |
|||
import com.shuili.common.core.domain.entity.SysUser; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 堤防标识标牌Controller |
|||
* |
|||
* @author kms |
|||
* @date 2023-12-25 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/dikeMark") |
|||
@Api(tags = "堤防标识标牌") |
|||
public class BsSgcResBzbpController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResBzbpService bsSgcResBzbpService; |
|||
|
|||
//测试
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
|
|||
/** |
|||
* 查询堤防标识标牌列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("堤防标识标牌列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResBzbp> sp) |
|||
{ |
|||
|
|||
BsSgcResBzbp projectInfo = sp.getData(); |
|||
return bsSgcResBzbpService.selectPage(sp,null); |
|||
|
|||
// return BsSgcResBzbpService.selectPage(sp);
|
|||
} |
|||
|
|||
/** |
|||
* 导出堤防标识标牌列表 |
|||
*/ |
|||
@Log(title = "堤防标识标牌导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("堤防标识标牌导出") |
|||
public AjaxResult export(@RequestBody BsSgcResBzbp BsSgcResBzbp) |
|||
{ |
|||
List<BsSgcResBzbp> list = bsSgcResBzbpService.listByIds(BsSgcResBzbp.getIds()); |
|||
ExcelUtil<BsSgcResBzbp> util = new ExcelUtil<>(BsSgcResBzbp.class); |
|||
return util.exportExcel(list, "dikeMark"); |
|||
} |
|||
|
|||
/** |
|||
* 获取堤防标识标牌详细信息 |
|||
*/ |
|||
@ApiOperation(" 堤防标识标牌详情") |
|||
@GetMapping(value = "/{embankmentCode}") |
|||
public AjaxResult getInfo(@PathVariable("embankmentCode") String embankmentCode) |
|||
{ |
|||
QueryWrapper<BsSgcResBzbp> queryWrapper = new QueryWrapper<>(); |
|||
queryWrapper.eq("res_code", embankmentCode); |
|||
queryWrapper.orderByAsc("sort_time"); |
|||
List<BsSgcResBzbp> list = bsSgcResBzbpService.list(queryWrapper); |
|||
return AjaxResult.success(list); |
|||
} |
|||
|
|||
/** |
|||
* 新增堤防标识标牌 |
|||
*/ |
|||
@Log(title = "堤防标识标牌新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("堤防标识标牌新增") |
|||
public AjaxResult add(@RequestBody List<BsSgcResBzbp> list) |
|||
{ |
|||
for (BsSgcResBzbp BsSgcResBzbp : list) { |
|||
BaseEntityUtils.preInsert(BsSgcResBzbp); |
|||
BsSgcResBzbp.setSortTime(new Date()); |
|||
String adcd = BsSgcResBzbp.getAdcd(); |
|||
if (adcd == null) { |
|||
SysUser user = UserUtils.getUser(); |
|||
String deptId = user.getDeptId(); |
|||
SysDept sysDept = sysDeptService.get(deptId); |
|||
BsSgcResBzbp.setAdcd(sysDept.getXzqhName()); |
|||
} |
|||
bsSgcResBzbpService.save(BsSgcResBzbp); |
|||
} |
|||
|
|||
|
|||
return AjaxResult.success(); |
|||
} |
|||
|
|||
/** |
|||
* 修改堤防标识标牌 |
|||
*/ |
|||
@ApiOperation("堤防标识标牌修改") |
|||
@Log(title = "堤防标识标牌修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody List<BsSgcResBzbp> list) |
|||
{ |
|||
for (BsSgcResBzbp BsSgcResBzbp : list) { |
|||
String adcd = BsSgcResBzbp.getAdcd(); |
|||
if (BsSgcResBzbp.getSortTime() == null) { |
|||
BsSgcResBzbp.setSortTime(new Date()); |
|||
} |
|||
if (adcd == null) { |
|||
SysUser user = UserUtils.getUser(); |
|||
String deptId = user.getDeptId(); |
|||
SysDept sysDept = sysDeptService.get(deptId); |
|||
BsSgcResBzbp.setAdcd(sysDept.getXzqhName()); |
|||
} |
|||
bsSgcResBzbpService.saveOrUpdate(BsSgcResBzbp); |
|||
} |
|||
return AjaxResult.success(); |
|||
} |
|||
|
|||
/** |
|||
* 删除堤防标识标牌 |
|||
*/ |
|||
@ApiOperation("堤防标识标牌删除") |
|||
@Log(title = "堤防标识标牌删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcResBzbpService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
|
|||
@DeleteMapping("/del/{embankmentCodes}") |
|||
public AjaxResult del(@PathVariable String[] embankmentCodes) { |
|||
for (String embankmentCode : embankmentCodes) { |
|||
QueryWrapper<BsSgcResBzbp> queryWrapper = new QueryWrapper<>(); |
|||
|
|||
queryWrapper.eq("embankment_code", embankmentCode); |
|||
|
|||
bsSgcResBzbpService.remove(queryWrapper); |
|||
} |
|||
|
|||
|
|||
return AjaxResult.success(); |
|||
} |
|||
} |
@ -0,0 +1,131 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResFxwz; |
|||
import com.kms.yg.res.service.BsSgcResFxwzService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.ConditionView; |
|||
import com.shuili.common.core.domain.MongoOperType; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.StringUtils; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸防汛物资Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/fxwz") |
|||
@Api(tags = "水闸防汛物资") |
|||
public class BsSgcResFxwzController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResFxwzService bsSgcSzFxwzService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询水闸防汛物资列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸防汛物资列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResFxwz> sp) |
|||
{ |
|||
List<ConditionView> conditionViews = new ArrayList<>(); |
|||
ConditionView conditionView = new ConditionView(); |
|||
ConditionView cv = new ConditionView(); |
|||
BsSgcResFxwz data = sp.getData(); |
|||
if(data!=null&&StringUtils.isNotEmpty(data.getPersonName())){ |
|||
cv.setName("person_name"); |
|||
cv.setValue(data.getPersonName()); |
|||
cv.setType(MongoOperType.LIKE); |
|||
} |
|||
if(data!=null&&StringUtils.isNotEmpty(data.getMaterialName())){ |
|||
conditionView.setName("material_name"); |
|||
conditionView.setValue(data.getMaterialName()); |
|||
conditionView.setType(MongoOperType.LIKE); |
|||
} |
|||
conditionViews.add(conditionView); |
|||
conditionViews.add(cv); |
|||
sp.setConditionViews(conditionViews); |
|||
return bsSgcSzFxwzService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸防汛物资列表 |
|||
*/ |
|||
@Log(title = "水闸防汛物资导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸防汛物资导出") |
|||
public AjaxResult export(@RequestBody BsSgcResFxwz bsSgcSzFxwz) |
|||
{ |
|||
List<BsSgcResFxwz> list = bsSgcSzFxwzService.listByIds(bsSgcSzFxwz.getIds()); |
|||
ExcelUtil<BsSgcResFxwz> util = new ExcelUtil<>(BsSgcResFxwz.class); |
|||
return util.exportExcel(list, "fxwz"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸防汛物资详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸防汛物资详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzFxwzService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸防汛物资 |
|||
*/ |
|||
@Log(title = "水闸防汛物资新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸防汛物资新增") |
|||
public AjaxResult add(@RequestBody BsSgcResFxwz bsSgcSzFxwz) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzFxwz); |
|||
return toAjax(bsSgcSzFxwzService.save(bsSgcSzFxwz)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸防汛物资 |
|||
*/ |
|||
@ApiOperation("水闸防汛物资修改") |
|||
@Log(title = "水闸防汛物资修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResFxwz bsSgcSzFxwz) |
|||
{ |
|||
return toAjax(bsSgcSzFxwzService.updateById(bsSgcSzFxwz)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸防汛物资 |
|||
*/ |
|||
@ApiOperation("水闸防汛物资删除") |
|||
@Log(title = "水闸防汛物资删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzFxwzService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,148 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
|
|||
import com.kms.yg.res.domain.AttResBase; |
|||
import com.kms.yg.res.domain.BsSgcResFxzz; |
|||
import com.kms.yg.res.domain.BsSgcResFxzzDto; |
|||
import com.kms.yg.res.domain.BsSgcResFxzzcy; |
|||
import com.kms.yg.res.service.AttResBaseService; |
|||
import com.kms.yg.res.service.BsSgcResFxzzService; |
|||
import com.kms.yg.res.service.BsSgcResFxzzcyService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.BeanUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 防汛组织Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/fxzz") |
|||
@Api(tags = "防汛组织") |
|||
public class BsSgcResFxzzController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResFxzzService bsSgcSzFxzzService; |
|||
|
|||
@Autowired |
|||
private AttResBaseService bsSgcSzSafeJbxxService; |
|||
|
|||
@Autowired |
|||
private BsSgcResFxzzcyService bsSgcSzFxzzcyService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询防汛组织列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("防汛组织列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResFxzz> sp) |
|||
{ |
|||
return bsSgcSzFxzzService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出防汛组织列表 |
|||
*/ |
|||
@Log(title = "防汛组织导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("防汛组织导出") |
|||
public AjaxResult export(@RequestBody BsSgcResFxzz bsSgcSzFxzz) |
|||
{ |
|||
List<BsSgcResFxzz> list = bsSgcSzFxzzService.listByIds(bsSgcSzFxzz.getIds()); |
|||
ExcelUtil<BsSgcResFxzz> util = new ExcelUtil<>(BsSgcResFxzz.class); |
|||
return util.exportExcel(list, "fxzz"); |
|||
} |
|||
|
|||
/** |
|||
* 获取防汛组织详细信息 |
|||
*/ |
|||
@ApiOperation(" 防汛组织详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzFxzzService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增防汛组织 |
|||
*/ |
|||
@Log(title = "防汛组织新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("防汛组织新增") |
|||
public AjaxResult add(@RequestBody BsSgcResFxzzDto dto) |
|||
{ |
|||
String dikeCode = dto.getResCode(); |
|||
AttResBase byId = bsSgcSzSafeJbxxService.getOne(Wrappers.lambdaQuery(AttResBase.class) |
|||
.eq(AttResBase::getResCode, dikeCode)); |
|||
|
|||
byId.setRemark("4"); |
|||
bsSgcSzSafeJbxxService.updateById(byId); |
|||
BsSgcResFxzz bsSgcSzFxzz = new BsSgcResFxzz(); |
|||
BeanUtils.copyProperties(dto,bsSgcSzFxzz); |
|||
BaseEntityUtils.preInsert(bsSgcSzFxzz); |
|||
bsSgcSzFxzzService.save(bsSgcSzFxzz); |
|||
String id = bsSgcSzFxzz.getId(); |
|||
List<BsSgcResFxzzcy> cy = dto.getCy(); |
|||
if (CollectionUtil.isNotEmpty(cy)) { |
|||
cy.stream().forEach(x->x.setOrganizationId(id)); |
|||
return toAjax(bsSgcSzFxzzcyService.saveBatch(cy)); |
|||
}else { |
|||
return AjaxResult.success(); |
|||
} |
|||
|
|||
} |
|||
|
|||
/** |
|||
* 修改防汛组织 |
|||
*/ |
|||
@ApiOperation("防汛组织修改") |
|||
@Log(title = "防汛组织修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResFxzz bsSgcSzFxzz) |
|||
{ |
|||
String dikeCode = bsSgcSzFxzz.getResCode(); |
|||
AttResBase byId = bsSgcSzSafeJbxxService.getOne(Wrappers.lambdaQuery(AttResBase.class) |
|||
.eq(AttResBase::getResCode, dikeCode)); |
|||
byId.setRemark("4"); |
|||
bsSgcSzSafeJbxxService.updateById(byId); |
|||
return toAjax(bsSgcSzFxzzService.updateById(bsSgcSzFxzz)); |
|||
} |
|||
|
|||
/** |
|||
* 删除防汛组织 |
|||
*/ |
|||
@ApiOperation("防汛组织删除") |
|||
@Log(title = "防汛组织删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzFxzzService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,112 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResJfgl; |
|||
import com.kms.yg.res.service.BsSgcResJfglService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 经费管理Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-06 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/jfgl") |
|||
@Api(tags = "经费管理") |
|||
public class BsSgcResJfglController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResJfglService BsSgcResJfglService; |
|||
|
|||
|
|||
|
|||
|
|||
@GetMapping("/listByCode/{code}") |
|||
public AjaxResult listById(@PathVariable("code") String code) |
|||
{ |
|||
return AjaxResult.success(BsSgcResJfglService.getByCode(code)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询经费管理列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("经费管理列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResJfgl> sp) |
|||
{ |
|||
return BsSgcResJfglService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出经费管理列表 |
|||
*/ |
|||
@Log(title = "经费管理导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("经费管理导出") |
|||
public AjaxResult export(@RequestBody BsSgcResJfgl BsSgcResJfgl) |
|||
{ |
|||
List<BsSgcResJfgl> list = BsSgcResJfglService.listByIds(BsSgcResJfgl.getIds()); |
|||
ExcelUtil<BsSgcResJfgl> util = new ExcelUtil<>(BsSgcResJfgl.class); |
|||
return util.exportExcel(list, "jfgl"); |
|||
} |
|||
|
|||
/** |
|||
* 获取经费管理详细信息 |
|||
*/ |
|||
@ApiOperation(" 经费管理详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(BsSgcResJfglService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增经费管理 |
|||
*/ |
|||
@Log(title = "经费管理新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("经费管理新增") |
|||
public AjaxResult add(@RequestBody BsSgcResJfgl BsSgcResJfgl) |
|||
{ |
|||
BaseEntityUtils.preInsert(BsSgcResJfgl); |
|||
return toAjax(BsSgcResJfglService.save(BsSgcResJfgl)); |
|||
} |
|||
|
|||
/** |
|||
* 修改经费管理 |
|||
*/ |
|||
@ApiOperation("经费管理修改") |
|||
@Log(title = "经费管理修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResJfgl BsSgcResJfgl) |
|||
{ |
|||
return toAjax(BsSgcResJfglService.updateById(BsSgcResJfgl)); |
|||
} |
|||
|
|||
/** |
|||
* 删除经费管理 |
|||
*/ |
|||
@ApiOperation("经费管理删除") |
|||
@Log(title = "经费管理删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String ids) |
|||
{ |
|||
return AjaxResult.success(BsSgcResJfglService.removeById(ids)); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResQqhj; |
|||
import com.kms.yg.res.service.BsSgcResQqhjService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸确权划界Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/qqhj") |
|||
@Api(tags = "水闸确权划界") |
|||
public class BsSgcResQqhjController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResQqhjService bsSgcResQqhjService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询水闸确权划界列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸确权划界列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResQqhj> sp) |
|||
{ |
|||
return bsSgcResQqhjService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸确权划界列表 |
|||
*/ |
|||
@Log(title = "水闸确权划界导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸确权划界导出") |
|||
public AjaxResult export(@RequestBody BsSgcResQqhj bsSgcResQqhj) |
|||
{ |
|||
List<BsSgcResQqhj> list = bsSgcResQqhjService.listByIds(bsSgcResQqhj.getIds()); |
|||
ExcelUtil<BsSgcResQqhj> util = new ExcelUtil<>(BsSgcResQqhj.class); |
|||
return util.exportExcel(list, "qqhj"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸确权划界详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸确权划界详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcResQqhjService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸确权划界 |
|||
*/ |
|||
@Log(title = "水闸确权划界新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸确权划界新增") |
|||
public AjaxResult add(@RequestBody BsSgcResQqhj bsSgcResQqhj) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcResQqhj); |
|||
return toAjax(bsSgcResQqhjService.save(bsSgcResQqhj)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸确权划界 |
|||
*/ |
|||
@ApiOperation("水闸确权划界修改") |
|||
@Log(title = "水闸确权划界修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResQqhj bsSgcResQqhj) |
|||
{ |
|||
return toAjax(bsSgcResQqhjService.updateById(bsSgcResQqhj)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸确权划界 |
|||
*/ |
|||
@ApiOperation("水闸确权划界删除") |
|||
@Log(title = "水闸确权划界删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcResQqhjService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,111 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysDeptService; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResYaxx; |
|||
import com.kms.yg.res.service.BsSgcResYaxxService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 水闸预案Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-23 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/yaxx") |
|||
@Api(tags = "水闸预案") |
|||
public class BsSgcResYaxxController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResYaxxService bsSgcSzYaxxService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
/** |
|||
* 查询水闸预案列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸预案列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResYaxx> sp) |
|||
{ |
|||
return bsSgcSzYaxxService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸预案列表 |
|||
*/ |
|||
@Log(title = "水闸预案导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸预案导出") |
|||
public AjaxResult export(@RequestBody BsSgcResYaxx bsSgcSzYaxx) |
|||
{ |
|||
List<BsSgcResYaxx> list = bsSgcSzYaxxService.listByIds(bsSgcSzYaxx.getIds()); |
|||
ExcelUtil<BsSgcResYaxx> util = new ExcelUtil<>(BsSgcResYaxx.class); |
|||
return util.exportExcel(list, "yaxx"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸预案详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸预案详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzYaxxService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸预案 |
|||
*/ |
|||
@Log(title = "水闸预案新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸预案新增") |
|||
public AjaxResult add(@RequestBody BsSgcResYaxx bsSgcSzYaxx) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzYaxx); |
|||
return toAjax(bsSgcSzYaxxService.save(bsSgcSzYaxx)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸预案 |
|||
*/ |
|||
@ApiOperation("水闸预案修改") |
|||
@Log(title = "水闸预案修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResYaxx bsSgcSzYaxx) |
|||
{ |
|||
return toAjax(bsSgcSzYaxxService.updateById(bsSgcSzYaxx)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸预案 |
|||
*/ |
|||
@ApiOperation("水闸预案删除") |
|||
@Log(title = "水闸预案删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzYaxxService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,115 @@ |
|||
package com.kms.yg.res.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResYhxx; |
|||
import com.kms.yg.res.service.BsSgcResYhxxService; |
|||
import com.kms.yg.sz.domain.dto.PieDto; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.StringUtils; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Arrays; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸隐患信息Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/res/yhxx") |
|||
@Api(tags = "水闸隐患信息") |
|||
public class BsSgcResYhxxController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcResYhxxService bsSgcSzYhxxService; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询水闸隐患信息列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸隐患信息列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcResYhxx> sp) |
|||
{ |
|||
return bsSgcSzYhxxService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸隐患信息列表 |
|||
*/ |
|||
@Log(title = "水闸隐患信息导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸隐患信息导出") |
|||
public AjaxResult export(@RequestBody BsSgcResYhxx bsSgcSzYhxx) |
|||
{ |
|||
List<BsSgcResYhxx> list = bsSgcSzYhxxService.listByIds(bsSgcSzYhxx.getIds()); |
|||
ExcelUtil<BsSgcResYhxx> util = new ExcelUtil<>(BsSgcResYhxx.class); |
|||
return util.exportExcel(list, "yhxx"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸隐患信息详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸隐患信息详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzYhxxService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸隐患信息 |
|||
*/ |
|||
@Log(title = "水闸隐患信息新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸隐患信息新增") |
|||
public AjaxResult add(@RequestBody BsSgcResYhxx bsSgcSzYhxx) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzYhxx); |
|||
return toAjax(bsSgcSzYhxxService.save(bsSgcSzYhxx)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸隐患信息 |
|||
*/ |
|||
@ApiOperation("水闸隐患信息修改") |
|||
@Log(title = "水闸隐患信息修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcResYhxx bsSgcSzYhxx) |
|||
{ |
|||
return toAjax(bsSgcSzYhxxService.updateById(bsSgcSzYhxx)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸隐患信息 |
|||
*/ |
|||
@ApiOperation("水闸隐患信息删除") |
|||
@Log(title = "水闸隐患信息删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzYhxxService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 水库隐患处置知识库对象 att_res_danger_knowledge |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@TableName("att_res_danger_knowledge") |
|||
@Data |
|||
@ApiModel("水库隐患处置知识库") |
|||
public class AttResDangerKnowledge extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 文档名称 */ |
|||
@Excel(name = "文档名称") |
|||
@ApiModelProperty("文档名称") |
|||
private String name; |
|||
|
|||
/** 关键词 */ |
|||
@Excel(name = "关键词") |
|||
@ApiModelProperty("关键词") |
|||
private String keyword; |
|||
|
|||
/** 附件 */ |
|||
@Excel(name = "附件") |
|||
@ApiModelProperty("附件") |
|||
private String file; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("附件") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("附件") |
|||
private String updateUid; |
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 水闸备用电源主对象 bs_sgc_df_bydyzb |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@TableName("bs_sgc_df_bydyzb_v2") |
|||
@Data |
|||
@ApiModel("水闸备用电源主") |
|||
public class BsSgcResBydyzb extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 水闸id */ |
|||
@Excel(name = "水闸id") |
|||
@ApiModelProperty("水闸id") |
|||
private String resCode; |
|||
|
|||
/** 电源种类 */ |
|||
@Excel(name = "电源种类") |
|||
@ApiModelProperty("电源种类") |
|||
private String powerType; |
|||
|
|||
/** 水闸名称 */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String resName; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String relation; |
|||
|
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 堤防标识标牌对象 bs_sgc_df_bzbp |
|||
* |
|||
* @author kms |
|||
* @date 2023-12-25 |
|||
*/ |
|||
@TableName("bs_sgc_df_bzbp_v2") |
|||
@Data |
|||
@ApiModel("堤防标识标牌") |
|||
public class BsSgcResBzbp extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 标志名称 */ |
|||
@Excel(name = "标志名称") |
|||
@ApiModelProperty("标志名称") |
|||
private String markName; |
|||
|
|||
/** 堤防id */ |
|||
@Excel(name = "堤防编码") |
|||
@ApiModelProperty("堤防编码") |
|||
@TableField("res_code") |
|||
private String resCode; |
|||
|
|||
/** 标识位置 */ |
|||
@Excel(name = "标识位置") |
|||
@ApiModelProperty("标识位置") |
|||
private String markLocation; |
|||
|
|||
/** 标牌类型 */ |
|||
@Excel(name = "标牌类型") |
|||
@ApiModelProperty("标牌类型") |
|||
private String type; |
|||
|
|||
/** 标识类型 */ |
|||
@Excel(name = "标识类型") |
|||
@ApiModelProperty("标识类型") |
|||
private String markType; |
|||
|
|||
/** 上传图片 */ |
|||
@Excel(name = "上传图片") |
|||
@ApiModelProperty("上传图片") |
|||
private String photo; |
|||
|
|||
/** 标牌编号 */ |
|||
@Excel(name = "标牌编号") |
|||
@ApiModelProperty("标牌编号") |
|||
private String markCode; |
|||
|
|||
/** $column.columnComment */ |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "标牌编号") |
|||
@ApiModelProperty("标牌编号") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "标牌编号") |
|||
@ApiModelProperty("标牌编号") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "标牌编号") |
|||
@ApiModelProperty("标牌编号") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "标牌编号") |
|||
@ApiModelProperty("标牌编号") |
|||
private String relation; |
|||
|
|||
private String adcd; |
|||
|
|||
@TableField("res_name") |
|||
private String resName; |
|||
|
|||
@TableField(exist = false) |
|||
private String number; |
|||
|
|||
@TableField(exist = false) |
|||
private String oneType; |
|||
@TableField(exist = false) |
|||
private String twoType; |
|||
@TableField(exist = false) |
|||
private String threeType; |
|||
@TableField(exist = false) |
|||
private String fourType; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss:SSS",timezone="GMT+8") |
|||
private Date sortTime; |
|||
|
|||
} |
@ -0,0 +1,94 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 水闸防汛物资对象 bs_sgc_df_fxwz |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@TableName("bs_sgc_df_fxwz_v2") |
|||
@Data |
|||
@ApiModel("水闸防汛物资") |
|||
public class BsSgcResFxwz extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 水闸id */ |
|||
@Excel(name = "水闸id") |
|||
@ApiModelProperty("水闸id") |
|||
private String resCode; |
|||
|
|||
/** 物资名称 */ |
|||
@Excel(name = "物资名称") |
|||
@ApiModelProperty("物资名称") |
|||
private String materialName; |
|||
|
|||
/** 水闸名称 */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String resName; |
|||
|
|||
/** 负责人名称 */ |
|||
@Excel(name = "负责人名称") |
|||
@ApiModelProperty("负责人名称") |
|||
private String personName; |
|||
|
|||
/** 负责人电话 */ |
|||
@Excel(name = "负责人电话") |
|||
@ApiModelProperty("负责人电话") |
|||
private String personPhone; |
|||
|
|||
/** 负责人职务 */ |
|||
@Excel(name = "负责人职务") |
|||
@ApiModelProperty("负责人职务") |
|||
private String personLevel; |
|||
|
|||
/** 物资数量 */ |
|||
@Excel(name = "物资数量") |
|||
@ApiModelProperty("物资数量") |
|||
private String materialNumber; |
|||
|
|||
/** 采购时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
@ApiModelProperty("采购时间") |
|||
private Date procurementTime; |
|||
|
|||
/** 物资种类 */ |
|||
@Excel(name = "物资种类") |
|||
@ApiModelProperty("物资种类") |
|||
private String materialType; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "物资种类") |
|||
@ApiModelProperty("物资种类") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "物资种类") |
|||
@ApiModelProperty("物资种类") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "物资种类") |
|||
@ApiModelProperty("物资种类") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "物资种类") |
|||
@ApiModelProperty("物资种类") |
|||
private String relation; |
|||
|
|||
@ApiModelProperty("保质期") |
|||
private String shelfLife; |
|||
} |
@ -0,0 +1,96 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 防汛组织对象 bs_sgc_df_fxzz |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@TableName("bs_sgc_df_fxzz_v2") |
|||
@Data |
|||
@ApiModel("防汛组织") |
|||
public class BsSgcResFxzz extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 组织名称 */ |
|||
@Excel(name = "组织名称") |
|||
@ApiModelProperty("组织名称") |
|||
private String organizationName; |
|||
|
|||
/** 所属区划 */ |
|||
@Excel(name = "所属区划") |
|||
@ApiModelProperty("所属区划") |
|||
private String adcd; |
|||
|
|||
/** 负责人名称 */ |
|||
@Excel(name = "负责人名称") |
|||
@ApiModelProperty("负责人名称") |
|||
private String chargePersonName; |
|||
|
|||
/** 负责人电话 */ |
|||
@Excel(name = "负责人电话") |
|||
@ApiModelProperty("负责人电话") |
|||
private String chargePersonPhone; |
|||
|
|||
/** 负责人职务 */ |
|||
@Excel(name = "负责人职务") |
|||
@ApiModelProperty("负责人职务") |
|||
private String chargePersonDuites; |
|||
|
|||
/** 负责人类型 */ |
|||
@Excel(name = "负责人类型") |
|||
@ApiModelProperty("负责人类型") |
|||
private String chargePersonType; |
|||
|
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String proCode; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String proNo; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "成员") |
|||
@ApiModelProperty("成员") |
|||
private String relation; |
|||
|
|||
|
|||
@TableField("res_name") |
|||
private String resName; |
|||
|
|||
@TableField("res_type") |
|||
private String resType; |
|||
|
|||
private String resCode; |
|||
|
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.kms.yg.df.domain.BsSgcDfFxzz; |
|||
import com.kms.yg.df.domain.BsSgcDfFxzzcy; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class BsSgcResFxzzDto extends BsSgcResFxzz implements Serializable { |
|||
|
|||
|
|||
private List<BsSgcResFxzzcy> cy; |
|||
|
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 水闸防汛组织成员对象 bs_sgc_df_fxzzcy |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@TableName("bs_sgc_df_fxzzcy_v2") |
|||
@Data |
|||
@ApiModel("水闸防汛组织成员") |
|||
public class BsSgcResFxzzcy extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 组织id */ |
|||
@Excel(name = "组织id") |
|||
@ApiModelProperty("组织id") |
|||
private String organizationId; |
|||
|
|||
/** 组织人员名称 */ |
|||
@Excel(name = "组织人员名称") |
|||
@ApiModelProperty("组织人员名称") |
|||
private String name; |
|||
|
|||
/** 职务 */ |
|||
@Excel(name = "职务") |
|||
@ApiModelProperty("职务") |
|||
private String duites; |
|||
|
|||
/** 电话 */ |
|||
@Excel(name = "电话") |
|||
@ApiModelProperty("电话") |
|||
private String phone; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "电话") |
|||
@ApiModelProperty("电话") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "电话") |
|||
@ApiModelProperty("电话") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "电话") |
|||
@ApiModelProperty("电话") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "电话") |
|||
@ApiModelProperty("电话") |
|||
private String relation; |
|||
|
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 经费管理对象 bs_sgc_df_jfgl |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-06 |
|||
*/ |
|||
@TableName("bs_sgc_df_jfgl_v2") |
|||
@Data |
|||
@ApiModel("经费管理") |
|||
public class BsSgcResJfgl extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 堤防编码 */ |
|||
@Excel(name = "堤防编码") |
|||
@ApiModelProperty("堤防编码") |
|||
private String resCode; |
|||
|
|||
/** 单位名称 */ |
|||
@Excel(name = "单位名称") |
|||
@ApiModelProperty("单位名称") |
|||
private String unitName; |
|||
|
|||
/** 人员数量 */ |
|||
@Excel(name = "人员数量") |
|||
@ApiModelProperty("人员数量") |
|||
private Long peopleNum; |
|||
|
|||
/** 经费 */ |
|||
@Excel(name = "经费") |
|||
@ApiModelProperty("经费") |
|||
private String funds; |
|||
|
|||
/** 经费用途 */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String fundsPurpose; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String relation; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "经费用途") |
|||
@ApiModelProperty("经费用途") |
|||
private String type; |
|||
|
|||
|
|||
@TableField(exist = false) |
|||
private String resName; |
|||
@TableField(exist = false) |
|||
private String resType; |
|||
@TableField(exist = false) |
|||
private String engScal; |
|||
@TableField(exist = false) |
|||
private String unit; |
|||
@TableField(exist = false) |
|||
private String adcd; |
|||
|
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 水闸确权划界对象 bs_sgc_df_qqhj |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@TableName("bs_sgc_df_qqhj_v2") |
|||
@Data |
|||
@ApiModel("水闸确权划界") |
|||
public class BsSgcResQqhj extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
|
|||
@TableField(exist = false) |
|||
private String engScal; |
|||
|
|||
/** 工程功能 */ |
|||
@Excel(name = "工程功能") |
|||
@ApiModelProperty("工程功能") |
|||
private String engineeringFunctions; |
|||
|
|||
/** 土地用途 */ |
|||
@Excel(name = "土地用途") |
|||
@ApiModelProperty("土地用途") |
|||
private String landUse; |
|||
|
|||
/** 限制条件 */ |
|||
@Excel(name = "限制条件") |
|||
@ApiModelProperty("限制条件") |
|||
private String limitations; |
|||
|
|||
/** 产权所有者 */ |
|||
@Excel(name = "产权所有者") |
|||
@ApiModelProperty("产权所有者") |
|||
private String propertyOwner; |
|||
|
|||
/** 所有者权力 |
|||
|
|||
及义务 */ |
|||
@Excel(name = "所有者权力及义务") |
|||
@ApiModelProperty("所有者权力及义务") |
|||
private String ownerRights; |
|||
|
|||
/** 有效期 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd") |
|||
@ApiModelProperty("有效期") |
|||
private Date periodValidity; |
|||
|
|||
/** 产权证书 */ |
|||
@Excel(name = "产权证书") |
|||
@ApiModelProperty("产权证书") |
|||
private String certificateTitle; |
|||
|
|||
/** 管理范围 */ |
|||
@Excel(name = "管理范围") |
|||
@ApiModelProperty("管理范围") |
|||
private String managementScope; |
|||
|
|||
/** 保护范围 */ |
|||
@Excel(name = "保护范围") |
|||
@ApiModelProperty("保护范围") |
|||
private String protectScope; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "保护范围") |
|||
@ApiModelProperty("保护范围") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "保护范围") |
|||
@ApiModelProperty("保护范围") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "保护范围") |
|||
@ApiModelProperty("保护范围") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "保护范围") |
|||
@ApiModelProperty("保护范围") |
|||
private String relation; |
|||
|
|||
@TableField(exist = false) |
|||
private String resName; |
|||
@TableField(exist = false) |
|||
private String resType; |
|||
|
|||
private String resCode; |
|||
|
|||
@TableField(exist = false) |
|||
private String adcd; |
|||
|
|||
private String pointLatitudeLongitudeList; |
|||
private String lineLatitudeLongitudeList; |
|||
private String allLatitudeLongitudeList; |
|||
private String pointLatitudeLongitudeListV2; |
|||
private String lineLatitudeLongitudeListV2; |
|||
private String allLatitudeLongitudeListV2; |
|||
|
|||
} |
@ -0,0 +1,98 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 水闸预案对象 bs_sgc_df_yaxx |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-23 |
|||
*/ |
|||
@TableName("bs_sgc_df_yaxx_v2") |
|||
@Data |
|||
@ApiModel("水闸预案") |
|||
public class BsSgcResYaxx extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 水闸id */ |
|||
@Excel(name = "水闸id") |
|||
@ApiModelProperty("水闸id") |
|||
private String resId; |
|||
|
|||
/** 水闸代码 */ |
|||
@Excel(name = "水闸代码") |
|||
@ApiModelProperty("水闸代码") |
|||
private String resCode; |
|||
|
|||
/** 水闸名称 */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String resName; |
|||
|
|||
/** 水闸类型 */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String dikeType; |
|||
|
|||
/** 工程规模 */ |
|||
@Excel(name = "工程规模") |
|||
@ApiModelProperty("工程规模") |
|||
private String engineerScale; |
|||
|
|||
/** 负责人 */ |
|||
@Excel(name = "负责人") |
|||
@ApiModelProperty("负责人") |
|||
private String personName; |
|||
|
|||
/** 类型 */ |
|||
@Excel(name = "类型") |
|||
@ApiModelProperty("类型") |
|||
private String type; |
|||
|
|||
/** 开展时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "开展时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
@ApiModelProperty("开展时间") |
|||
private Date implementationTime; |
|||
|
|||
/** 预案内容 */ |
|||
@Excel(name = "预案内容") |
|||
@ApiModelProperty("预案内容") |
|||
private String planContent; |
|||
|
|||
/** 图片 */ |
|||
@Excel(name = "附件") |
|||
@ApiModelProperty("附件") |
|||
private String photo; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "图片") |
|||
@ApiModelProperty("图片") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "图片") |
|||
@ApiModelProperty("图片") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "图片") |
|||
@ApiModelProperty("图片") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "图片") |
|||
@ApiModelProperty("图片") |
|||
private String relation; |
|||
|
|||
} |
@ -0,0 +1,124 @@ |
|||
package com.kms.yg.res.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 水闸隐患信息对象 bs_sgc_df_yhxx |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@TableName("bs_sgc_df_yhxx_v2") |
|||
@Data |
|||
@ApiModel("水闸隐患信息") |
|||
public class BsSgcResYhxx extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 水闸id */ |
|||
@Excel(name = "水闸id") |
|||
@ApiModelProperty("水闸id") |
|||
private String resCode; |
|||
|
|||
private String head; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|||
private Date processingTime; |
|||
|
|||
/** 提出人 */ |
|||
@Excel(name = "提出人") |
|||
@ApiModelProperty("提出人") |
|||
private String proposer; |
|||
|
|||
/** 发现时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "发现时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
@ApiModelProperty("发现时间") |
|||
private Date findTime; |
|||
|
|||
/** 地点 */ |
|||
@Excel(name = "地点") |
|||
@ApiModelProperty("地点") |
|||
private String address; |
|||
|
|||
/** 巡查类型 */ |
|||
@Excel(name = "巡查类型") |
|||
@ApiModelProperty("巡查类型") |
|||
private String inspectionType; |
|||
|
|||
/** 所属仪器 */ |
|||
@Excel(name = "所属仪器") |
|||
@ApiModelProperty("所属仪器") |
|||
private String instrument; |
|||
|
|||
/** 隐患详情 */ |
|||
@Excel(name = "隐患详情") |
|||
@ApiModelProperty("隐患详情") |
|||
private String dangerDetail; |
|||
|
|||
/** 图片 */ |
|||
@Excel(name = "图片") |
|||
@ApiModelProperty("图片") |
|||
private String photo; |
|||
|
|||
/** 状态 */ |
|||
@Excel(name = "状态") |
|||
@ApiModelProperty("状态") |
|||
private String status; |
|||
|
|||
/** 花费资金 */ |
|||
@Excel(name = "花费资金") |
|||
@ApiModelProperty("花费资金") |
|||
private BigDecimal cost; |
|||
|
|||
/** 处理方案 */ |
|||
@Excel(name = "处理方案") |
|||
@ApiModelProperty("处理方案") |
|||
private String finishMethod; |
|||
|
|||
/** 隐患处理结果信息 */ |
|||
@Excel(name = "隐患处理结果信息") |
|||
@ApiModelProperty("隐患处理结果信息") |
|||
private String result; |
|||
|
|||
/** 水闸名称 */ |
|||
@Excel(name = "水闸名称") |
|||
@ApiModelProperty("水闸名称") |
|||
private String resName; |
|||
|
|||
/** 水闸类型 */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String resType; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "水闸类型") |
|||
@ApiModelProperty("水闸类型") |
|||
private String relation; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.res.domain.AttResDangerKnowledge; |
|||
|
|||
/** |
|||
* 水库隐患处置知识库Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@Repository |
|||
public interface AttResDangerKnowledgeMapper extends BaseMapper<AttResDangerKnowledge> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfBydyzb; |
|||
import com.kms.yg.res.domain.BsSgcResBydyzb; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* 水闸备用电源主Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResBydyzbMapper extends BaseMapper<BsSgcResBydyzb> { |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfBzbp; |
|||
import com.kms.yg.res.domain.BsSgcResBzbp; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 堤防标识标牌Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2023-12-25 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResBzbpMapper extends BaseMapper<BsSgcResBzbp> { |
|||
|
|||
List<BsSgcResBzbp> selectList1(@Param("pageNum") int pageNum,@Param("pageSize") int pageSize,@Param("embankmentName") String embankmentCode); |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfFxwz; |
|||
import com.kms.yg.res.domain.BsSgcResFxwz; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* 水闸防汛物资Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResFxwzMapper extends BaseMapper<BsSgcResFxwz> { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfFxzz; |
|||
import com.kms.yg.res.domain.BsSgcResFxzz; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 防汛组织Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResFxzzMapper extends BaseMapper<BsSgcResFxzz> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfFxzzcy; |
|||
import com.kms.yg.res.domain.BsSgcResFxzzcy; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* 水闸防汛组织成员Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResFxzzcyMapper extends BaseMapper<BsSgcResFxzzcy> { |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfJfgl; |
|||
import com.kms.yg.res.domain.BsSgcResJfgl; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 经费管理Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-06 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResJfglMapper extends BaseMapper<BsSgcResJfgl> { |
|||
|
|||
|
|||
List<BsSgcResJfgl> getList(@Param("id") String id, |
|||
@Param("dikeType") String dikeType, |
|||
@Param("dikeName") String dikeName, |
|||
@Param("adcd") String adcd, |
|||
@Param("orderBy") String orderBy, |
|||
@Param("pageNum") int pageNum, |
|||
@Param("pageSize") int pageSize); |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfQqhj; |
|||
import com.kms.yg.res.domain.BsSgcResQqhj; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸确权划界Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResQqhjMapper extends BaseMapper<BsSgcResQqhj> { |
|||
|
|||
List<BsSgcResQqhj> getList(@Param("id") String id, |
|||
@Param("resName") String resName, |
|||
@Param("resType") String resType, |
|||
@Param("resCode") String resCode, |
|||
@Param("adcd") String adcd, |
|||
@Param("orderBy") String orderBy, |
|||
@Param("pageNum") int pageNum, |
|||
@Param("pageSize") int pageSize); |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfYaxx; |
|||
import com.kms.yg.res.domain.BsSgcResYaxx; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* 水闸预案Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-23 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResYaxxMapper extends BaseMapper<BsSgcResYaxx> { |
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.kms.yg.res.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfYhxx; |
|||
import com.kms.yg.res.domain.BsSgcResYhxx; |
|||
import com.kms.yg.sz.domain.dto.PieDto; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸隐患信息Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcResYhxxMapper extends BaseMapper<BsSgcResYhxx> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.shuili.common.core.service.BaseService; |
|||
import com.kms.yg.res.mapper.AttResDangerKnowledgeMapper; |
|||
import com.kms.yg.res.domain.AttResDangerKnowledge; |
|||
import org.springframework.stereotype.Service; |
|||
/** |
|||
* 水库隐患处置知识库Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-14 |
|||
*/ |
|||
@Service |
|||
public class AttResDangerKnowledgeService extends BaseService<AttResDangerKnowledgeMapper, AttResDangerKnowledge>{ |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.yg.df.domain.BsSgcDfBydyzb; |
|||
import com.kms.yg.df.mapper.BsSgcDfBydyzbMapper; |
|||
import com.kms.yg.res.domain.BsSgcResBydyzb; |
|||
import com.kms.yg.res.mapper.BsSgcResBydyzbMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 水闸备用电源主Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResBydyzbService extends BaseService<BsSgcResBydyzbMapper, BsSgcResBydyzb>{ |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
|
|||
import com.kms.yg.df.mapper.BsSgcDfBzbpMapper; |
|||
import com.kms.yg.res.domain.BsSgcResBzbp; |
|||
import com.kms.yg.res.mapper.BsSgcResBzbpMapper; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 堤防标识标牌Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2023-12-25 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResBzbpService extends BaseService<BsSgcResBzbpMapper, BsSgcResBzbp>{ |
|||
|
|||
@Autowired |
|||
private BsSgcResBzbpMapper bsSgcResBzbpMapper; |
|||
|
|||
public IPage selectPage(SearchParam<BsSgcResBzbp> sp, String adcd) { |
|||
|
|||
QueryWrapper<BsSgcResBzbp> queryWrapper = new QueryWrapper<>(); |
|||
BsSgcResBzbp projectInfo = sp.getData(); |
|||
|
|||
if (projectInfo != null) { |
|||
String resCode=projectInfo.getResCode(); |
|||
// String projectType = projectInfo.getEmbankmentType();
|
|||
|
|||
queryWrapper.eq(projectInfo.getId()!=null,"id", projectInfo.getId()); |
|||
queryWrapper.like(resCode != null, "res_code", resCode); |
|||
// queryWrapper.like(projectType != null, "embankment_type", projectType);
|
|||
} |
|||
|
|||
|
|||
Map<String, Object> params = sp.getParams(); |
|||
if (params!=null) { |
|||
//create_time
|
|||
if (params.get("orderBy") != null) { |
|||
String orderBy = (String) params.get("orderBy"); |
|||
queryWrapper.orderByDesc(orderBy != null, orderBy); |
|||
} |
|||
} |
|||
|
|||
|
|||
Page<BsSgcResBzbp> page = new Page<>(sp.getPageNum(),sp.getPageSize()); |
|||
List<BsSgcResBzbp> infoPage = bsSgcResBzbpMapper |
|||
.selectList1(sp.getPageNum(), sp.getPageSize(), projectInfo.getResName()); |
|||
Page<BsSgcResBzbp> bsSgcDfBzbpPage = new Page<>(); |
|||
|
|||
bsSgcDfBzbpPage.setRecords(infoPage); |
|||
bsSgcDfBzbpPage.setTotal(infoPage.size()); |
|||
return bsSgcDfBzbpPage; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.yg.df.domain.BsSgcDfFxwz; |
|||
import com.kms.yg.df.mapper.BsSgcDfFxwzMapper; |
|||
import com.kms.yg.res.domain.BsSgcResFxwz; |
|||
import com.kms.yg.res.mapper.BsSgcResFxwzMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 水闸防汛物资Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResFxwzService extends BaseService<BsSgcResFxwzMapper, BsSgcResFxwz> { |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.yg.df.mapper.BsSgcDfFxzzMapper; |
|||
import com.kms.yg.res.domain.BsSgcResFxzz; |
|||
import com.kms.yg.res.mapper.BsSgcResFxzzMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
|
|||
/** |
|||
* 防汛组织Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResFxzzService extends BaseService<BsSgcResFxzzMapper, BsSgcResFxzz>{ |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.yg.df.domain.BsSgcDfFxzzcy; |
|||
import com.kms.yg.df.mapper.BsSgcDfFxzzcyMapper; |
|||
import com.kms.yg.res.domain.BsSgcResFxzzcy; |
|||
import com.kms.yg.res.mapper.BsSgcResFxzzcyMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 水闸防汛组织成员Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-17 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResFxzzcyService extends BaseService<BsSgcResFxzzcyMapper, BsSgcResFxzzcy>{ |
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.kms.system.service.SysXzqhService; |
|||
|
|||
import com.kms.yg.res.domain.BsSgcResJfgl; |
|||
import com.kms.yg.res.mapper.BsSgcResJfglMapper; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 经费管理Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-06 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResJfglService extends BaseService<BsSgcResJfglMapper, BsSgcResJfgl>{ |
|||
|
|||
|
|||
@Autowired |
|||
private BsSgcResJfglMapper BsSgcResJfglMapper; |
|||
|
|||
|
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
public IPage selectPage(SearchParam<BsSgcResJfgl> sp) { |
|||
|
|||
BsSgcResJfgl data = sp.getData(); |
|||
|
|||
List<BsSgcResJfgl> list= BsSgcResJfglMapper.getList(data.getId(), data.getResType(), data.getResName(), |
|||
sysXzqhService.getSubString(data.getAdcd()), "create_time", sp.getPageNum(), sp.getPageSize()); |
|||
|
|||
Page<BsSgcResJfgl> page = new Page<>(); |
|||
page.setRecords(list); |
|||
|
|||
page.setTotal(list.size()); |
|||
|
|||
return page; |
|||
|
|||
} |
|||
|
|||
public List<BsSgcResJfgl> getByCode(String code) { |
|||
List<BsSgcResJfgl> bsSgcSzJfgls = BsSgcResJfglMapper.selectList(Wrappers.lambdaQuery(BsSgcResJfgl.class) |
|||
.eq(BsSgcResJfgl::getResCode, code)); |
|||
|
|||
return bsSgcSzJfgls; |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.kms.system.service.SysXzqhService; |
|||
import com.kms.yg.df.domain.BsSgcDfQqhj; |
|||
import com.kms.yg.df.mapper.BsSgcDfQqhjMapper; |
|||
import com.kms.yg.res.domain.BsSgcResQqhj; |
|||
import com.kms.yg.res.mapper.BsSgcResQqhjMapper; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 水闸确权划界Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResQqhjService extends BaseService<BsSgcResQqhjMapper, BsSgcResQqhj> { |
|||
|
|||
@Autowired |
|||
private BsSgcResQqhjMapper bsSgcResQqhjMapper; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
public IPage selectPage(SearchParam<BsSgcResQqhj> sp) { |
|||
|
|||
BsSgcResQqhj data = sp.getData(); |
|||
|
|||
Map<String, Object> params = sp.getParams(); |
|||
|
|||
|
|||
List<BsSgcResQqhj> list = bsSgcResQqhjMapper.getList(data.getId(),data.getResName(),data.getResType(),data.getResCode(), |
|||
sysXzqhService.getSubString(data.getAdcd()),(String) params.get("orderBy"), sp.getPageNum(), sp.getPageSize()); |
|||
|
|||
Page<BsSgcResQqhj> page = new Page<>(); |
|||
|
|||
page.setRecords(list); |
|||
page.setTotal(list.size()); |
|||
|
|||
return page; |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.yg.df.domain.BsSgcDfYaxx; |
|||
import com.kms.yg.df.mapper.BsSgcDfYaxxMapper; |
|||
import com.kms.yg.res.domain.BsSgcResYaxx; |
|||
import com.kms.yg.res.mapper.BsSgcResYaxxMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 水闸预案Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-23 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResYaxxService extends BaseService<BsSgcResYaxxMapper, BsSgcResYaxx>{ |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.kms.yg.res.service; |
|||
|
|||
import com.kms.system.service.SysXzqhService; |
|||
import com.kms.yg.df.domain.BsSgcDfYhxx; |
|||
import com.kms.yg.df.mapper.BsSgcDfYhxxMapper; |
|||
import com.kms.yg.res.domain.BsSgcResYhxx; |
|||
import com.kms.yg.res.mapper.BsSgcResYhxxMapper; |
|||
import com.kms.yg.sz.domain.dto.HistogramDto; |
|||
import com.kms.yg.sz.domain.dto.PieDto; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸隐患信息Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-01-16 |
|||
*/ |
|||
@Service |
|||
public class BsSgcResYhxxService extends BaseService<BsSgcResYhxxMapper, BsSgcResYhxx> { |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.kms.yg.res.mapper.BsSgcResBzbpMapper"> |
|||
|
|||
|
|||
<resultMap type="com.kms.yg.res.domain.BsSgcResBzbp" id="Result"> |
|||
<id property="id" column="id" /> |
|||
<result property="resName" column="res_name" /> |
|||
<result property="adcd" column="adcd" /> |
|||
<result property="oneType" column="oneType" /> |
|||
<result property="twoType" column="twoType" /> |
|||
<result property="threeType" column="threeType" /> |
|||
<result property="fourType" column="fourType" /> |
|||
<result property="resCode" column="res_code" /> |
|||
|
|||
</resultMap> |
|||
|
|||
<select id="selectList1" resultMap="Result"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
SELECT res_name, adcd, |
|||
COUNT(CASE WHEN type = 0 THEN 1 END) AS oneType, |
|||
COUNT(CASE WHEN type= 1 THEN 1 END) AS twoType, |
|||
COUNT(CASE WHEN type = 2 THEN 1 END) AS threeType, |
|||
COUNT(CASE WHEN type = 3 THEN 1 END) AS fourType |
|||
,res_code |
|||
FROM bs_sgc_df_bzbp_v2 |
|||
<where> |
|||
<if test="embankmentName != null and embankmentName != ''"> |
|||
res_name like concat('%', #{embankmentName}, '%') |
|||
</if> |
|||
</where> |
|||
GROUP BY res_code |
|||
ORDER BY create_time DESC |
|||
LIMIT #{pageNum}, #{pageSize} |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.kms.yg.res.mapper.BsSgcResJfglMapper"> |
|||
|
|||
<sql id="info"> |
|||
select DISTINCT * |
|||
from bs_sgc_df_jfgl_v2 sf |
|||
left join att_res_base sj on sf.res_code = sj.res_code |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcResJfgl"> |
|||
<id property="id" column="id"/> |
|||
<result property="resCode" column="res_code"/> |
|||
<result property="resName" column="res_name"/> |
|||
<result property="resType" column="res_type"/> |
|||
<result property="unit" column="ADM_DEP"/> |
|||
<result property="engScal" column="eng_scal"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeType!=null and dikeType!=''"> |
|||
and sj.RES_TYPE = #{dikeType} |
|||
</if> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.RES_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
|
|||
<if test="id!=null and id!=''"> |
|||
and sf.id=#{id} |
|||
</if> |
|||
</where> |
|||
group by sf.res_code |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.kms.yg.res.mapper.BsSgcResQqhjMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sj.RES_NAME, |
|||
sj.RES_CODE, |
|||
sj.RES_TYPE, |
|||
sq.* |
|||
from bs_sgc_df_qqhj_v2 sq |
|||
left join att_res_base sj on sq.res_code = sj.RES_CODE |
|||
</sql> |
|||
|
|||
|
|||
<resultMap type="BsSgcResQqhj" id="BsSgcResQqhj"> |
|||
<id property="id" column="id" /> |
|||
<result property="resName" column="res_name"/> |
|||
<result property="resCode" column="res_code"/> |
|||
<result property="resType" column="res_type"/> |
|||
</resultMap> |
|||
|
|||
|
|||
<select id="getList" resultMap="BsSgcResQqhj"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="resName!=null and resName!=''"> |
|||
and RES_NAME like concat('%',#{resName},'%') |
|||
</if> |
|||
<if test="resCode!=null and resCode!=''"> |
|||
and sj.res_code=#{resCode} |
|||
</if> |
|||
<if test="resType!=null and resType!=''"> |
|||
and sj.RES_TYPE=#{resType} |
|||
</if> |
|||
<include refid="com.kms.system.mapper.SysXzqhMapper.xzqhCondition"></include> |
|||
</where> |
|||
order by ${orderBy} desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue