| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidMemberVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | * @author zzj |
| | | * @since 2022-04-24 16:12:08 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"防疫工作人员"}) |
| | | @RestController |
| | | @RequestMapping("comActAcidMember") |
| | | public class ComActAcidMemberApi extends BaseController { |
| | |
| | | * @param commonPage 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @ApiOperation(value = "分页查询列表",response = ComActAcidMemberVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody ComActAcidMemberDTO commonPage) { |
| | | return this.communityService.selectAllComActAcidMember(commonPage); |
| | |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @ApiOperation("通过主键查询单条数据") |
| | | @GetMapping("{id}") |
| | | public R selectOne(@PathVariable("id") Long id) { |
| | | return communityService.selectOneComActAcidMember(id); |
| | |
| | | * @param comActAcidMemberVO 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @ApiOperation("新增数据") |
| | | @PostMapping |
| | | public R insert(@RequestBody ComActAcidMemberVO comActAcidMemberVO) { |
| | | return communityService.insertComActAcidMember(comActAcidMemberVO); |
| | |
| | | * @param comActAcidMemberVO 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @ApiOperation("修改数据") |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody ComActAcidMemberVO comActAcidMemberVO) { |
| | | return communityService.updateComActAcidMember(comActAcidMemberVO); |
| | |
| | | * @param id 主键结合 |
| | | * @return 删除结果 |
| | | */ |
| | | @ApiOperation("删除数据") |
| | | @GetMapping("del") |
| | | public R delete(@RequestParam("id") Long id) { |
| | | return communityService.deleteComActAcidMember(id); |