| | |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.erp.params.*; |
| | | import com.vincent.rsf.server.api.entity.validator.SyncOrderValidator; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.server.common.annotation.OperationLog; |
| | | import com.vincent.rsf.server.common.utils.ExcelUtil; |
| | |
| | | if (Objects.isNull(orders) || orders.isEmpty()) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | // return receiveMsgService.syncOrderUpdate(orders); |
| | | return receiveMsgService.syncCheckOrder(orders, getLoginUserId()); |
| | | try { |
| | | // 业务验证 |
| | | new SyncOrderValidator().validateBatchOrders(orders); |
| | | |
| | | // 处理业务 |
| | | return receiveMsgService.syncCheckOrder(orders, getLoginUserId()); |
| | | } catch (IllegalArgumentException e) { |
| | | return R.error(e.getMessage()); |
| | | } catch (Exception e) { |
| | | return R.error(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |