|
@@ -1,82 +1,82 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper
|
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.zkqy.business.mapper.ProductCodeListMapper">
|
|
|
-
|
|
|
<resultMap type="com.zkqy.business.domain.ProductCodeList" id="ProductCodeListResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="qrCode" column="qr_code" />
|
|
|
- <result property="lotNum" column="lot_num" />
|
|
|
- <result property="productId" column="product_id" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="qrCode" column="qr_code"/>
|
|
|
+ <result property="lotNum" column="lot_num"/>
|
|
|
+ <result property="productId" column="product_id"/>
|
|
|
<result property="productColour" column="product_colour"/>
|
|
|
- <result property="levels" column="levels" />
|
|
|
- <result property="canisterNum" column="canister_num" />
|
|
|
- <result property="boxNum" column="box_num" />
|
|
|
- <result property="suttle" column="suttle" />
|
|
|
- <result property="productionDate" column="production_date" />
|
|
|
- <result property="machineTool" column="machine_tool" />
|
|
|
- <result property="grossWeight" column="gross_weight" />
|
|
|
- <result property="packaging" column="packaging" />
|
|
|
- <result property="workShifts" column="work_shifts" />
|
|
|
- <result property="foreignTradeNumber" column="foreign_trade_number" />
|
|
|
- <result property="canisterWeight" column="canister_weight" />
|
|
|
- <result property="boxWeight" column="box_weight" />
|
|
|
- <result property="tubeColor" column="tube_color" />
|
|
|
- <result property="comPort" column="com_port" />
|
|
|
- <result property="printFormat" column="print_format" />
|
|
|
- <result property="packagingType" column="packaging_type" />
|
|
|
- <result property="storageLocation" column="storage_location" />
|
|
|
- <result property="warehouseregionId" column="warehouseregion_id" />
|
|
|
- <result property="remark" column="remark" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createById" column="create_by_id" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateById" column="update_by_id" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
+ <result property="levels" column="levels"/>
|
|
|
+ <result property="canisterNum" column="canister_num"/>
|
|
|
+ <result property="boxNum" column="box_num"/>
|
|
|
+ <result property="suttle" column="suttle"/>
|
|
|
+ <result property="productionDate" column="production_date"/>
|
|
|
+ <result property="machineTool" column="machine_tool"/>
|
|
|
+ <result property="grossWeight" column="gross_weight"/>
|
|
|
+ <result property="packaging" column="packaging"/>
|
|
|
+ <result property="workShifts" column="work_shifts"/>
|
|
|
+ <result property="foreignTradeNumber" column="foreign_trade_number"/>
|
|
|
+ <result property="canisterWeight" column="canister_weight"/>
|
|
|
+ <result property="boxWeight" column="box_weight"/>
|
|
|
+ <result property="tubeColor" column="tube_color"/>
|
|
|
+ <result property="comPort" column="com_port"/>
|
|
|
+ <result property="printFormat" column="print_format"/>
|
|
|
+ <result property="packagingType" column="packaging_type"/>
|
|
|
+ <result property="storageLocation" column="storage_location"/>
|
|
|
+ <result property="warehouseregionId" column="warehouseregion_id"/>
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
+ <result property="delFlag" column="del_flag"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="createById" column="create_by_id"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
+ <result property="updateById" column="update_by_id"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
<result property="totalCanisterNum" column="total_canister_num"/>
|
|
|
<result property="totalBoxNum" column="total_box_num"/>
|
|
|
<result property="totalSuttle" column="total_suttle"/>
|
|
|
<result property="totalGrossWeight" column="total_gross_weight"/>
|
|
|
<result property="qrCodeId" column="qr_code_id"/>
|
|
|
<result property="withdrawingFlag" column="withdrawing_flag"/>
|
|
|
+ <result property="saleProductId" column="sale_product_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zkqy.business.domain.vo.ProductCodeListVO" id="ProductCodeListResultVO">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="qrCode" column="qr_code" />
|
|
|
- <result property="lotNum" column="lot_num" />
|
|
|
- <result property="productId" column="product_id" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="qrCode" column="qr_code"/>
|
|
|
+ <result property="lotNum" column="lot_num"/>
|
|
|
+ <result property="productId" column="product_id"/>
|
|
|
<result property="productColour" column="product_colour"/>
|
|
|
- <result property="levels" column="levels" />
|
|
|
- <result property="canisterNum" column="canister_num" />
|
|
|
- <result property="boxNum" column="box_num" />
|
|
|
- <result property="suttle" column="suttle" />
|
|
|
- <result property="productionDate" column="production_date" />
|
|
|
- <result property="machineTool" column="machine_tool" />
|
|
|
- <result property="grossWeight" column="gross_weight" />
|
|
|
- <result property="packaging" column="packaging" />
|
|
|
- <result property="workShifts" column="work_shifts" />
|
|
|
- <result property="foreignTradeNumber" column="foreign_trade_number" />
|
|
|
- <result property="canisterWeight" column="canister_weight" />
|
|
|
- <result property="boxWeight" column="box_weight" />
|
|
|
- <result property="tubeColor" column="tube_color" />
|
|
|
- <result property="comPort" column="com_port" />
|
|
|
- <result property="printFormat" column="print_format" />
|
|
|
- <result property="packagingType" column="packaging_type" />
|
|
|
- <result property="storageLocation" column="storage_location" />
|
|
|
- <result property="warehouseregionId" column="warehouseregion_id" />
|
|
|
- <result property="remark" column="remark" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createById" column="create_by_id" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateById" column="update_by_id" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="productName" column="product_name" />
|
|
|
+ <result property="levels" column="levels"/>
|
|
|
+ <result property="canisterNum" column="canister_num"/>
|
|
|
+ <result property="boxNum" column="box_num"/>
|
|
|
+ <result property="suttle" column="suttle"/>
|
|
|
+ <result property="productionDate" column="production_date"/>
|
|
|
+ <result property="machineTool" column="machine_tool"/>
|
|
|
+ <result property="grossWeight" column="gross_weight"/>
|
|
|
+ <result property="packaging" column="packaging"/>
|
|
|
+ <result property="workShifts" column="work_shifts"/>
|
|
|
+ <result property="foreignTradeNumber" column="foreign_trade_number"/>
|
|
|
+ <result property="canisterWeight" column="canister_weight"/>
|
|
|
+ <result property="boxWeight" column="box_weight"/>
|
|
|
+ <result property="tubeColor" column="tube_color"/>
|
|
|
+ <result property="comPort" column="com_port"/>
|
|
|
+ <result property="printFormat" column="print_format"/>
|
|
|
+ <result property="packagingType" column="packaging_type"/>
|
|
|
+ <result property="storageLocation" column="storage_location"/>
|
|
|
+ <result property="warehouseregionId" column="warehouseregion_id"/>
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
+ <result property="delFlag" column="del_flag"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="createById" column="create_by_id"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
+ <result property="updateById" column="update_by_id"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="productName" column="product_name"/>
|
|
|
<result property="productColor" column="product_color"/>
|
|
|
<result property="productSpecifications" column="product_specifications"/>
|
|
|
<result property="productType" column="product_type"/>
|
|
@@ -85,49 +85,106 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="totalSuttle" column="total_suttle"/>
|
|
|
<result property="totalGrossWeight" column="total_gross_weight"/>
|
|
|
<result property="withdrawingFlag" column="withdrawing_flag"/>
|
|
|
+ <result property="saleProductId" column="sale_product_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectProductCodeListVo">
|
|
|
- select id, qr_code, lot_num, product_id, levels, canister_num, box_num, suttle, production_date, machine_tool, gross_weight, packaging, work_shifts, foreign_trade_number, canister_weight, box_weight, tube_color, com_port, print_format, packaging_type, storage_location, warehouseregion_id, remark, del_flag, create_by, create_by_id, create_time, update_by, update_by_id, update_time ,
|
|
|
- total_canister_num, total_box_num, total_suttle, total_gross_weight,product_colour,withdrawing_flag from {DBNAME}.product_code_list
|
|
|
+ select id,
|
|
|
+ qr_code,
|
|
|
+ lot_num,
|
|
|
+ product_id,
|
|
|
+ levels,
|
|
|
+ canister_num,
|
|
|
+ box_num,
|
|
|
+ suttle,
|
|
|
+ production_date,
|
|
|
+ machine_tool,
|
|
|
+ gross_weight,
|
|
|
+ packaging,
|
|
|
+ work_shifts,
|
|
|
+ foreign_trade_number,
|
|
|
+ canister_weight,
|
|
|
+ box_weight,
|
|
|
+ tube_color,
|
|
|
+ com_port,
|
|
|
+ print_format,
|
|
|
+ packaging_type,
|
|
|
+ storage_location,
|
|
|
+ warehouseregion_id,
|
|
|
+ remark,
|
|
|
+ del_flag,
|
|
|
+ create_by,
|
|
|
+ create_by_id,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_by_id,
|
|
|
+ update_time,
|
|
|
+ total_canister_num,
|
|
|
+ total_box_num,
|
|
|
+ total_suttle,
|
|
|
+ total_gross_weight,
|
|
|
+ product_colour,
|
|
|
+ withdrawing_flag,
|
|
|
+ sale_product_id
|
|
|
+ from {DBNAME}.product_code_list
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectProductCodeListList" parameterType="com.zkqy.business.domain.vo.ProductCodeListVO" resultMap="ProductCodeListResultVO">
|
|
|
+ <select id="selectProductCodeListList" parameterType="com.zkqy.business.domain.vo.ProductCodeListVO"
|
|
|
+ resultMap="ProductCodeListResultVO">
|
|
|
SELECT
|
|
|
- pcl.id,
|
|
|
- pcl.qr_code,
|
|
|
- p.product_name AS product_name,
|
|
|
- p.product_specifications AS product_specifications,
|
|
|
- pcl.lot_num,
|
|
|
- pcl.product_colour AS product_color,
|
|
|
- pcl.levels,
|
|
|
- sum( pcl.canister_num ) AS total_canister_num,
|
|
|
- count( pcl.box_num ) AS total_box_num,
|
|
|
- sum( pcl.suttle ) AS total_suttle,
|
|
|
- sum( pcl.gross_weight ) AS total_gross_weight,
|
|
|
- pcl.remark
|
|
|
- FROM
|
|
|
- {DBNAME}.product_code_list pcl
|
|
|
- LEFT JOIN {DBNAME}.production p ON pcl.product_id = p.id
|
|
|
- WHERE
|
|
|
- pcl.del_flag = '0'
|
|
|
- AND p.del_flag = '0'
|
|
|
- <if test="qrCode != null and qrCode != ''"> and pcl.qr_code = #{qrCode}</if>
|
|
|
- <if test="lotNum != null and lotNum != ''"> and pcl.lot_num = #{lotNum}</if>
|
|
|
- <if test="productName != null and productName != ''"> and p.product_name = #{productName}</if>
|
|
|
- <if test="productSpecifications != null and productSpecifications != ''"> and p.product_specifications = #{productSpecifications}</if>
|
|
|
- <if test="productColor != null and productColor != ''"> and pcl.product_colour = #{productColor}</if>
|
|
|
- GROUP BY
|
|
|
- pcl.qr_code
|
|
|
- order by pcl.id desc
|
|
|
+ pcl.id,
|
|
|
+ pcl.qr_code,
|
|
|
+ p.product_name AS product_name,
|
|
|
+ p.product_specifications AS product_specifications,
|
|
|
+ pcl.lot_num,
|
|
|
+ pcl.product_colour AS product_color,
|
|
|
+ pcl.levels,
|
|
|
+ sum( pcl.canister_num ) AS total_canister_num,
|
|
|
+ count( pcl.box_num ) AS total_box_num,
|
|
|
+ sum( pcl.suttle ) AS total_suttle,
|
|
|
+ sum( pcl.gross_weight ) AS total_gross_weight,
|
|
|
+ pcl.remark
|
|
|
+ FROM
|
|
|
+ {DBNAME}.product_code_list pcl
|
|
|
+ LEFT JOIN {DBNAME}.production p ON pcl.product_id = p.id
|
|
|
+ WHERE
|
|
|
+ pcl.del_flag = '0'
|
|
|
+ AND p.del_flag = '0'
|
|
|
+ <if test="qrCode != null and qrCode != ''">and pcl.qr_code = #{qrCode}</if>
|
|
|
+ <if test="lotNum != null and lotNum != ''">and pcl.lot_num = #{lotNum}</if>
|
|
|
+ <if test="productName != null and productName != ''">and p.product_name = #{productName}</if>
|
|
|
+ <if test="productSpecifications != null and productSpecifications != ''">and p.product_specifications =
|
|
|
+ #{productSpecifications}
|
|
|
+ </if>
|
|
|
+ <if test="productColor != null and productColor != ''">and pcl.product_colour = #{productColor}</if>
|
|
|
+ GROUP BY
|
|
|
+ pcl.qr_code
|
|
|
+ order by pcl.id desc
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectProductCodeListById" parameterType="Long" resultMap="ProductCodeListResult">
|
|
|
<include refid="selectProductCodeListVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
- <insert id="insertProductCodeList" parameterType="com.zkqy.business.domain.ProductCodeList" useGeneratedKeys="true" keyProperty="id">
|
|
|
+
|
|
|
+ <select id="selectProductCodeListBySaleProductId" parameterType="com.zkqy.business.domain.ProductCodeList"
|
|
|
+ resultMap="ProductCodeListResult">
|
|
|
+ <include refid="selectProductCodeListVo"/>
|
|
|
+ where sale_product_id = #{saleProductId}
|
|
|
+ and lot_num = #{lotNum}
|
|
|
+ and levels = #{levels}
|
|
|
+ and machine_tool = #{machineTool}
|
|
|
+ and work_shifts = #{workShifts}
|
|
|
+ and del_flag = '0'
|
|
|
+
|
|
|
+ <!-- <if test="lotNum != null and lotNum != ''">and lot_num = #{lotNum}</if>-->
|
|
|
+ <!-- <if test="levels != null and levels != ''">and levels = #{levels},</if>-->
|
|
|
+ <!-- <if test="machineTool != null and machineTool != ''">and machine_tool = #{machineTool},</if>-->
|
|
|
+ <!-- <if test="workShifts != null and workShifts != ''">and work_shifts = #{workShifts}</if>-->
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertProductCodeList" parameterType="com.zkqy.business.domain.ProductCodeList" useGeneratedKeys="true"
|
|
|
+ keyProperty="id">
|
|
|
insert into {DBNAME}.product_code_list
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
@@ -162,8 +219,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="totalGrossWeight != null">total_gross_weight,</if>
|
|
|
<if test="productColour != null">product_colour,</if>
|
|
|
<if test="withdrawingFlag != null">withdrawing_flag,</if>
|
|
|
+ <if test="saleProductId != null">sale_product_id,</if>
|
|
|
del_flag
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="qrCode != null">#{qrCode},</if>
|
|
@@ -197,8 +255,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="totalGrossWeight != null">#{totalGrossWeight},</if>
|
|
|
<if test="productColour != null">#{productColour},</if>
|
|
|
<if test="withdrawingFlag != null">#{withdrawingFlag},</if>
|
|
|
+ <if test="saleProductId != null">#{saleProductId},</if>
|
|
|
'0'
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateProductCodeList" parameterType="com.zkqy.business.domain.ProductCodeList">
|
|
@@ -240,7 +299,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteProductCodeListById" parameterType="Long">
|
|
|
- update {DBNAME}.product_code_list set del_flag = '2' where id = #{id}
|
|
|
+ update {DBNAME}.product_code_list
|
|
|
+ set del_flag = '2'
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<update id="deleteProductCodeListByIds" parameterType="String">
|
|
@@ -252,29 +313,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectFinishedProduct" resultType="com.zkqy.business.domain.vo.ProductCodeListVO">
|
|
|
SELECT
|
|
|
- sp.id as id,
|
|
|
- sp.lot_number AS lotNum,
|
|
|
- p.product_name AS productName,
|
|
|
- p.product_specifications AS productSpecifications,
|
|
|
- concat(ml.materie_encoding,ml.materie_color_number) AS productColor,
|
|
|
- p.id AS productId,
|
|
|
- sc.direction_of_twist AS directionOfTwist
|
|
|
+ sp.id as id,
|
|
|
+ sp.lot_number AS lotNum,
|
|
|
+ p.product_name AS productName,
|
|
|
+ p.product_specifications AS productSpecifications,
|
|
|
+ concat(ml.materie_encoding,ml.materie_color_number) AS productColor,
|
|
|
+ p.id AS productId,
|
|
|
+ sc.direction_of_twist AS directionOfTwist
|
|
|
FROM
|
|
|
- {DBNAME}.sale_products sp
|
|
|
- LEFT JOIN {DBNAME}.production p ON sp.product_no = p.product_no
|
|
|
- LEFT JOIN {DBNAME}.sale_craft sc ON sp.sale_order_no = sc.sale_order_no
|
|
|
- left join {DBNAME}.materiel ml on sp.colour_number = ml.materiel_code
|
|
|
+ {DBNAME}.sale_products sp
|
|
|
+ LEFT JOIN {DBNAME}.production p ON sp.product_no = p.product_no
|
|
|
+ LEFT JOIN {DBNAME}.sale_craft sc ON sp.sale_order_no = sc.sale_order_no
|
|
|
+ left join {DBNAME}.materiel ml on sp.colour_number = ml.materiel_code
|
|
|
WHERE
|
|
|
- sp.del_flag = '0'
|
|
|
- AND p.del_flag = '0'
|
|
|
- AND sc.del_flag = '0'
|
|
|
- and ml.del_flag = '0'
|
|
|
- and sp.status in ('4','6')
|
|
|
- <if test="machineTool != null"> and sp.production_line_no = #{machineTool}</if>
|
|
|
+ sp.del_flag = '0'
|
|
|
+ AND p.del_flag = '0'
|
|
|
+ AND sc.del_flag = '0'
|
|
|
+ and ml.del_flag = '0'
|
|
|
+ and sp.status in ('4','6')
|
|
|
+ <if test="machineTool != null">and sp.production_line_no = #{machineTool}</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMaxCodeList" resultType="string">
|
|
|
- select IFNULL(max(qr_code),0) from {DBNAME}.product_code_list where del_flag = '0'
|
|
|
+ select IFNULL(max(qr_code), 0)
|
|
|
+ from {DBNAME}.product_code_list
|
|
|
+ where del_flag = '0'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectProductCodeListByQrCode" parameterType="string" resultMap="ProductCodeListResult">
|
|
@@ -283,28 +346,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectProductCodeInfoByQrCode" parameterType="string" resultMap="ProductCodeListResult">
|
|
|
- SELECT
|
|
|
- pcl.*,
|
|
|
- pwr.qr_code_id
|
|
|
- FROM
|
|
|
- {DBNAME}.product_code_list pcl
|
|
|
- LEFT JOIN {DBNAME}.product_warehousing_record pwr ON pcl.qr_code = pwr.qr_code
|
|
|
- AND pcl.lot_num = pwr.lot_num
|
|
|
- AND pcl.product_id = pwr.product_id
|
|
|
- AND pcl.product_colour = pwr.product_colour
|
|
|
- AND pcl.levels = pwr.levels
|
|
|
- and pcl.box_num = pwr.box_num
|
|
|
- and pwr.del_flag = '0'
|
|
|
+ SELECT pcl.*,
|
|
|
+ pwr.qr_code_id
|
|
|
+ FROM {DBNAME}.product_code_list pcl
|
|
|
+ LEFT JOIN {DBNAME}.product_warehousing_record pwr
|
|
|
+ ON pcl.qr_code = pwr.qr_code
|
|
|
+ AND pcl.lot_num = pwr.lot_num
|
|
|
+ AND pcl.product_id = pwr.product_id
|
|
|
+ AND pcl.product_colour = pwr.product_colour
|
|
|
+ AND pcl.levels = pwr.levels
|
|
|
+ and pcl.box_num = pwr.box_num
|
|
|
+ and pwr.del_flag = '0'
|
|
|
where pcl.del_flag = '0' and pcl.qr_code = #{qrCode}
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="getProductCodeListById" resultMap="ProductCodeListResultVO">
|
|
|
- SELECT
|
|
|
- *
|
|
|
- FROM
|
|
|
- {DBNAME}.product_code_list pcl
|
|
|
- LEFT JOIN {DBNAME}.production p ON pcl.product_id = p.id
|
|
|
+ SELECT *
|
|
|
+ FROM {DBNAME}.product_code_list pcl
|
|
|
+ LEFT JOIN {DBNAME}.production p
|
|
|
+ ON pcl.product_id = p.id
|
|
|
where pcl.del_flag = '0' and p.del_flag = '0' and pcl.id = #{id}
|
|
|
</select>
|
|
|
|