领料单提交

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,6 +1,8 @@
package com.op.mes.service;
import java.util.List;
import com.op.common.core.domain.R;
import com.op.mes.domain.MesPrepare;
/**
@ -57,4 +59,6 @@ public interface IMesPrepareService {
* @return
*/
public int deleteMesPrepareByPrepareId(String prepareId);
public R getMesPrepare();
}

Loading…
Cancel
Save