信用明细查询
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
package com.mhd.user.interfaces.facade;
|
||||
|
||||
import com.mhd.common.core.web.controller.BaseController;
|
||||
import com.mhd.common.core.web.domain.AjaxResult;
|
||||
import com.mhd.user.application.service.AgreementDetailsApplicationService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 协议详情控制层
|
||||
*/
|
||||
@Api(tags = "用户中台管理-协议详情")
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/agreementDetailsApi")
|
||||
@CrossOrigin
|
||||
public class AgreementDetailsApi extends BaseController {
|
||||
|
||||
@Resource
|
||||
private AgreementDetailsApplicationService agreementDetailsApplicationService;
|
||||
|
||||
/**
|
||||
* 根据货主ID查询所有协议明细
|
||||
*/
|
||||
@ApiOperation("根据货主ID查询协议明细列表")
|
||||
@GetMapping("/listByShipperId/{shipperId}")
|
||||
public AjaxResult listByShipperId(@PathVariable("shipperId") Long shipperId) {
|
||||
return AjaxResult.success(agreementDetailsApplicationService.listByShipperId(shipperId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键查询单条协议明细
|
||||
*/
|
||||
@ApiOperation("获取协议详情")
|
||||
@GetMapping("/getInfo/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(agreementDetailsApplicationService.getInfo(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据货主ID删除所有协议明细
|
||||
*/
|
||||
@ApiOperation("根据货主ID删除协议明细")
|
||||
@DeleteMapping("/deleteByShipperId/{shipperId}")
|
||||
public AjaxResult deleteByShipperId(@PathVariable("shipperId") Long shipperId) {
|
||||
return toAjax(agreementDetailsApplicationService.deleteByShipperId(shipperId));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user