修正判断逻辑
This commit is contained in:
parent
3aa081ddd0
commit
7b0c928309
|
|
@ -61,19 +61,19 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
// 更新 (ma_machine 设备表)的状态
|
||||
int updateMaMachineStatus = leaseOutDetailsMapper.updateMaMachineStatus(record);
|
||||
// 插入(tm_task_agreement 任务协议表)协议信息
|
||||
int insertAgreementInfo = leaseOutDetailsMapper.insertAgreementInfo(record);
|
||||
// int insertAgreementInfo = leaseOutDetailsMapper.insertAgreementInfo(record);
|
||||
|
||||
// 进行状态判断
|
||||
if (updateLeaseApplyDetailsOutNum > 0) {
|
||||
if (insertSelectiveNum > 0) {
|
||||
if (updateMaTypeStockNum > 0) {
|
||||
if (updateMaMachineStatus > 0) {
|
||||
if (insertAgreementInfo > 0) {
|
||||
// if (updateMaMachineStatus > 0) {
|
||||
// if (insertAgreementInfo > 0) {
|
||||
return AjaxResult.success("领料出库成功!");
|
||||
}
|
||||
return AjaxResult.error("领料出库失败,插入任务协议信息错误!");
|
||||
}
|
||||
return AjaxResult.error("领料出库失败,最后更新设备状态错误!");
|
||||
// }
|
||||
// return AjaxResult.error("领料出库失败,插入任务协议信息错误!");
|
||||
// }
|
||||
// return AjaxResult.error("领料出库失败,最后更新设备状态错误!");
|
||||
}
|
||||
return AjaxResult.error("出库失败,更新设备规格库存数量时出错!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue