16 changed files with 387 additions and 4 deletions
@ -0,0 +1,114 @@ |
|||||
|
package com.kms.yg.sz.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.annotation.Log; |
||||
|
import com.shuili.common.core.domain.AjaxResult; |
||||
|
import com.shuili.common.enums.BusinessType; |
||||
|
import com.kms.yg.sz.domain.BsSgcAssessmentCriteria; |
||||
|
import com.kms.yg.sz.service.BsSgcAssessmentCriteriaService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 奖惩管理Controller |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-03-26 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/system/criteria") |
||||
|
@Api(tags = "奖惩管理") |
||||
|
public class BsSgcAssessmentCriteriaController extends BaseController |
||||
|
{ |
||||
|
@Autowired |
||||
|
private BsSgcAssessmentCriteriaService bsSgcAssessmentCriteriaService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询奖惩管理列表 |
||||
|
*/ |
||||
|
@PostMapping("/list") |
||||
|
@ApiOperation("奖惩管理列表") |
||||
|
public IPage list(@RequestBody SearchParam<BsSgcAssessmentCriteria> sp) |
||||
|
{ |
||||
|
return bsSgcAssessmentCriteriaService.selectPage(sp); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出奖惩管理列表 |
||||
|
*/ |
||||
|
@Log(title = "奖惩管理导出", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ApiOperation("奖惩管理导出") |
||||
|
public AjaxResult export(@RequestBody BsSgcAssessmentCriteria bsSgcAssessmentCriteria) |
||||
|
{ |
||||
|
List<BsSgcAssessmentCriteria> list = bsSgcAssessmentCriteriaService.listByIds(bsSgcAssessmentCriteria.getIds()); |
||||
|
ExcelUtil<BsSgcAssessmentCriteria> util = new ExcelUtil<>(BsSgcAssessmentCriteria.class); |
||||
|
return util.exportExcel(list, "criteria"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取奖惩管理详细信息 |
||||
|
*/ |
||||
|
@ApiOperation(" 奖惩管理详情") |
||||
|
@GetMapping(value = "/{id}") |
||||
|
public AjaxResult getInfo(@PathVariable("id") String id) |
||||
|
{ |
||||
|
return AjaxResult.success(bsSgcAssessmentCriteriaService.getById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增奖惩管理 |
||||
|
*/ |
||||
|
@Log(title = "奖惩管理新增", businessType = BusinessType.INSERT) |
||||
|
@PostMapping |
||||
|
@ApiOperation("奖惩管理新增") |
||||
|
public AjaxResult add(@RequestBody BsSgcAssessmentCriteria bsSgcAssessmentCriteria) |
||||
|
{ |
||||
|
BaseEntityUtils.preInsert(bsSgcAssessmentCriteria); |
||||
|
return toAjax(bsSgcAssessmentCriteriaService.save(bsSgcAssessmentCriteria)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改奖惩管理 |
||||
|
*/ |
||||
|
@ApiOperation("奖惩管理修改") |
||||
|
@Log(title = "奖惩管理修改", businessType = BusinessType.UPDATE) |
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@RequestBody BsSgcAssessmentCriteria bsSgcAssessmentCriteria) |
||||
|
{ |
||||
|
return toAjax(bsSgcAssessmentCriteriaService.updateById(bsSgcAssessmentCriteria)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除奖惩管理 |
||||
|
*/ |
||||
|
@ApiOperation("奖惩管理删除") |
||||
|
@Log(title = "奖惩管理删除", businessType = BusinessType.DELETE) |
||||
|
@DeleteMapping("/{ids}") |
||||
|
public AjaxResult remove(@PathVariable String[] ids) |
||||
|
{ |
||||
|
return toAjax(bsSgcAssessmentCriteriaService.removeByIds(Arrays.asList(ids))); |
||||
|
} |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
package com.kms.yg.sz.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.sz.domain.BsSgcSzGzsc; |
||||
|
import com.kms.yg.sz.service.BsSgcSzGzscService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 水闸工作手册Controller |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-03-13 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/sz/gzsc") |
||||
|
@Api(tags = "水闸工作手册") |
||||
|
public class BsSgcSzGzscController extends BaseController |
||||
|
{ |
||||
|
@Autowired |
||||
|
private BsSgcSzGzscService bsSgcSzGzscService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询水闸工作手册列表 |
||||
|
*/ |
||||
|
@PostMapping("/list") |
||||
|
@ApiOperation("水闸工作手册列表") |
||||
|
public IPage list(@RequestBody SearchParam<BsSgcSzGzsc> sp) |
||||
|
{ |
||||
|
return bsSgcSzGzscService.selectPage(sp); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出水闸工作手册列表 |
||||
|
*/ |
||||
|
@Log(title = "水闸工作手册导出", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ApiOperation("水闸工作手册导出") |
||||
|
public AjaxResult export(@RequestBody BsSgcSzGzsc bsSgcSzGzsc) |
||||
|
{ |
||||
|
List<BsSgcSzGzsc> list = bsSgcSzGzscService.listByIds(bsSgcSzGzsc.getIds()); |
||||
|
ExcelUtil<BsSgcSzGzsc> util = new ExcelUtil<>(BsSgcSzGzsc.class); |
||||
|
return util.exportExcel(list, "gzsc"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取水闸工作手册详细信息 |
||||
|
*/ |
||||
|
@ApiOperation(" 水闸工作手册详情") |
||||
|
@GetMapping(value = "/{id}") |
||||
|
public AjaxResult getInfo(@PathVariable("id") String id) |
||||
|
{ |
||||
|
return AjaxResult.success(bsSgcSzGzscService.getById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增水闸工作手册 |
||||
|
*/ |
||||
|
@Log(title = "水闸工作手册新增", businessType = BusinessType.INSERT) |
||||
|
@PostMapping |
||||
|
@ApiOperation("水闸工作手册新增") |
||||
|
public AjaxResult add(@RequestBody BsSgcSzGzsc bsSgcSzGzsc) |
||||
|
{ |
||||
|
BaseEntityUtils.preInsert(bsSgcSzGzsc); |
||||
|
return toAjax(bsSgcSzGzscService.save(bsSgcSzGzsc)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改水闸工作手册 |
||||
|
*/ |
||||
|
@ApiOperation("水闸工作手册修改") |
||||
|
@Log(title = "水闸工作手册修改", businessType = BusinessType.UPDATE) |
||||
|
@PutMapping |
||||
|
public AjaxResult edit(@RequestBody BsSgcSzGzsc bsSgcSzGzsc) |
||||
|
{ |
||||
|
return toAjax(bsSgcSzGzscService.updateById(bsSgcSzGzsc)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除水闸工作手册 |
||||
|
*/ |
||||
|
@ApiOperation("水闸工作手册删除") |
||||
|
@Log(title = "水闸工作手册删除", businessType = BusinessType.DELETE) |
||||
|
@DeleteMapping("/{ids}") |
||||
|
public AjaxResult remove(@PathVariable String[] ids) |
||||
|
{ |
||||
|
return toAjax(bsSgcSzGzscService.removeByIds(Arrays.asList(ids))); |
||||
|
} |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
package com.kms.yg.sz.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; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 奖惩管理对象 bs_sgc_assessment_criteria |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-03-26 |
||||
|
*/ |
||||
|
@TableName("bs_sgc_assessment_criteria") |
||||
|
@Data |
||||
|
@ApiModel("奖惩管理") |
||||
|
public class BsSgcAssessmentCriteria extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 奖励机制 */ |
||||
|
@Excel(name = "奖励机制") |
||||
|
@ApiModelProperty("奖励机制") |
||||
|
private String rewardSystem; |
||||
|
|
||||
|
/** 惩处措施 */ |
||||
|
@Excel(name = "惩处措施") |
||||
|
@ApiModelProperty("惩处措施") |
||||
|
private String punishmentMeasures; |
||||
|
|
||||
|
/** $column.columnComment */ |
||||
|
@Excel(name = "惩处措施") |
||||
|
@ApiModelProperty("惩处措施") |
||||
|
private String remake; |
||||
|
/** |
||||
|
* 1 水闸 2 堤防 |
||||
|
*/ |
||||
|
@Excel(name = "类型") |
||||
|
@ApiModelProperty("类型") |
||||
|
private String type; |
||||
|
|
||||
|
/** $column.columnComment */ |
||||
|
@Excel(name = "惩处措施") |
||||
|
@ApiModelProperty("惩处措施") |
||||
|
private String createUid; |
||||
|
|
||||
|
/** $column.columnComment */ |
||||
|
@Excel(name = "惩处措施") |
||||
|
@ApiModelProperty("惩处措施") |
||||
|
private String updateUid; |
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.kms.yg.sz.mapper; |
||||
|
|
||||
|
import org.springframework.stereotype.Repository; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.kms.yg.sz.domain.BsSgcAssessmentCriteria; |
||||
|
|
||||
|
/** |
||||
|
* 奖惩管理Mapper接口 |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-03-26 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public interface BsSgcAssessmentCriteriaMapper extends BaseMapper<BsSgcAssessmentCriteria> { |
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.kms.yg.sz.service; |
||||
|
|
||||
|
import com.shuili.common.core.service.BaseService; |
||||
|
import com.kms.yg.sz.mapper.BsSgcAssessmentCriteriaMapper; |
||||
|
import com.kms.yg.sz.domain.BsSgcAssessmentCriteria; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
/** |
||||
|
* 奖惩管理Service接口 |
||||
|
* |
||||
|
* @author kms |
||||
|
* @date 2025-03-26 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class BsSgcAssessmentCriteriaService extends BaseService<BsSgcAssessmentCriteriaMapper, BsSgcAssessmentCriteria>{ |
||||
|
|
||||
|
} |
Loading…
Reference in new issue