仓库业务逻辑补全2.0 : 1、出库修改删除数据时库存相应改变;2、出库的列表查询 新增更多查询参数 ;3、修复一些BUG
This commit is contained in:
@@ -18,4 +18,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
|
||||
<!-- 仓库出库筛选(联查) -->
|
||||
<select id="defineselectList" resultType="com.ruoyi.oa.domain.vo.SysOaOutWarehouseListVo">
|
||||
select
|
||||
ware.id as id,
|
||||
ware.project_id as projectId,
|
||||
ware.amount as amount,
|
||||
ware.remark as remark,
|
||||
ware.warehouse_id as warehouseId,
|
||||
project.project_name as projectName
|
||||
from
|
||||
sys_oa_out_warehouse ware
|
||||
join
|
||||
sys_oa_project project on ware.project_id = project.project_id
|
||||
<if test="bo.warehouseName != null and bo.warehouseName != ''">
|
||||
join sys_oa_warehouse warehouse on warehouse.id = ware.warehouse_id
|
||||
</if>
|
||||
<where>
|
||||
<if test="bo.projectName != null and bo.projectName != ''">
|
||||
and project.project_name like concat('%', #{bo.projectName}, '%')
|
||||
</if>
|
||||
<if test="bo.id != null and bo.id != ''">
|
||||
and ware.id = #{bo.id}
|
||||
</if>
|
||||
<if test="bo.projectId != null and bo.projectId != ''">
|
||||
and project.project_id = #{bo.projectId}
|
||||
</if>
|
||||
<if test="bo.amount != null and bo.amount != ''">
|
||||
and ware.amount = #{bo.amount}
|
||||
</if>
|
||||
<if test="bo.remark != null and bo.remark != ''">
|
||||
and ware.remark like concat('%', #{bo.remark}, '%')
|
||||
</if>
|
||||
<if test="bo.warehouseId != null and bo.warehouseId != ''">
|
||||
and ware.warehouse_id = #{bo.warehouseId}
|
||||
</if>
|
||||
<if test="bo.warehouseName != null and bo.warehouseName != ''">
|
||||
and warehouse.name like concat('%', #{bo.warehouseName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
<if test="page != null and page.pageNum != null and page.pageSize != null">
|
||||
limit #{page.pageNum}, #{page.pageSize}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -34,5 +34,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user