liujie
2025-06-09 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb
springcloud_k8s_panzhihuazhihuishequ/huacheng_union_applets/src/main/java/com/chuangongzhijia/huacheng_union_applets/api/UnionReportApi.java
@@ -1,10 +1,10 @@
package com.chuangongzhijia.huacheng_union_applets.api;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.equipment.UnionReportDto;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.service.community.CommunityUnionService;
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;
@@ -17,7 +17,7 @@
@Api(tags = {"户外劳工站"})
@RestController
@RequestMapping("/unionReport")
public class UnionReportApi {
public class UnionReportApi{
    @Resource
    private CommunityUnionService communityUnionService;
@@ -28,9 +28,9 @@
     * @param unionReportDto
     * @return 新增结果
     */
    @ApiOperation(value = "户外劳工站上报表")
    @PostMapping("/add")
    public R add(@RequestBody UnionReportDto unionReportDto) {
        unionReportDto.setIsApplets(3);
        return  communityUnionService.unionReportAdd(unionReportDto);
    }
@@ -41,9 +41,9 @@
     * @param unionReportDto
     * @return 动态结果
     */
    @ApiOperation(value = "分页户外劳工站上报表")
    @PostMapping("/query")
    public R query(@RequestBody UnionReportDto unionReportDto) {
        unionReportDto.setIsApplets(3);
        return communityUnionService.unionReportQuery(unionReportDto);
    }
}