提交 00bd4cd3 authored 作者: zhoushaopan's avatar zhoushaopan

fix(自查上链模块): 自查上链出现500

自查上链出现非在库转换json失败
上级 061af1fc
...@@ -566,13 +566,15 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService { ...@@ -566,13 +566,15 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
selfExaminationBillEntity.setHistoryDeviceBills(historyDeviceBillList); selfExaminationBillEntity.setHistoryDeviceBills(historyDeviceBillList);
// 4添加业务日志 // 4添加业务日志
String unStockDetail = selfExaminationBillEntity.getUnStockDetail();
if (selfExaminationBillEntity.getUnStockDetail()!=null){ if (unStockDetail !=null){
//5 非在库 //5 非在库
List<DeviceLibrary> deviceLibraries = JacksonUtil.readValue(selfExaminationBillEntity.getUnStockDetail(), new TypeReference<List<DeviceLibrary>>() { List<DeviceLibrary> deviceLibraries = JacksonUtil.readValue(unStockDetail, new TypeReference<List<DeviceLibrary>>() {
}); });
if (deviceLibraries!=null) { if (deviceLibraries!=null) {
newDeviceList.addAll(deviceLibraries); newDeviceList.addAll(deviceLibraries);
}else {
log.info("非在库Json转换失败,业务id为:{},json字符串为:{}",selfExaminationBillEntity.getId(),unStockDetail);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论