提交 bd20ddaa authored 作者: 邓砥奕's avatar 邓砥奕

[自查模块]修改返回数组bug

上级 59d5cc2b
......@@ -408,10 +408,11 @@ public class SelfCheckController {
String str4 = selfExaminationBillEntity.getNewDeviceDetail();
String[] split = str3.split("x");
//添加新增不在系统的装备
List<DeviceLibrary> newDeviceList = new ArrayList<>();
if (str4!=null) {
//分隔字符获得rfid卡号
String[] split2 = str4.split("\\.");
List<DeviceLibrary> newDeviceList = new ArrayList<>();
newDeviceList = new ArrayList<>();
for (String rfid:split2){
if (rfid.length()>0){
DeviceLibrary d = new DeviceLibrary();
......@@ -425,8 +426,8 @@ public class SelfCheckController {
newDeviceList.add(d);
}
}
list.add(newDeviceList);
}
list.add(newDeviceList);
List<DeviceLibrary> libraryEntities1 = new ArrayList<>();
//添加自查装备
for (String s:split) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论