| | |
| | | import com.vincent.rsf.server.common.utils.ExcelUtil; |
| | | import com.vincent.rsf.server.manager.entity.excel.AsnOrderTemplate; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import com.vincent.rsf.server.system.service.impl.UserServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ReceiveMsgService receiveMsgService; |
| | | @Autowired |
| | | private UserServiceImpl userService; |
| | | |
| | | /** |
| | | * @author Ryan |
| | |
| | | // 业务验证 |
| | | new SyncOrderValidator().validateBatchOrders(orders); |
| | | |
| | | User erp = userService.getByUsername("erp", 1L); |
| | | // 处理业务 |
| | | return receiveMsgService.syncCheckOrder(orders, getLoginUserId()); |
| | | return receiveMsgService.syncCheckOrder(orders, erp.getId()); |
| | | } catch (IllegalArgumentException e) { |
| | | return R.error(e.getMessage()); |
| | | } catch (Exception e) { |