领料接口优化

This commit is contained in:
sxu 2024-11-14 17:52:55 +08:00
parent dba1d641d8
commit 2cf725d4d3
3 changed files with 5 additions and 2 deletions

View File

@ -67,4 +67,7 @@ public class LeaseOutDetails extends BaseEntity {
@ApiModelProperty(value = "数量出库-出库数量")
private Long inputNum;
@ApiModelProperty(value = "0工程1长期")
private String leaseType;
}

View File

@ -170,6 +170,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService {
return AjaxResult.error("已领数量大于预领数量或该机具未在库");
}
} catch (Exception e) {
log.error(e.getMessage());
return AjaxResult.error("出库失败");
}
return AjaxResult.success("出库成功");

View File

@ -662,8 +662,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select lease_price as leasePrice,
rent_price as rentPrice,
buy_price as buyPrice,
pay_price as payPrice,
company_id as companyId
pay_price as payPrice
from ma_type
where type_id = #{typeId} and del_flag = 0
</select>