| | |
| | | package com.chuangongzhijia.huacheng_union_applets.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.equipment.UnionInspectionDto; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.dtos.equipment.UnionUserDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.service.community.CommunityUnionService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | * @param unionInspectionDto |
| | | * @return 新增结果 |
| | | */ |
| | | @ApiOperation(value = "新增户外劳工站巡查") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody UnionInspectionDto unionInspectionDto) { |
| | | return communityUnionService.add(unionInspectionDto); |
| | | unionInspectionDto.setIsApplets(3); |
| | | return communityUnionService.add(unionInspectionDto); |
| | | } |
| | | |
| | | |
| | |
| | | * @param unionInspectionDto |
| | | * @return 动态结果 |
| | | */ |
| | | @ApiOperation(value = "分页户外劳工站巡查") |
| | | @PostMapping("/query") |
| | | public R query(@RequestBody UnionInspectionDto unionInspectionDto) { |
| | | unionInspectionDto.setIsApplets(3); |
| | | return communityUnionService.query(unionInspectionDto); |
| | | } |
| | | } |