|
|
@@ -669,7 +669,14 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
if(!map.containsKey("data") || !StringUtil.hasText(map.get("data"))){
|
|
|
return ApiResponse.failRsp(ErrorMessage.BUSINESS_ILLEGAL.getCode(), requestId, "参数错误sncode不能为空");
|
|
|
}
|
|
|
- Map<Object, Object> map1 = BaseUtil.parseFormStoreToMap(map.get("data").toString());
|
|
|
+ Object obj = map.get("data");
|
|
|
+ Map<Object, Object> map1 = new HashMap<>();
|
|
|
+ if (obj instanceof Map) {
|
|
|
+ map1 = (Map<Object, Object>) obj;
|
|
|
+ } else {
|
|
|
+ // 对象不是Map类型
|
|
|
+ map1 = BaseUtil.parseFormStoreToMap(map.get("data").toString());
|
|
|
+ }
|
|
|
if(!map1.containsKey("sncode") || !StringUtil.hasText(map1.get("sncode"))){
|
|
|
return ApiResponse.failRsp(ErrorMessage.BUSINESS_ILLEGAL.getCode(), requestId, "参数错误sncode不能为空");
|
|
|
}
|