2 changed files with 69 additions and 2 deletions
@ -0,0 +1,67 @@ |
|||
package com.ccsens.defaultwbs.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CDeliverDto; |
|||
import com.ccsens.common.bean.dto.CPluginDto; |
|||
import com.ccsens.common.bean.vo.CDeliverVo; |
|||
import com.ccsens.common.service.IDeliverService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Api(tags = "交付物相关" ) |
|||
@RestController |
|||
@RequestMapping("/deliver") |
|||
@Slf4j |
|||
public class DeliverController { |
|||
|
|||
@Resource |
|||
private IDeliverService deliverService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询所有成员", notes = "") |
|||
@RequestMapping(value = "/queryChecker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CDeliverVo.Checker>> queryChecker(@ApiParam @Validated @RequestBody QueryDto<CDeliverDto.QueryChecker> params) throws Exception{ |
|||
List<CDeliverVo.Checker> checkers = deliverService.queryChecker(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(checkers); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "提交交付物", notes = "") |
|||
@RequestMapping(value = "/save", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveDeliver(@ApiParam @Validated @RequestBody QueryDto<CDeliverDto.SaveDeliver> params) throws Exception{ |
|||
deliverService.saveDeliver(params.getParam(),params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询任务的交付物历史记录", notes = "") |
|||
@RequestMapping(value = "/queryDeliverOfTask", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CDeliverVo.DeliverOfTask>> queryDeliverOfTask(@ApiParam @Validated @RequestBody QueryDto<CDeliverDto.QueryDeliverOfTask> params) throws Exception{ |
|||
List<CDeliverVo.DeliverOfTask> deliverOfTask = deliverService.queryDeliverOfTask(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(deliverOfTask); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "检查交付物", notes = "") |
|||
@RequestMapping(value = "/checkDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse checkDeliver(@ApiParam @Validated @RequestBody QueryDto<CDeliverDto.CheckDeliver> params) throws Exception{ |
|||
deliverService.checkDeliver(params.getParam(),params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: common, util-test |
|||
active: dev |
|||
include: common, util-dev |
|||
|
Loading…
Reference in new issue