60 lines
1.5 KiB
Java
60 lines
1.5 KiB
Java
package com.ruoyi.api.controller;
|
|
|
|
import cn.hutool.json.JSONObject;
|
|
import com.ruoyi.api.domain.wcs2wms.JobParam;
|
|
import com.ruoyi.api.domain.wcs2wms.ReceiveJob;
|
|
import com.ruoyi.api.service.IApiService;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
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;
|
|
|
|
@RestController
|
|
@RequestMapping("/wcs2Wms/api")
|
|
public class Wcs2WmsController {
|
|
|
|
@Autowired
|
|
private IApiService apiService;
|
|
|
|
/**
|
|
* 接收出库任务
|
|
*
|
|
* @param receiveOutJob
|
|
* @return
|
|
*/
|
|
@PostMapping("/receiveOutMydoJob")
|
|
public AjaxResult receiveOutMydoJob(@RequestBody ReceiveJob receiveOutJob) {
|
|
return apiService.receiveOutMydoJob(receiveOutJob);
|
|
}
|
|
|
|
/**
|
|
* 接收入库任务
|
|
*
|
|
* @param receiveInJob
|
|
* @return
|
|
*/
|
|
@PostMapping("/receiveInMydoJob")
|
|
public AjaxResult receiveInMydoJob(@RequestBody ReceiveJob receiveInJob) {
|
|
return apiService.receiveInMydoJob(receiveInJob);
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* wms取消任务
|
|
* @param jobParam
|
|
* @return
|
|
*/
|
|
@PostMapping("/cancelMydoJob")
|
|
public AjaxResult cancelMydoJob(@RequestBody JobParam jobParam) {
|
|
return apiService.cancelMydoJob(jobParam);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|