|
@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="materialName" column="materialName" /> |
|
|
<result property="materialName" column="materialName" /> |
|
|
<result property="materialType" column="materialType" /> |
|
|
<result property="materialType" column="materialType" /> |
|
|
<result property="processMethod" column="processMethod" /> |
|
|
<result property="processMethod" column="processMethod" /> |
|
|
|
|
|
<result property="materialModel" column="material_model" /> |
|
|
<result property="brand" column="brand" /> |
|
|
<result property="brand" column="brand" /> |
|
|
<result property="unit" column="unit" /> |
|
|
<result property="unit" column="unit" /> |
|
|
<result property="photoUrl" column="photoUrl" /> |
|
|
<result property="photoUrl" column="photoUrl" /> |
|
@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectSysSalesOrderChild"> |
|
|
<sql id="selectSysSalesOrderChild"> |
|
|
select a.id, a.quoteId, a.materialId, a.materialCode, a.materialName, a.materialType, a.processMethod, a.brand, a.photoUrl,a.unit, a.`describe`, |
|
|
select a.id, a.quoteId, a.materialId, a.materialCode, a.materialName, a.materialType, a.processMethod, a.material_model, a.brand, a.photoUrl,a.unit, a.`describe`, |
|
|
a.warehouseDept,a.countTax, a.usdTax, a.materialNum,a.materialSole, a.recentQuotation_rmb, a.recentQuotation_usd, a.materialRmb, a.materialNoRmb, a.materialNoUsd, a.materialUsd, a.materialUsdSum, |
|
|
a.warehouseDept,a.countTax, a.usdTax, a.materialNum,a.materialSole, a.recentQuotation_rmb, a.recentQuotation_usd, a.materialRmb, a.materialNoRmb, a.materialNoUsd, a.materialUsd, a.materialUsdSum, |
|
|
a.materialNoUsdSum, a.materialNoRmbSum, a.materialRmbSum,a.delivery_time, a.expiry_day, |
|
|
a.materialNoUsdSum, a.materialNoRmbSum, a.materialRmbSum,a.delivery_time, a.expiry_day, |
|
|
a.out_bound_quantity, a.un_bound_quantity, a.create_by, a.create_time, a.update_by, |
|
|
a.out_bound_quantity, a.un_bound_quantity, a.create_by, a.create_time, a.update_by, |
|
@ -73,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
order by a.id desc |
|
|
order by a.id desc |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectSysSalesOrderChildListAll" parameterType="SysSalesOrderChild" resultMap="SysSalesOrderChildResult"> |
|
|
<select id="selectSysSalesOrderChildListAll" parameterType="SysSalesOrderChild" resultMap="SysSalesOrderChildResult"> |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, brand, photoUrl,unit, `describe`, |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, material_model, brand, photoUrl,unit, `describe`, |
|
|
warehouseDept,countTax, usdTax, materialNum,materialSole , recentQuotation_rmb, recentQuotation_usd, materialRmb, materialNoRmb, materialNoUsd, materialUsd, materialUsdSum, |
|
|
warehouseDept,countTax, usdTax, materialNum,materialSole , recentQuotation_rmb, recentQuotation_usd, materialRmb, materialNoRmb, materialNoUsd, materialUsd, materialUsdSum, |
|
|
materialNoUsdSum, materialNoRmbSum, materialRmbSum,delivery_time, expiry_day, |
|
|
materialNoUsdSum, materialNoRmbSum, materialRmbSum,delivery_time, expiry_day, |
|
|
out_bound_quantity, un_bound_quantity, create_by, create_time, update_by, |
|
|
out_bound_quantity, un_bound_quantity, create_by, create_time, update_by, |
|
@ -102,7 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectSalesOrderChildByCodeAndNo" resultMap="SysSalesOrderChildResult"> |
|
|
<select id="selectSalesOrderChildByCodeAndNo" resultMap="SysSalesOrderChildResult"> |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, brand, |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, material_model, brand, |
|
|
warehouseDept,materialNum, has_check_num, apply_shipping_num, out_bound_quantity |
|
|
warehouseDept,materialNum, has_check_num, apply_shipping_num, out_bound_quantity |
|
|
from sys_sales_order_child |
|
|
from sys_sales_order_child |
|
|
where quoteId = #{quoteId} |
|
|
where quoteId = #{quoteId} |
|
@ -110,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectOrderChildListBySalesOrderCode" resultMap="SysSalesOrderChildResult"> |
|
|
<select id="selectOrderChildListBySalesOrderCode" resultMap="SysSalesOrderChildResult"> |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, brand, materialRmbSum, materialRmb, materialUsd, materialUsdSum, |
|
|
select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, material_model, brand, materialRmbSum, materialRmb, materialUsd, materialUsdSum, |
|
|
warehouseDept,materialNum, photoUrl,finish_num,apply_shipping_num,has_apply_shipping_num, has_check_num, out_bound_quantity,delivery_time,countTax, |
|
|
warehouseDept,materialNum, photoUrl,finish_num,apply_shipping_num,has_apply_shipping_num, has_check_num, out_bound_quantity,delivery_time,countTax, |
|
|
materialRmb, materialNoRmb, materialNoUsd, materialUsd |
|
|
materialRmb, materialNoRmb, materialNoUsd, materialUsd |
|
|
from sys_sales_order_child |
|
|
from sys_sales_order_child |
|
@ -136,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="materialName != null">materialName,</if> |
|
|
<if test="materialName != null">materialName,</if> |
|
|
<if test="materialType != null">materialType,</if> |
|
|
<if test="materialType != null">materialType,</if> |
|
|
<if test="processMethod != null">processMethod,</if> |
|
|
<if test="processMethod != null">processMethod,</if> |
|
|
|
|
|
<if test="materialModel != null">material_model,</if> |
|
|
<if test="brand != null">brand,</if> |
|
|
<if test="brand != null">brand,</if> |
|
|
<if test="unit != null">unit,</if> |
|
|
<if test="unit != null">unit,</if> |
|
|
<if test="photoUrl != null">photoUrl,</if> |
|
|
<if test="photoUrl != null">photoUrl,</if> |
|
@ -178,6 +180,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
<if test="materialType != null">#{materialType},</if> |
|
|
<if test="materialType != null">#{materialType},</if> |
|
|
<if test="processMethod != null">#{processMethod},</if> |
|
|
<if test="processMethod != null">#{processMethod},</if> |
|
|
|
|
|
<if test="materialModel != null">#{materialModel},</if> |
|
|
<if test="brand != null">#{brand},</if> |
|
|
<if test="brand != null">#{brand},</if> |
|
|
<if test="unit != null">#{unit},</if> |
|
|
<if test="unit != null">#{unit},</if> |
|
|
<if test="photoUrl != null">#{photoUrl},</if> |
|
|
<if test="photoUrl != null">#{photoUrl},</if> |
|
@ -224,6 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="materialName != null">materialName = #{materialName},</if> |
|
|
<if test="materialName != null">materialName = #{materialName},</if> |
|
|
<if test="materialType != null">materialType = #{materialType},</if> |
|
|
<if test="materialType != null">materialType = #{materialType},</if> |
|
|
<if test="processMethod != null">processMethod = #{processMethod},</if> |
|
|
<if test="processMethod != null">processMethod = #{processMethod},</if> |
|
|
|
|
|
<if test="materialModel != null">materialModel = #{materialModel},</if> |
|
|
<if test="brand != null">brand = #{brand},</if> |
|
|
<if test="brand != null">brand = #{brand},</if> |
|
|
<if test="photoUrl != null">photoUrl = #{photoUrl},</if> |
|
|
<if test="photoUrl != null">photoUrl = #{photoUrl},</if> |
|
|
<if test="unit != null">unit = #{unit},</if> |
|
|
<if test="unit != null">unit = #{unit},</if> |
|
@ -271,6 +275,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="materialName != null">materialName = #{materialName},</if> |
|
|
<if test="materialName != null">materialName = #{materialName},</if> |
|
|
<if test="materialType != null">materialType = #{materialType},</if> |
|
|
<if test="materialType != null">materialType = #{materialType},</if> |
|
|
<if test="processMethod != null">processMethod = #{processMethod},</if> |
|
|
<if test="processMethod != null">processMethod = #{processMethod},</if> |
|
|
|
|
|
<if test="materialModel != null">materialModel = #{materialModel},</if> |
|
|
<if test="brand != null">brand = #{brand},</if> |
|
|
<if test="brand != null">brand = #{brand},</if> |
|
|
<if test="photoUrl != null">photoUrl = #{photoUrl},</if> |
|
|
<if test="photoUrl != null">photoUrl = #{photoUrl},</if> |
|
|
<if test="unit != null">unit = #{unit},</if> |
|
|
<if test="unit != null">unit = #{unit},</if> |
|
|