|
|
|
|
@ -551,4 +551,32 @@ public class ErpDataProduceServiceImpl implements IErpDataProduceService { |
|
|
|
|
} |
|
|
|
|
return excflag; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String returnOemErpByWxno(String wxNo) { |
|
|
|
|
SimpleJdbcCall jdbcCall = new SimpleJdbcCall(jdbcTemplate) |
|
|
|
|
// 指定存储过程名(包含 DB Link)
|
|
|
|
|
.withProcedureName("dba_mgr.pro_rbwxdel") |
|
|
|
|
// 建议关闭元数据访问(通过 DB Link 访问时可避免权限/性能问题)
|
|
|
|
|
.withoutProcedureColumnMetaDataAccess() |
|
|
|
|
// 显式声明参数
|
|
|
|
|
.declareParameters( |
|
|
|
|
new SqlParameter("v_wxno", Types.VARCHAR), |
|
|
|
|
new SqlOutParameter("v_excnote", Types.VARCHAR), |
|
|
|
|
new SqlOutParameter("v_excflag", Types.VARCHAR) |
|
|
|
|
); |
|
|
|
|
// 2. 封装输入参数
|
|
|
|
|
Map<String, Object> inParams = new HashMap<>(); |
|
|
|
|
inParams.put("v_wxno", wxNo); |
|
|
|
|
// 3. 执行并获取结果 Map
|
|
|
|
|
Map<String, Object> resultMap = jdbcCall.execute(inParams); |
|
|
|
|
|
|
|
|
|
// 4. 提取输出参数
|
|
|
|
|
String excflag = (String) resultMap.get("v_excflag"); |
|
|
|
|
String excnote = (String) resultMap.get("v_excnote"); |
|
|
|
|
if ("0".equals(excflag)) { |
|
|
|
|
throw new ServiceException("外协订单调用接口回退异常:" + excnote); |
|
|
|
|
} |
|
|
|
|
return excflag; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|