修改配置文件
This commit is contained in:
parent
7547fff50b
commit
f946d61329
|
@ -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
|
@Transactional
|
||||||
@ApiOperation("同步行程规划单到供应商")
|
@ApiOperation("同步行程规划单到供应商")
|
||||||
|
@ -77,19 +70,5 @@ public class OrderController {
|
||||||
return Result.Success(SUCCESS);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue