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 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;
|
|
@Slf4j
|
@Api(tags = {"户外劳工站"})
|
@RestController
|
@RequestMapping("/unionReport")
|
public class UnionReportApi{
|
|
@Resource
|
private CommunityUnionService communityUnionService;
|
|
/**
|
* 户外劳工站上报表
|
*
|
* @param unionReportDto
|
* @return 新增结果
|
*/
|
@PostMapping("/add")
|
public R add(@RequestBody UnionReportDto unionReportDto) {
|
unionReportDto.setIsApplets(3);
|
return communityUnionService.unionReportAdd(unionReportDto);
|
}
|
|
|
/**
|
* 分页户外劳工站上报表
|
*
|
* @param unionReportDto
|
* @return 动态结果
|
*/
|
@PostMapping("/query")
|
public R query(@RequestBody UnionReportDto unionReportDto) {
|
unionReportDto.setIsApplets(3);
|
return communityUnionService.unionReportQuery(unionReportDto);
|
}
|
}
|