领料单提交

highway
zhaoxiaolin 1 year ago
parent 07d80f45c6
commit a5340c0934

@ -2,6 +2,7 @@ package com.op.system.api;
import com.op.common.core.constant.ServiceNameConstants; import com.op.common.core.constant.ServiceNameConstants;
import com.op.common.core.domain.R; import com.op.common.core.domain.R;
import com.op.system.api.domain.sap.SapMaterialPreparation;
import com.op.system.api.factory.RemoteSapFallbackFactory; import com.op.system.api.factory.RemoteSapFallbackFactory;
import com.op.system.api.model.SapProOrder; import com.op.system.api.model.SapProOrder;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
@ -23,5 +24,5 @@ public interface RemoteSapService {
public R<Boolean> bomSync(); public R<Boolean> bomSync();
@PostMapping("/sap/sapProRouteProcess") @PostMapping("/sap/sapProRouteProcess")
public R<Boolean> sapProRouteProcess(); public R<Boolean> sapProRouteProcess();
public R<List<SapMaterialPreparation>>materialPreparation(SapMaterialPreparation sapMaterialPreparation);
} }

@ -2,6 +2,7 @@ package com.op.system.api.factory;
import com.op.common.core.domain.R; import com.op.common.core.domain.R;
import com.op.system.api.RemoteSapService; import com.op.system.api.RemoteSapService;
import com.op.system.api.domain.sap.SapMaterialPreparation;
import com.op.system.api.model.SapProOrder; import com.op.system.api.model.SapProOrder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -24,6 +25,16 @@ public class RemoteSapFallbackFactory implements FallbackFactory<RemoteSapServic
public R<Boolean> bomSync() { public R<Boolean> bomSync() {
return null; return null;
} }
@Override
public R<Boolean> sapProRouteProcess() {
return null;
}
@Override
public R<List<SapMaterialPreparation>> materialPreparation(SapMaterialPreparation sapMaterialPreparation) {
return R.fail("SAP服务获取SAP领料单失败:" + throwable.getMessage());
}
}; };
} }
} }

@ -1,18 +1,20 @@
package com.op.mes.service; package com.op.mes.service;
import java.util.List; import java.util.List;
import com.op.common.core.domain.R;
import com.op.mes.domain.MesPrepare; import com.op.mes.domain.MesPrepare;
/** /**
* Service * Service
* *
* @author Open Platform * @author Open Platform
* @date 2023-08-03 * @date 2023-08-03
*/ */
public interface IMesPrepareService { public interface IMesPrepareService {
/** /**
* *
* *
* @param prepareId * @param prepareId
* @return * @return
*/ */
@ -20,7 +22,7 @@ public interface IMesPrepareService {
/** /**
* *
* *
* @param mesPrepare * @param mesPrepare
* @return * @return
*/ */
@ -28,7 +30,7 @@ public interface IMesPrepareService {
/** /**
* *
* *
* @param mesPrepare * @param mesPrepare
* @return * @return
*/ */
@ -36,7 +38,7 @@ public interface IMesPrepareService {
/** /**
* *
* *
* @param mesPrepare * @param mesPrepare
* @return * @return
*/ */
@ -44,7 +46,7 @@ public interface IMesPrepareService {
/** /**
* *
* *
* @param prepareIds * @param prepareIds
* @return * @return
*/ */
@ -52,9 +54,11 @@ public interface IMesPrepareService {
/** /**
* *
* *
* @param prepareId * @param prepareId
* @return * @return
*/ */
public int deleteMesPrepareByPrepareId(String prepareId); public int deleteMesPrepareByPrepareId(String prepareId);
public R getMesPrepare();
} }

Loading…
Cancel
Save