change - SAP接口

master
zhouhy 1 year ago
parent 748baeaff1
commit c3f42d0ffb

@ -60,7 +60,7 @@ public class SAPPortServiceImpl implements ISAPPortService {
// 将 JSON 字符串转换为 Java 对象
SAPResultVo resultVo = resultMapper.readValue(result, SAPResultVo.class);
//判断返回数据是否正确
if (StringUtils.isNull(resultVo.getO_RETURN()) || "0".equals(resultVo.getO_RETURN().getItem().get(0).get("ID"))){
if (StringUtils.isNull(resultVo.getO_RETURN()) || !"0".equals(resultVo.getO_RETURN().getItem().get(0).get("ID"))){
throw new BaseException("处理接口返回消息错误ID不为0或O_RETURN为空");
}
//转物料实体类 保存数据

@ -7,6 +7,7 @@ import com.aucma.base.domain.BaseMaterialInfo;
import com.aucma.base.service.IBaseDeviceLedgerService;
import com.aucma.base.service.IBaseMaterialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
@ -17,6 +18,7 @@ import java.util.List;
* @Author YinQ
* @create 2023-09-27 15:07
*/
@Service
public class SAPPutStorageServiceImpl implements ISAPPutStorageService {
@Autowired

Loading…
Cancel
Save