检查问题
This commit is contained in:
parent
2f3c07aa38
commit
7ebf9c9e87
|
|
@ -13,6 +13,7 @@ import com.bonus.sgzb.base.mapper.MaLabelBindMapper;
|
|||
import com.bonus.sgzb.base.mapper.MaMachineMapper;
|
||||
import com.bonus.sgzb.base.vo.MaLabelBindVO;
|
||||
import com.bonus.sgzb.common.core.constant.Constants;
|
||||
import com.bonus.sgzb.common.core.exception.ServiceException;
|
||||
import com.bonus.sgzb.common.core.utils.HttpHelper;
|
||||
import com.bonus.sgzb.common.core.utils.StringUtils;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
|
|
@ -128,13 +129,17 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
@Override
|
||||
@Transactional
|
||||
public AjaxResult submitOutRfid(List<LeaseOutDetails> recordList) {
|
||||
for (LeaseOutDetails bean : recordList) {
|
||||
AjaxResult ajaxResult = submitOut(bean);
|
||||
if (ajaxResult.isError()) {
|
||||
return ajaxResult;
|
||||
try {
|
||||
for (LeaseOutDetails bean : recordList) {
|
||||
AjaxResult ajaxResult = submitOut(bean);
|
||||
if (ajaxResult.isError()) {
|
||||
return ajaxResult;
|
||||
}
|
||||
}
|
||||
return AjaxResult.success();
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("循环出库异常");
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -203,8 +208,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
return AjaxResult.error("已领数量大于预领数量或该机具未在库");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("出库失败", e.getMessage());
|
||||
return AjaxResult.error("出库失败");
|
||||
throw new ServiceException("出库异常");
|
||||
}
|
||||
return AjaxResult.success("出库成功");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue