|
|
@ -62,6 +62,37 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="joinDrugQueryList" parameterType="com.glxp.api.req.purchase.PurOrderDetailRequest"
|
|
|
|
|
|
|
|
resultType="com.glxp.api.res.purchase.PurOrderDetailResponse">
|
|
|
|
|
|
|
|
SELECT pur_order_detail.*,
|
|
|
|
|
|
|
|
basic_products.ggxh spec,
|
|
|
|
|
|
|
|
basic_products.nameCode nameCode,
|
|
|
|
|
|
|
|
basic_products.measname,
|
|
|
|
|
|
|
|
basic_products.manufactory,
|
|
|
|
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
|
|
|
|
basic_products.bzgg,
|
|
|
|
|
|
|
|
basic_products.packUnit,
|
|
|
|
|
|
|
|
basic_products.prepnSpec,
|
|
|
|
|
|
|
|
basic_products.prepnUnit,
|
|
|
|
|
|
|
|
basic_corp.`name` supName
|
|
|
|
|
|
|
|
FROM pur_order_detail
|
|
|
|
|
|
|
|
left JOIN basic_udirel ON pur_order_detail.productId = basic_udirel.id
|
|
|
|
|
|
|
|
left JOIN basic_products ON basic_udirel.uuid = basic_products.uuid
|
|
|
|
|
|
|
|
left JOIN basic_corp ON pur_order_detail.supId = basic_corp.erpId
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="orderIdFk != '' and orderIdFk != null">
|
|
|
|
|
|
|
|
AND orderIdFk = #{orderIdFk}
|
|
|
|
|
|
|
|
AND basic_products.diType = 1
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="productId != null">
|
|
|
|
|
|
|
|
AND productId = #{productId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="supId != '' and supId != null">
|
|
|
|
|
|
|
|
AND supId = #{supId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByIds" parameterType="java.util.List">
|
|
|
|
<delete id="deleteByIds" parameterType="java.util.List">
|
|
|
|
DELETE
|
|
|
|
DELETE
|
|
|
@ -144,6 +175,10 @@
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
|
|
|
|
basic_products.bzgg,
|
|
|
|
|
|
|
|
basic_products.packUnit,
|
|
|
|
|
|
|
|
basic_products.prepnSpec,
|
|
|
|
|
|
|
|
basic_products.prepnUnit,
|
|
|
|
basic_corp.`name` supName
|
|
|
|
basic_corp.`name` supName
|
|
|
|
FROM pur_order_detail
|
|
|
|
FROM pur_order_detail
|
|
|
|
INNER JOIN basic_udirel ON pur_order_detail.productId = basic_udirel.id
|
|
|
|
INNER JOIN basic_udirel ON pur_order_detail.productId = basic_udirel.id
|
|
|
@ -161,6 +196,9 @@
|
|
|
|
<if test="pageType != null">
|
|
|
|
<if test="pageType != null">
|
|
|
|
AND pur_order.pageType = #{pageType}
|
|
|
|
AND pur_order.pageType = #{pageType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="productType != null">
|
|
|
|
|
|
|
|
AND pur_order.productType = #{productType}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="productId != null">
|
|
|
|
<if test="productId != null">
|
|
|
|
AND productId like concat('%', #{productId}, '%')
|
|
|
|
AND productId like concat('%', #{productId}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|