修改配置文件

This commit is contained in:
lulz1 2024-02-22 16:52:02 +08:00
parent 7547fff50b
commit f946d61329
2 changed files with 52 additions and 21 deletions

View File

@ -37,13 +37,6 @@ public class OrderController {
}
@Transactional
@ApiOperation("提交审批行程规划单")
@PostMapping("/approve")
public Result<String> approveOrder(@RequestBody ApproveLegData approveLegData) {
orderApplicationService.approve(approveLegData);
return Result.Success(SUCCESS);
}
@Transactional
@ApiOperation("同步行程规划单到供应商")
@ -77,19 +70,5 @@ public class OrderController {
return Result.Success(SUCCESS);
}
@Transactional
@ApiOperation("审批拒绝行程规划单")
@PostMapping("/reject")
public Result<String> rejectOrder(@RequestBody ApprovalLegData approvalLegData) {
orderApplicationService.reject(approvalLegData);
return Result.Success(SUCCESS);
}
@Transactional
@ApiOperation("审批通过行程规划单")
@PostMapping("/success")
public Result<String> approvalOrder(@RequestBody ApprovalLegData approvalLegData) {
orderApplicationService.approvalSuccess(approvalLegData);
return Result.Success(SUCCESS);
}
}

View File

@ -0,0 +1,52 @@
package com.chint.application.in;
import com.chint.application.queryies.OrderQuery;
import com.chint.application.services.OrderApplicationService;
import com.chint.domain.value_object.ApprovalLegData;
import com.chint.domain.value_object.ApproveLegData;
import com.chint.infrastructure.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
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 static com.chint.infrastructure.constant.Constant.SUCCESS;
@RestController
@RequestMapping("/public/order")
public class OrderPublicController {
@Autowired
private OrderApplicationService orderApplicationService;
@Autowired
private OrderQuery orderQuery;
@Transactional
@ApiOperation("提交审批行程规划单")
@PostMapping("/approve")
public Result<String> approveOrder(@RequestBody ApproveLegData approveLegData) {
orderApplicationService.approve(approveLegData);
return Result.Success(SUCCESS);
}
@Transactional
@ApiOperation("审批拒绝行程规划单")
@PostMapping("/reject")
public Result<String> rejectOrder(@RequestBody ApprovalLegData approvalLegData) {
orderApplicationService.reject(approvalLegData);
return Result.Success(SUCCESS);
}
@Transactional
@ApiOperation("审批通过行程规划单")
@PostMapping("/success")
public Result<String> approvalOrder(@RequestBody ApprovalLegData approvalLegData) {
orderApplicationService.approvalSuccess(approvalLegData);
return Result.Success(SUCCESS);
}
}