入库部分和接口
This commit is contained in:
@@ -50,15 +50,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
is2.spare4,
|
||||
is2.spare3,
|
||||
is2.spare5,
|
||||
bw.warehouse_name,
|
||||
bs.supplier_name,
|
||||
sd.dept_name ,
|
||||
su.user_name
|
||||
bw.warehouse_name
|
||||
from in_stockin is2
|
||||
left join bas_warehouse bw on is2.warehouse_id = bw.warehouse_id
|
||||
left join bas_supplier bs on bs.supplier_no = is2.supplier_no
|
||||
left join sys_dept sd on is2.department_no = sd.dept_id
|
||||
left join sys_user su on su.user_id = is2.create_man_id
|
||||
-- left join bas_supplier bs on bs.supplier_no = is2.supplier_no
|
||||
-- left join sys_dept sd on is2.department_no = sd.dept_id
|
||||
-- left join sys_user su on su.user_id = is2.create_man_id
|
||||
</sql>
|
||||
|
||||
<select id="selectInStockinList" parameterType="InStockin" resultMap="InStockinResult">
|
||||
@@ -74,12 +71,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finishDate != null and finishDate != ''"> and is2.create_date <= #{finishDate}</if>
|
||||
<if test="erpBill != null and erpBill != ''"> and is2.erp_bill = #{erpBill}</if>
|
||||
<if test="stockSource != null and stockSource != ''"> and is2.stock_source = #{stockSource}</if>
|
||||
<if test="departmentNo != null and departmentNo != ''"> and is2.department_no = #{departmentNo}</if>
|
||||
<if test="departmentNo != null and departmentNo != ''"> and is2.department_no like concat('%', #{departmentNo},'%')</if>
|
||||
<if test="customerNo != null and customerNo != ''"> and is2.customer_no = #{customerNo}</if>
|
||||
<if test="classNo != null and classNo != ''"> and is2.class_no = #{classNo}</if>
|
||||
<if test="supplierNo != null and supplierNo != ''"> and is2.supplier_no = #{supplierNo}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and is2.spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and is2.spare2 = #{spare2}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and is2.spare1 like concat('%', #{spare1},'%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and is2.spare2 like concat('%', #{spare2},'%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and is2.spare4 = #{spare4}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and is2.spare3 = #{spare3}</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and is2.spare5 = #{spare5}</if>
|
||||
|
||||
Reference in New Issue
Block a user