Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
潘荣晟
2025-10-21 18:05:13 +08:00
7 changed files with 75 additions and 39 deletions

View File

@@ -22,11 +22,17 @@ public class ErpSubmitReqDTO {
* "sign": 签名uuid+srcsys+密码MD5 32位小写签名密码另行约定
* "req": {具体参数参见RFC功能列表}
*/
@Schema(description = "接口编号必须参见RFC功能列表可调用接口编号范围051-900")
private String funcnr;
@Schema(description = "调用系统业务单据编号,必须,在外部系统唯一,用于关联")
private String bskey;
@Schema(description = "SAP系统ID, 必须")
private String usrid;
@Schema(description = "源调用系统ID必须")
private String usrnm;
private String sign;
// @Schema(description = "签名uuid+srcsys+密码MD5 32位小写签名密码另行约定")
// private String sign;
@Schema(description = "具体参数参见RFC功能列表")
private Map<String, Object> req;
}

View File

@@ -159,13 +159,13 @@ public class ErpProductiveVersionServiceImpl implements ErpProductiveVersionServ
JSONObject dataJson = dataArray.getJSONObject(i);
if (dataJson != null) {
ErpProductiveVersionDO DO = new ErpProductiveVersionDO();
DO.setFactoryNumber(dataJson.getString("MATNR") != null ? dataJson.getString("MATNR").trim() : null);
DO.setMaterialNumber(dataJson.getString("WERKS") != null ? dataJson.getString("WERKS").trim() : null);
DO.setFactoryNumber(dataJson.getString("WERKS") != null ? dataJson.getString("WERKS").trim() : null);
DO.setMaterialNumber(dataJson.getString("MATNR") != null ? dataJson.getString("MATNR").trim() : null);
DO.setProductiveVersionNumber(dataJson.getString("VERID") != null ? dataJson.getString("VERID").trim() : null);
DO.setProductiveVersionName(dataJson.getString("TEXT1"));
DO.setBomNumber(dataJson.getString("STLAL"));
DO.setBlineGroup(dataJson.getString("PLNNR"));
String alnalValue = dataJson.getString("ALNAL");
DO.setBlineGroup(dataJson.getString("ALNAL"));
String alnalValue = dataJson.getString("PLNNR");
// 修复:增加对空字符串的判断
DO.setGroupCount(alnalValue != null && !alnalValue.trim().isEmpty() ? Long.valueOf(alnalValue.trim()) : null);
String number = dataJson.getString("MATNR").trim() + "-" + dataJson.getString("WERKS").trim() + "-" + dataJson.getString("VERID").trim();

View File

@@ -107,9 +107,6 @@ public class ErpConfig {
requestBody.put("bskey", reqDTO.getBskey());
requestBody.put("usrid", reqDTO.getUsrid());
requestBody.put("usrnm", reqDTO.getUsrnm());
if (reqDTO.getSign() != null) {
requestBody.put("sign", reqDTO.getSign());
}
if (reqDTO.getReq() != null) {
requestBody.put("req", reqDTO.getReq());
}