|
|
|
@ -11,6 +11,7 @@ import com.op.sap.service.SapBomService;
|
|
|
|
|
import com.op.sap.domain.SapBom;
|
|
|
|
|
import com.op.sap.service.SapMaterialPreparationService;
|
|
|
|
|
import com.op.sap.service.SapOrderService;
|
|
|
|
|
import com.op.sap.service.SapService;
|
|
|
|
|
import com.op.system.api.domain.sap.SapMaterialPreparation;
|
|
|
|
|
import com.op.system.api.model.SapProOrder;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -22,6 +23,8 @@ import java.util.List;
|
|
|
|
|
@RequestMapping("/sap")
|
|
|
|
|
public class SapController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private SapService sapService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private SapOrderService sapOrderService;
|
|
|
|
|
|
|
|
|
@ -72,6 +75,21 @@ public class SapController extends BaseController {
|
|
|
|
|
return sapMaterialPreparationService.MaterialPreparation(shopOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @PostMapping("saveItem")
|
|
|
|
|
// public R<Boolean> saveItem(){
|
|
|
|
|
// return sapService.sapItem();
|
|
|
|
|
// }
|
|
|
|
|
// @PostMapping("saveProRoute")
|
|
|
|
|
// public R<Boolean> saveProRoute(){return sapService.sapProRoute();}
|
|
|
|
|
// @PostMapping("/sapProRouteProduct")
|
|
|
|
|
// public R<Boolean> sapProRouteProduct(){
|
|
|
|
|
// return sapService.sapProRouteProduct();
|
|
|
|
|
// }
|
|
|
|
|
@PostMapping("/sapProRouteProcess")
|
|
|
|
|
public R<Boolean> sapProRouteProcess() {
|
|
|
|
|
return sapService.sapProRouteProcess();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|