|
@@ -87,7 +87,7 @@ public class DaZsdaServiceImpl implements DaZsdaService {
|
|
|
|
|
|
@Override
|
|
|
public Result findAll(String name , Integer pageNum , Integer pageSize) {
|
|
|
-// try {
|
|
|
+ try {
|
|
|
Map map = new HashMap();
|
|
|
Integer startPage = (pageNum-1) * pageSize;
|
|
|
List<DaZsda> all = rep.findAll(name,startPage,pageSize);
|
|
@@ -118,21 +118,15 @@ public class DaZsdaServiceImpl implements DaZsdaService {
|
|
|
map1.put("zsmc",daZsda.getZsmc());
|
|
|
map1.put("zsqy",daZsda.getZsqy());
|
|
|
map1.put("ssqy",daZsda.getSsqy());
|
|
|
- List<DaJqda> allByZSID = jqdaRepo.findAllByZSID(id);
|
|
|
- if (allByZSID != null && allByZSID.size()>0){
|
|
|
- map1.put("jqid",allByZSID.get(0).getJQID());
|
|
|
- }else {
|
|
|
- map1.put("jqid",null);
|
|
|
- }
|
|
|
-
|
|
|
+ map1.put("jqid",jqdaRepo.findAllByZSID(id).get(0).getJQID());
|
|
|
list.add(map1);
|
|
|
}
|
|
|
map.put("data",list);
|
|
|
-
|
|
|
+
|
|
|
return new Result(ResultCode.SUCCESS,map);
|
|
|
-// }catch (Exception e){
|
|
|
-// return new Result(ResultCode.FAIL);
|
|
|
-// }
|
|
|
+ }catch (Exception e){
|
|
|
+ return new Result(ResultCode.FAIL);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|