|
@@ -11,9 +11,11 @@ import org.springblade.control.dto.ControlProjectInfoDTO;
|
|
|
import org.springblade.control.entity.ControlContractInfo;
|
|
|
import org.springblade.control.entity.ControlProjectInfo;
|
|
|
import org.springblade.control.entity.DictInfo;
|
|
|
+import org.springblade.control.entity.EMInvoiceInfo;
|
|
|
import org.springblade.control.service.IContractInfoService;
|
|
|
import org.springblade.control.service.IProjectInfoService;
|
|
|
import org.springblade.control.vo.ControlContractInfoVO;
|
|
|
+import org.springblade.control.vo.EMInvoiceInfoVO;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -36,7 +38,7 @@ public class ContractInfoController {
|
|
|
* 新增合同
|
|
|
*/
|
|
|
@PostMapping("/addContractInfo")
|
|
|
- @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "新增合同")
|
|
|
public R addContractInfo(@RequestBody ControlContractInfoDTO dto) {
|
|
|
contractInfoService.addContractInfo(dto);
|
|
@@ -47,7 +49,7 @@ public class ContractInfoController {
|
|
|
* 删除合同
|
|
|
*/
|
|
|
@GetMapping("/deleteContractInfoById")
|
|
|
- @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
@ApiOperation(value = "删除合同")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "id", value = "合同id", required = true),
|
|
@@ -61,7 +63,7 @@ public class ContractInfoController {
|
|
|
* 修改合同
|
|
|
*/
|
|
|
@PostMapping("/updateContractInfo")
|
|
|
- @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
|
@ApiOperation(value = "修改合同")
|
|
|
public R updateContractInfo(@RequestBody ControlContractInfoDTO dto) {
|
|
|
contractInfoService.updateContractInfo(dto);
|
|
@@ -85,7 +87,7 @@ public class ContractInfoController {
|
|
|
* 合同列表,分页查询
|
|
|
*/
|
|
|
@GetMapping("/getPage")
|
|
|
- @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
@ApiOperation(value = "合同列表,分页查询")
|
|
|
public R<List<ControlContractInfoVO>> getPage(ControlContractInfoDTO dto, Query query) {
|
|
|
return R.data(contractInfoService.getPage(dto,query));
|
|
@@ -95,7 +97,7 @@ public class ContractInfoController {
|
|
|
* 合同列表,回款更新
|
|
|
*/
|
|
|
@GetMapping("/getList")
|
|
|
- @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
@ApiOperation(value = "合同列表,回款更新")
|
|
|
public R<List<ControlContractInfo>> getList() {
|
|
|
return R.data(contractInfoService.getList());
|
|
@@ -105,7 +107,7 @@ public class ContractInfoController {
|
|
|
* 获取合同类型字典
|
|
|
*/
|
|
|
@GetMapping("/getContractTypeDict")
|
|
|
- @ApiOperationSupport(order = 2)
|
|
|
+ @ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "获取合同类型字典")
|
|
|
public R<List<DictInfo>> getContractTypeDict() {
|
|
|
return R.data(contractInfoService.getContractTypeDict());
|
|
@@ -115,10 +117,20 @@ public class ContractInfoController {
|
|
|
* 获取未被关联的项目
|
|
|
*/
|
|
|
@GetMapping("getNoConnectionProject")
|
|
|
- @ApiOperationSupport(order = 2)
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
@ApiOperation(value = "获取未被关联的项目")
|
|
|
public R<List<ControlProjectInfo>> getNoConnectionProject(Integer type){
|
|
|
return R.data(contractInfoService.getNoConnectionProject(type));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取合同开票信息
|
|
|
+ */
|
|
|
+ @GetMapping("getContractInvoiceList")
|
|
|
+ @ApiOperationSupport(order = 8)
|
|
|
+ @ApiOperation(value = "获取合同开票信息",notes = "传入合同id")
|
|
|
+ public R<List<EMInvoiceInfoVO>> getContractInvoiceList(Long contractId){
|
|
|
+ return R.data(contractInfoService.getContractInvoiceList(contractId));
|
|
|
+ }
|
|
|
+
|
|
|
}
|