|
|
@ -54,7 +54,7 @@ public class BsSgcSzAqrwService extends BaseService<BsSgcSzAqrwMapper, BsSgcSzAq |
|
|
|
|
|
|
|
public void saveOther(BsSgcSzAqrw bsSgcSzAqrw) { |
|
|
|
//获取水闸ids
|
|
|
|
String[] sluiceIds = bsSgcSzAqrw.getSluiceIds(); |
|
|
|
String[] sluiceIds = bsSgcSzAqrw.getWagaIds(); |
|
|
|
//设置总数
|
|
|
|
bsSgcSzAqrw.setTaskSluiceNumber((long) sluiceIds.length); |
|
|
|
List<String> ids = Arrays.asList(sluiceIds); |
|
|
@ -78,11 +78,11 @@ public class BsSgcSzAqrwService extends BaseService<BsSgcSzAqrwMapper, BsSgcSzAq |
|
|
|
BsSgcSzAqrw szAqrw = bsSgcSzAqrwMapper.selectById(id); |
|
|
|
|
|
|
|
//获取原来的水闸id
|
|
|
|
String[] sluiceIds = szAqrw.getSluiceIds(); |
|
|
|
String[] sluiceIds = szAqrw.getWagaIds(); |
|
|
|
List<String> strings = Arrays.asList(sluiceIds); |
|
|
|
|
|
|
|
//现在de
|
|
|
|
String[] ids = bsSgcSzAqrw.getSluiceIds(); |
|
|
|
String[] ids = bsSgcSzAqrw.getWagaIds(); |
|
|
|
List<String> list = Arrays.asList(ids); |
|
|
|
//获取新增的
|
|
|
|
List<String> addList = list.stream().filter(x -> !strings.contains(x)).collect(Collectors.toList()); |
|
|
|