|
@@ -75,8 +75,11 @@ public class OutStoreFormServiceImpl extends BaseServiceImpl<OutStoreFormMapper,
|
|
|
public OutStoreFormVO selectbyRepairForm(String id) {
|
|
|
List<OutStoreDetail> outStoreDetails = outStoreDetailService.getModelListByDTO(new OutStoreDetailDTO().setRepairFormId(id));
|
|
|
OutStoreFormVO vo = new OutStoreFormVO();
|
|
|
- vo.setId(outStoreDetails.get(0).getOutId());
|
|
|
- return vo.setOutStoreDetail(outStoreDetails);
|
|
|
+ if (outStoreDetails!=null&&outStoreDetails.size()>0) {
|
|
|
+ vo.setId(outStoreDetails.get(0).getOutId());
|
|
|
+ return vo.setOutStoreDetail(outStoreDetails);
|
|
|
+ }
|
|
|
+ return new OutStoreFormVO();
|
|
|
}
|
|
|
|
|
|
@Override
|