11 changed files with 558 additions and 1 deletions
@ -0,0 +1,114 @@ |
|||
package com.kms.warn.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.jianwei.common.core.controller.BaseController; |
|||
import com.jianwei.common.core.domain.SearchParam; |
|||
import com.jianwei.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.jianwei.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.jianwei.common.annotation.Log; |
|||
import com.jianwei.common.core.domain.AjaxResult; |
|||
import com.jianwei.common.enums.BusinessType; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResult; |
|||
import com.kms.warn.service.BsSgcJsjdWarnResultService; |
|||
|
|||
|
|||
/** |
|||
* 预警结果Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/warn/result") |
|||
@Api(tags = "预警结果") |
|||
public class BsSgcJsjdWarnResultController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcJsjdWarnResultService bsSgcJsjdWarnResultService; |
|||
|
|||
/** |
|||
* 查询预警结果列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("预警结果列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcJsjdWarnResult> sp) |
|||
{ |
|||
return bsSgcJsjdWarnResultService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出预警结果列表 |
|||
*/ |
|||
@Log(title = "预警结果导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("预警结果导出") |
|||
public AjaxResult export(@RequestBody BsSgcJsjdWarnResult bsSgcJsjdWarnResult) |
|||
{ |
|||
List<BsSgcJsjdWarnResult> list = bsSgcJsjdWarnResultService.listByIds(bsSgcJsjdWarnResult.getIds()); |
|||
ExcelUtil<BsSgcJsjdWarnResult> util = new ExcelUtil<>(BsSgcJsjdWarnResult.class); |
|||
return util.exportExcel(list, "result"); |
|||
} |
|||
|
|||
/** |
|||
* 获取预警结果详细信息 |
|||
*/ |
|||
@ApiOperation(" 预警结果详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcJsjdWarnResultService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增预警结果 |
|||
*/ |
|||
@Log(title = "预警结果新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("预警结果新增") |
|||
public AjaxResult add(@RequestBody BsSgcJsjdWarnResult bsSgcJsjdWarnResult) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcJsjdWarnResult); |
|||
return toAjax(bsSgcJsjdWarnResultService.save(bsSgcJsjdWarnResult)); |
|||
} |
|||
|
|||
/** |
|||
* 修改预警结果 |
|||
*/ |
|||
@ApiOperation("预警结果修改") |
|||
@Log(title = "预警结果修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcJsjdWarnResult bsSgcJsjdWarnResult) |
|||
{ |
|||
return toAjax(bsSgcJsjdWarnResultService.updateById(bsSgcJsjdWarnResult)); |
|||
} |
|||
|
|||
/** |
|||
* 删除预警结果 |
|||
*/ |
|||
@ApiOperation("预警结果删除") |
|||
@Log(title = "预警结果删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcJsjdWarnResultService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.kms.warn.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.jianwei.common.core.controller.BaseController; |
|||
import com.jianwei.common.core.domain.SearchParam; |
|||
import com.jianwei.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.jianwei.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.jianwei.common.annotation.Log; |
|||
import com.jianwei.common.core.domain.AjaxResult; |
|||
import com.jianwei.common.enums.BusinessType; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResultHandle; |
|||
import com.kms.warn.service.BsSgcJsjdWarnResultHandleService; |
|||
|
|||
|
|||
/** |
|||
* 预警处理Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/warn/handle") |
|||
@Api(tags = "预警处理") |
|||
public class BsSgcJsjdWarnResultHandleController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcJsjdWarnResultHandleService bsSgcJsjdWarnResultHandleService; |
|||
|
|||
/** |
|||
* 查询预警处理列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("预警处理列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcJsjdWarnResultHandle> sp) |
|||
{ |
|||
return bsSgcJsjdWarnResultHandleService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出预警处理列表 |
|||
*/ |
|||
@Log(title = "预警处理导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("预警处理导出") |
|||
public AjaxResult export(@RequestBody BsSgcJsjdWarnResultHandle bsSgcJsjdWarnResultHandle) |
|||
{ |
|||
List<BsSgcJsjdWarnResultHandle> list = bsSgcJsjdWarnResultHandleService.listByIds(bsSgcJsjdWarnResultHandle.getIds()); |
|||
ExcelUtil<BsSgcJsjdWarnResultHandle> util = new ExcelUtil<>(BsSgcJsjdWarnResultHandle.class); |
|||
return util.exportExcel(list, "handle"); |
|||
} |
|||
|
|||
/** |
|||
* 获取预警处理详细信息 |
|||
*/ |
|||
@ApiOperation(" 预警处理详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcJsjdWarnResultHandleService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增预警处理 |
|||
*/ |
|||
@Log(title = "预警处理新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("预警处理新增") |
|||
public AjaxResult add(@RequestBody BsSgcJsjdWarnResultHandle bsSgcJsjdWarnResultHandle) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcJsjdWarnResultHandle); |
|||
return toAjax(bsSgcJsjdWarnResultHandleService.save(bsSgcJsjdWarnResultHandle)); |
|||
} |
|||
|
|||
/** |
|||
* 修改预警处理 |
|||
*/ |
|||
@ApiOperation("预警处理修改") |
|||
@Log(title = "预警处理修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcJsjdWarnResultHandle bsSgcJsjdWarnResultHandle) |
|||
{ |
|||
return toAjax(bsSgcJsjdWarnResultHandleService.updateById(bsSgcJsjdWarnResultHandle)); |
|||
} |
|||
|
|||
/** |
|||
* 删除预警处理 |
|||
*/ |
|||
@ApiOperation("预警处理删除") |
|||
@Log(title = "预警处理删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcJsjdWarnResultHandleService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.kms.warn.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.jianwei.common.annotation.Excel; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
import com.jianwei.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 预警结果对象 bs_sgc_jsjd_warn_result |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@TableName("bs_sgc_jsjd_warn_result") |
|||
@Data |
|||
@ApiModel("预警结果") |
|||
public class BsSgcJsjdWarnResult extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String proCode; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String proNo; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String warnType; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String warnSubType; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String resultType; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String warnResult; |
|||
|
|||
/** 是否处理(0:未处理,1:已处理) */ |
|||
@Excel(name = "是否处理", readConverterExp = "0=:未处理,1:已处理") |
|||
@ApiModelProperty("是否处理") |
|||
private String isHandle; |
|||
|
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.kms.warn.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.jianwei.common.annotation.Excel; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
import com.jianwei.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 预警处理对象 bs_sgc_jsjd_warn_result_handle |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@TableName("bs_sgc_jsjd_warn_result_handle") |
|||
@Data |
|||
@ApiModel("预警处理") |
|||
public class BsSgcJsjdWarnResultHandle extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String proCode; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String proNo; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String owerDept; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String resultId; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String handleUser; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String checkUser; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String opinion; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String handlePhone; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|||
@ApiModelProperty("${comment}") |
|||
private String checkPhone; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.warn.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResultHandle; |
|||
|
|||
/** |
|||
* 预警处理Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcJsjdWarnResultHandleMapper extends BaseMapper<BsSgcJsjdWarnResultHandle> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.warn.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResult; |
|||
|
|||
/** |
|||
* 预警结果Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcJsjdWarnResultMapper extends BaseMapper<BsSgcJsjdWarnResult> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.warn.service; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
import com.jianwei.common.core.service.BaseService; |
|||
import com.kms.warn.mapper.BsSgcJsjdWarnResultHandleMapper; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResultHandle; |
|||
|
|||
/** |
|||
* 预警处理Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@Service |
|||
public class BsSgcJsjdWarnResultHandleService extends BaseService<BsSgcJsjdWarnResultHandleMapper, BsSgcJsjdWarnResultHandle>{ |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.warn.service; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
import com.jianwei.common.core.service.BaseService; |
|||
import com.kms.warn.mapper.BsSgcJsjdWarnResultMapper; |
|||
import com.kms.warn.domain.BsSgcJsjdWarnResult; |
|||
|
|||
/** |
|||
* 预警结果Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-07 |
|||
*/ |
|||
@Service |
|||
public class BsSgcJsjdWarnResultService extends BaseService<BsSgcJsjdWarnResultMapper, BsSgcJsjdWarnResult>{ |
|||
|
|||
} |
Loading…
Reference in new issue