|
@ -29,16 +29,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="auditStatus" column="audit_status" /> |
|
|
<result property="auditStatus" column="audit_status" /> |
|
|
<result property="delFlag" column="del_flag" /> |
|
|
<result property="delFlag" column="del_flag" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<resultMap id="supplier" type="PurchaseQuoteChild"> |
|
|
|
|
|
<result property="supplierCode" column="supplier_code"/> |
|
|
|
|
|
<result property="supplierName" column="supplier_name"/> |
|
|
|
|
|
<result property="materialCode" column="material_code"/> |
|
|
|
|
|
<result property="materialName" column="material_name"/> |
|
|
|
|
|
<result property="materialNum" column="material_num"/> |
|
|
|
|
|
<result property="materialSole" column="material_sole"/> |
|
|
|
|
|
<result property="materialRmb" column="material_rmb"/> |
|
|
|
|
|
<result property="materialNoRmb" column="material_noRmb"/> |
|
|
|
|
|
</resultMap> |
|
|
|
|
|
<sql id="selectPurchasePlanChildVo"> |
|
|
<sql id="selectPurchasePlanChildVo"> |
|
|
select purchase_plan_child_id, purchase_plan_code, material_id, |
|
|
select purchase_plan_child_id, purchase_plan_code, material_id, |
|
|
material_code, material_name, material_type, process_method, brand, |
|
|
material_code, material_name, material_type, process_method, brand, |
|
@ -174,20 +164,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</update> |
|
|
</update> |
|
|
<select id="getPurchasePlanChildByPlanCodes" parameterType="String" resultMap="PurchasePlanChildResult"> |
|
|
<select id="getPurchasePlanChildByPlanCodes" parameterType="String" resultMap="PurchasePlanChildResult"> |
|
|
SELECT |
|
|
SELECT |
|
|
plan.material_code, |
|
|
GROUP_CONCAT(DISTINCT planOrder.correlation_code ORDER BY planOrder.correlation_code) AS correlation_codes, |
|
|
GROUP_CONCAT(DISTINCT planOrder.correlation_code ORDER BY planOrder.correlation_code) AS combined_correlation_codes, |
|
|
quote.supplier_code, |
|
|
GROUP_CONCAT(DISTINCT quote.supplier_code ORDER BY quote.supplier_code) AS combined_supplier_codes, |
|
|
GROUP_CONCAT(DISTINCT quote.supplier_code ORDER BY quote.supplier_code) AS supplier_code, |
|
|
plan.material_code, |
|
|
plan.material_code, |
|
|
plan.material_name, |
|
|
plan.material_name, |
|
|
plan.material_type, |
|
|
plan.material_type, |
|
|
plan.process_method, |
|
|
plan.process_method, |
|
|
plan.brand, |
|
|
plan.brand, |
|
|
plan.photoUrl, |
|
|
plan.photoUrl, |
|
|
plan.material_num, |
|
|
plan.material_num |
|
|
quote.material_noRmb, |
|
|
|
|
|
quote.material_rmb, |
|
|
|
|
|
quote.supplier_code, |
|
|
|
|
|
quote.supplier_name |
|
|
|
|
|
FROM |
|
|
FROM |
|
|
purchase_plan_child AS plan |
|
|
purchase_plan_child AS plan |
|
|
LEFT JOIN purchase_plan AS planOrder |
|
|
LEFT JOIN purchase_plan AS planOrder |
|
|