13 changed files with 338 additions and 23 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.BsSgcDfManateam; |
|||
import com.kms.yg.df.service.BsSgcDfManateamService; |
|||
|
|||
|
|||
/** |
|||
* 管理团队管理Controller |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/manateam/manateam") |
|||
@Api(tags = "管理团队管理") |
|||
public class BsSgcDfManateamController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcDfManateamService bsSgcDfManateamService; |
|||
|
|||
|
|||
/** |
|||
* 查询管理团队管理列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("管理团队管理列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcDfManateam> sp) |
|||
{ |
|||
return bsSgcDfManateamService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出管理团队管理列表 |
|||
*/ |
|||
@Log(title = "管理团队管理导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("管理团队管理导出") |
|||
public AjaxResult export(@RequestBody BsSgcDfManateam bsSgcDfManateam) |
|||
{ |
|||
List<BsSgcDfManateam> list = bsSgcDfManateamService.listByIds(bsSgcDfManateam.getIds()); |
|||
ExcelUtil<BsSgcDfManateam> util = new ExcelUtil<>(BsSgcDfManateam.class); |
|||
return util.exportExcel(list, "manateam"); |
|||
} |
|||
|
|||
/** |
|||
* 获取管理团队管理详细信息 |
|||
*/ |
|||
@ApiOperation(" 管理团队管理详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcDfManateamService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增管理团队管理 |
|||
*/ |
|||
@Log(title = "管理团队管理新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("管理团队管理新增") |
|||
public AjaxResult add(@RequestBody BsSgcDfManateam bsSgcDfManateam) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcDfManateam); |
|||
return toAjax(bsSgcDfManateamService.save(bsSgcDfManateam)); |
|||
} |
|||
|
|||
/** |
|||
* 修改管理团队管理 |
|||
*/ |
|||
@ApiOperation("管理团队管理修改") |
|||
@Log(title = "管理团队管理修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcDfManateam bsSgcDfManateam) |
|||
{ |
|||
return toAjax(bsSgcDfManateamService.updateById(bsSgcDfManateam)); |
|||
} |
|||
|
|||
/** |
|||
* 删除管理团队管理 |
|||
*/ |
|||
@ApiOperation("管理团队管理删除") |
|||
@Log(title = "管理团队管理删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcDfManateamService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
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; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 管理团队管理对象 bs_sgc_df_manateam |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@TableName("bs_sgc_df_manateam") |
|||
@Data |
|||
@ApiModel("管理团队管理") |
|||
public class BsSgcDfManateam extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 堤防名称 */ |
|||
@Excel(name = "堤防名称") |
|||
@ApiModelProperty("堤防名称") |
|||
private String dikeName; |
|||
|
|||
/** 人员类型 */ |
|||
@Excel(name = "人员类型") |
|||
@ApiModelProperty("人员类型") |
|||
private String personType; |
|||
|
|||
/** 堤防代码 */ |
|||
@Excel(name = "堤防代码") |
|||
@ApiModelProperty("堤防代码") |
|||
private String dikeCode; |
|||
|
|||
/** 账户或或手机号 */ |
|||
@Excel(name = "账户或或手机号") |
|||
@ApiModelProperty("账户或或手机号") |
|||
private String phone; |
|||
|
|||
/** 人员名称 */ |
|||
@Excel(name = "人员名称") |
|||
@ApiModelProperty("人员名称") |
|||
private String personName; |
|||
|
|||
/** 身份证号 */ |
|||
@Excel(name = "身份证号") |
|||
@ApiModelProperty("身份证号") |
|||
private String idNo; |
|||
|
|||
/** 职务 */ |
|||
@Excel(name = "职务") |
|||
@ApiModelProperty("职务") |
|||
private String post; |
|||
|
|||
/** 部门 */ |
|||
@Excel(name = "部门") |
|||
@ApiModelProperty("部门") |
|||
private String department; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("部门") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("部门") |
|||
private String updateUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@ApiModelProperty("部门") |
|||
private String owerDept; |
|||
|
|||
} |
@ -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.BsSgcDfManateam; |
|||
|
|||
/** |
|||
* 管理团队管理Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcDfManateamMapper extends BaseMapper<BsSgcDfManateam> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.df.service; |
|||
|
|||
import com.shuili.common.core.service.BaseService; |
|||
import com.kms.yg.df.mapper.BsSgcDfManateamMapper; |
|||
import com.kms.yg.df.domain.BsSgcDfManateam; |
|||
import org.springframework.stereotype.Service; |
|||
/** |
|||
* 管理团队管理Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@Service |
|||
public class BsSgcDfManateamService extends BaseService<BsSgcDfManateamMapper, BsSgcDfManateam>{ |
|||
|
|||
} |
Loading…
Reference in new issue