领料单提交

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.domain.R;
import com.op.system.api.domain.sap.SapMaterialPreparation;
import com.op.system.api.factory.RemoteSapFallbackFactory;
import com.op.system.api.model.SapProOrder;
import org.springframework.cloud.openfeign.FeignClient;
@ -23,5 +24,5 @@ public interface RemoteSapService {
public R<Boolean> bomSync();
@PostMapping("/sap/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.system.api.RemoteSapService;
import com.op.system.api.domain.sap.SapMaterialPreparation;
import com.op.system.api.model.SapProOrder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -24,6 +25,16 @@ public class RemoteSapFallbackFactory implements FallbackFactory<RemoteSapServic
public R<Boolean> bomSync() {
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;
import java.util.List;
import com.op.common.core.domain.R;
import com.op.mes.domain.MesPrepare;
/**
* Service
*
*
* @author Open Platform
* @date 2023-08-03
*/
public interface IMesPrepareService {
/**
*
*
*
* @param prepareId
* @return
*/
@ -20,7 +22,7 @@ public interface IMesPrepareService {
/**
*
*
*
* @param mesPrepare
* @return
*/
@ -28,7 +30,7 @@ public interface IMesPrepareService {
/**
*
*
*
* @param mesPrepare
* @return
*/
@ -36,7 +38,7 @@ public interface IMesPrepareService {
/**
*
*
*
* @param mesPrepare
* @return
*/
@ -44,7 +46,7 @@ public interface IMesPrepareService {
/**
*
*
*
* @param prepareIds
* @return
*/
@ -52,9 +54,11 @@ public interface IMesPrepareService {
/**
*
*
*
* @param prepareId
* @return
*/
public int deleteMesPrepareByPrepareId(String prepareId);
public R getMesPrepare();
}

Loading…
Cancel
Save