Compare commits
2 Commits
6d81160d30
...
51d1392919
Author | SHA1 | Date |
---|---|---|
小小张 | 51d1392919 | |
小小张 | c8b41aa45e |
|
@ -51,4 +51,7 @@ public class ShippingTemplatesFreeRespVO implements Serializable {
|
||||||
|
|
||||||
@Schema(description = "分组唯一值", required = true)
|
@Schema(description = "分组唯一值", required = true)
|
||||||
private String uniqid;
|
private String uniqid;
|
||||||
|
|
||||||
|
@Schema(description = "城市名称描述")
|
||||||
|
private String title;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,4 +39,7 @@ public class ShippingTemplatesNoDeliveryRespVO implements Serializable {
|
||||||
|
|
||||||
@Schema(description = "省ID, 多个逗号分割。 全国 all", required = true, example = "1,2,3,4")
|
@Schema(description = "省ID, 多个逗号分割。 全国 all", required = true, example = "1,2,3,4")
|
||||||
private String provinceId;
|
private String provinceId;
|
||||||
|
|
||||||
|
@Schema(description = "城市名称描述", required = true)
|
||||||
|
private String title;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,4 +58,7 @@ public class ShippingTemplatesRegionRespVO implements Serializable {
|
||||||
@Schema(description = "分组唯一值", required = true)
|
@Schema(description = "分组唯一值", required = true)
|
||||||
private String uniqid;
|
private String uniqid;
|
||||||
|
|
||||||
|
@Schema(description = "城市名称描述")
|
||||||
|
private String title;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,4 +69,9 @@ public class ShippingTemplatesFreeDO implements Serializable {
|
||||||
*是否无效
|
*是否无效
|
||||||
*/
|
*/
|
||||||
private Boolean status;
|
private Boolean status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 城市名称描述
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,5 +50,10 @@ public class ShippingTemplatesNoDeliveryDO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private String uniqid;
|
private String uniqid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 城市名称描述
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,5 +81,10 @@ public class ShippingTemplatesRegionDO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Boolean status;
|
private Boolean status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 城市名称描述
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class ShippingTemplatesFreeServiceImpl extends ServiceImpl<ShippingTempla
|
||||||
for (Integer cityId: cityIdList) {
|
for (Integer cityId: cityIdList) {
|
||||||
ShippingTemplatesFreeDO shippingTemplatesFreeDO = new ShippingTemplatesFreeDO();
|
ShippingTemplatesFreeDO shippingTemplatesFreeDO = new ShippingTemplatesFreeDO();
|
||||||
shippingTemplatesFreeDO.setCityId(cityId);
|
shippingTemplatesFreeDO.setCityId(cityId);
|
||||||
// shippingTemplatesFreeDO.setTitle(shippingTemplatesFreeRespVO.getTitle());
|
shippingTemplatesFreeDO.setTitle(shippingTemplatesFreeRespVO.getTitle());
|
||||||
shippingTemplatesFreeDO.setUniqid(uniqueKey);
|
shippingTemplatesFreeDO.setUniqid(uniqueKey);
|
||||||
shippingTemplatesFreeDO.setTempId(tempId);
|
shippingTemplatesFreeDO.setTempId(tempId);
|
||||||
shippingTemplatesFreeDO.setType(type);
|
shippingTemplatesFreeDO.setType(type);
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class ShippingTemplatesNoDeliveryServiceImpl extends ServiceImpl<Shipping
|
||||||
for (Integer cityId: cityIdList) {
|
for (Integer cityId: cityIdList) {
|
||||||
ShippingTemplatesNoDeliveryDO shippingTemplatesNoDeliveryDO = new ShippingTemplatesNoDeliveryDO();
|
ShippingTemplatesNoDeliveryDO shippingTemplatesNoDeliveryDO = new ShippingTemplatesNoDeliveryDO();
|
||||||
shippingTemplatesNoDeliveryDO.setCityId(cityId);
|
shippingTemplatesNoDeliveryDO.setCityId(cityId);
|
||||||
|
shippingTemplatesNoDeliveryDO.setTitle(shippingTemplatesNoDeliveryRespVOS.getTitle());
|
||||||
shippingTemplatesNoDeliveryDO.setUniqid(uniqueKey);
|
shippingTemplatesNoDeliveryDO.setUniqid(uniqueKey);
|
||||||
shippingTemplatesNoDeliveryDO.setTempId(tempId);
|
shippingTemplatesNoDeliveryDO.setTempId(tempId);
|
||||||
shippingTemplatesNoDeliveryDOS.add(shippingTemplatesNoDeliveryDO);
|
shippingTemplatesNoDeliveryDOS.add(shippingTemplatesNoDeliveryDO);
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class ShippingTemplatesRegionServiceImpl extends ServiceImpl<ShippingTemp
|
||||||
ShippingTemplatesRegionDO shippingTemplatesRegionDO = new ShippingTemplatesRegionDO();
|
ShippingTemplatesRegionDO shippingTemplatesRegionDO = new ShippingTemplatesRegionDO();
|
||||||
shippingTemplatesRegionDO.setCityId(cityId);
|
shippingTemplatesRegionDO.setCityId(cityId);
|
||||||
shippingTemplatesRegionDO.setUniqid(uniqueKey);
|
shippingTemplatesRegionDO.setUniqid(uniqueKey);
|
||||||
// shippingTemplatesRegionDO.setTitle(shippingTemplatesRegionRespVO.getTitle());
|
shippingTemplatesRegionDO.setTitle(shippingTemplatesRegionRespVO.getTitle());
|
||||||
shippingTemplatesRegionDO.setRenewal(shippingTemplatesRegionRespVO.getRenewal());
|
shippingTemplatesRegionDO.setRenewal(shippingTemplatesRegionRespVO.getRenewal());
|
||||||
shippingTemplatesRegionDO.setRenewalPrice(shippingTemplatesRegionRespVO.getRenewalPrice());
|
shippingTemplatesRegionDO.setRenewalPrice(shippingTemplatesRegionRespVO.getRenewalPrice());
|
||||||
shippingTemplatesRegionDO.setFirst(shippingTemplatesRegionRespVO.getFirst());
|
shippingTemplatesRegionDO.setFirst(shippingTemplatesRegionRespVO.getFirst());
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
<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, `number`, price, uniqid FROM eb_shipping_templates_free where temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
<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, uniqid FROM eb_shipping_templates_no_delivery WHERE temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
<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, `renewal`, renewal_price, uniqid FROM eb_shipping_templates_region where temp_id = #{tempId, jdbcType=INTEGER} GROUP BY `uniqid`,id ORDER BY id ASC
|
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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue