style(controller): 统一代码格式化和逻辑判断优化
- 修复了方法调用中的空格格式问题 - 将 finish 字段判断改为 state 状态值判断 - 优化了参数传递中的空格格式 - 统一了 short 类型转换的格式化样式
This commit is contained in:
parent
40f8914bd5
commit
80c6818d20
|
|
@ -967,7 +967,7 @@ public class TransferCompanyController extends BaseController {
|
|||
, @RequestParam(required = false) String no) {
|
||||
TransferCompanyTicketVO ticket = transferCompanyTicketService.getInfo(orderId, no);
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(ticket)).throwMessage("订单不存在");
|
||||
if (ticket.getFinish()){
|
||||
if (ticket.getState() == 1) {
|
||||
return ApiResult.success(Collections.emptyList());
|
||||
}
|
||||
List<TransferCompanyItemVO> items = transferCompanyTicketItemService.getList(ticket.getId());
|
||||
|
|
|
|||
|
|
@ -940,7 +940,7 @@ public class TransferFactoryController extends BaseController {
|
|||
, @RequestParam(required = false) String no) {
|
||||
TransferFactoryTicketInfoVO order = transferFactoryTicketService.getInfo(orderId, no);
|
||||
VUtil.trueThrowBusinessError(Objects.isNull(order)).throwMessage("订单不存在");
|
||||
if (order.getFinish()){
|
||||
if (order.getState() == 1) {
|
||||
return ApiResult.success(Collections.emptyList());
|
||||
}
|
||||
List<TransferFactoryItemVO> items = transferFactoryTicketItemService.getList(order.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue