后台--运费模板:配送区域修改
parent
51d1392919
commit
65ed6707da
|
@ -3,6 +3,22 @@
|
||||||
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesFreeMapper">
|
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesFreeMapper">
|
||||||
|
|
||||||
<select id="getListGroup" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesFreeRespVO" parameterType="integer">
|
<select id="getListGroup" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesFreeRespVO" parameterType="integer">
|
||||||
SELECT group_concat(`city_id`) AS city_id, province_id, title, `number`, price, uniqid FROM eb_shipping_templates_free where temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
SELECT
|
||||||
|
city_id, province_id, title, `number`, price, uniqid
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_free es
|
||||||
|
JOIN
|
||||||
|
(
|
||||||
|
SELECT
|
||||||
|
MAX(id) id
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_free
|
||||||
|
where
|
||||||
|
temp_id = #{tempId, jdbcType=INTEGER}
|
||||||
|
GROUP BY
|
||||||
|
`uniqid`
|
||||||
|
ORDER BY id ASC
|
||||||
|
) a
|
||||||
|
ON a.id = es.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -3,6 +3,22 @@
|
||||||
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesNoDeliveryMapper">
|
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesNoDeliveryMapper">
|
||||||
|
|
||||||
<select id="getList" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesNoDeliveryRespVO" parameterType="integer">
|
<select id="getList" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesNoDeliveryRespVO" parameterType="integer">
|
||||||
SELECT group_concat(`city_id`) AS city_id, province_id, title, uniqid FROM eb_shipping_templates_no_delivery WHERE temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
SELECT
|
||||||
|
city_id, province_id, title, uniqid
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_no_delivery es
|
||||||
|
JOIN
|
||||||
|
(
|
||||||
|
SELECT
|
||||||
|
MAX(id) id
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_no_delivery
|
||||||
|
where
|
||||||
|
temp_id = #{tempId, jdbcType=INTEGER}
|
||||||
|
GROUP BY
|
||||||
|
`uniqid`
|
||||||
|
ORDER BY id ASC
|
||||||
|
) a
|
||||||
|
ON a.id = es.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -3,6 +3,22 @@
|
||||||
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesRegionMapper">
|
<mapper namespace="cn.iocoder.yudao.module.shop.dal.mysql.express.ShippingTemplatesRegionMapper">
|
||||||
|
|
||||||
<select id="getListGroup" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesRegionRespVO" parameterType="integer">
|
<select id="getListGroup" resultType="cn.iocoder.yudao.module.shop.controller.admin.express.vo.ShippingTemplatesRegionRespVO" parameterType="integer">
|
||||||
SELECT group_concat(`city_id`) AS city_id, province_id, `first`, first_price, title, `renewal`, renewal_price, uniqid FROM eb_shipping_templates_region where temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
SELECT
|
||||||
|
city_id, province_id, `first`, first_price, title, `renewal`, renewal_price, uniqid
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_region es
|
||||||
|
JOIN
|
||||||
|
(
|
||||||
|
SELECT
|
||||||
|
MAX(id) id
|
||||||
|
FROM
|
||||||
|
eb_shipping_templates_region
|
||||||
|
where
|
||||||
|
temp_id = #{tempId, jdbcType=INTEGER}
|
||||||
|
GROUP BY
|
||||||
|
`uniqid`
|
||||||
|
ORDER BY id ASC
|
||||||
|
) a
|
||||||
|
ON a.id = es.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue