|
|
@ -0,0 +1,59 @@ |
|
|
|
|
|
package com.gaotao.modules.schedule.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
|
|
import com.gaotao.modules.schedule.data.SearchScheduleData; |
|
|
|
|
|
import com.gaotao.modules.schedule.data.ShiftInfoData; |
|
|
|
|
|
import com.gaotao.modules.schedule.service.SchedulingService; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
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 java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Author LR |
|
|
|
|
|
* @Description 排产的操作 |
|
|
|
|
|
* @DateTime 2022/2/28 11:15 |
|
|
|
|
|
* @Param |
|
|
|
|
|
* @return |
|
|
|
|
|
**/ |
|
|
|
|
|
@RestController |
|
|
|
|
|
@RequestMapping(value = "/scheduling") |
|
|
|
|
|
public class SchedulingController { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SchedulingService schedulingService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Author LR |
|
|
|
|
|
* @Description 获取当前的机台对应的加工中心 |
|
|
|
|
|
* @DateTime 2022/2/28 14:39 |
|
|
|
|
|
* @Param [inData] |
|
|
|
|
|
* @return com.gaotao.common.utils.R |
|
|
|
|
|
**/ |
|
|
|
|
|
@PostMapping(value = "getCurrentWorkCenterNoByResourceId") |
|
|
|
|
|
public R getCurrentWorkCenterNoByResourceId(@RequestBody SearchScheduleData inData){ |
|
|
|
|
|
String workCenterNo = schedulingService.getCurrentWorkCenterNoByResourceId(inData); |
|
|
|
|
|
return R.ok() |
|
|
|
|
|
.put("code", 200) |
|
|
|
|
|
.put("msg", "操作成功!") |
|
|
|
|
|
.put("workCenterNo", workCenterNo); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |