opt:acs接口优化

This commit is contained in:
2025-09-22 10:14:09 +08:00
parent e654f965b9
commit 812200115b
3 changed files with 8 additions and 1 deletions

View File

@@ -90,6 +90,10 @@ public class GroupController {
List<GroupPlateDtl> groupPlateDtlList = new ArrayList<>();
JSONArray dtlList = group.getJSONArray("dtlList");
if(null == dtlList || dtlList.size() == 0){
throw new BadRequestException("dtlList不可为空");
}
BigDecimal qty = new BigDecimal("0");
for (int i = 0; i < dtlList.size(); i++) {
JSONObject row = dtlList.getJSONObject(i);

View File

@@ -54,7 +54,7 @@ public class AcsUtil {
String url = acsUrlParam.getValue() + api;
try {
String resultMsg = HttpRequest.post(url)
.body(String.valueOf(param))
.body(JSONObject.toJSONString(param))
.execute().body();
// 格式转换
JSONObject result = JSONObject.parseObject(resultMsg);

View File

@@ -183,6 +183,9 @@ public class PdaIosInServiceImpl implements PdaIosInService {
List<GroupPlateDtl> groupPlateDtlList = new ArrayList<>();
JSONArray dtlList = whereJson.getJSONArray("dtlList");
if(null == dtlList){
throw new BadRequestException("dtlList不可为空");
}
BigDecimal qty = new BigDecimal("0");
for (int i = 0; i < dtlList.size(); i++) {
JSONObject row = dtlList.getJSONObject(i);