## 调整代码逻辑;
This commit is contained in:
parent
f9c50f26c3
commit
bbc299e50a
|
@ -1,11 +1,4 @@
|
||||||
package com.hzs.sale.shopping.vo;
|
package com.hzs.sale.shopping.vo;
|
||||||
/**
|
|
||||||
* @Description:
|
|
||||||
* @Author: yuhui
|
|
||||||
* @Time: 2023/3/20 14:03
|
|
||||||
* @Classname: WaresItemVo
|
|
||||||
* @PackageName: com.hzs.sale.shopping.vo
|
|
||||||
*/
|
|
||||||
|
|
||||||
import com.hzs.common.core.annotation.BigDecimalFormat;
|
import com.hzs.common.core.annotation.BigDecimalFormat;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
@ -16,14 +9,6 @@ import lombok.NoArgsConstructor;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
*@BelongsProject: hzs_cloud
|
|
||||||
*@BelongsPackage: com.hzs.sale.shopping.vo
|
|
||||||
*@Author: yh
|
|
||||||
*@CreateTime: 2023-03-20 14:03
|
|
||||||
*@Description: TODO
|
|
||||||
*@Version: 1.0
|
|
||||||
*/
|
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@ -41,6 +26,11 @@ public class WaresItemVo {
|
||||||
*/
|
*/
|
||||||
private String waresCode;
|
private String waresCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品展示图片
|
||||||
|
*/
|
||||||
|
private String cover;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品展示图片
|
* 商品展示图片
|
||||||
*/
|
*/
|
||||||
|
@ -64,7 +54,6 @@ public class WaresItemVo {
|
||||||
private BigDecimal achieve;
|
private BigDecimal achieve;
|
||||||
/**
|
/**
|
||||||
* bv
|
* bv
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@BigDecimalFormat
|
@BigDecimalFormat
|
||||||
private BigDecimal assAchieve;
|
private BigDecimal assAchieve;
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
<!-- 通用查询映射结果 -->
|
<!-- 通用查询映射结果 -->
|
||||||
<resultMap id="WaresItemVo" type="com.hzs.sale.shopping.vo.WaresItemVo">
|
<resultMap id="WaresItemVo" type="com.hzs.sale.shopping.vo.WaresItemVo">
|
||||||
<result column="WARES_CODE" property="waresCode"/>
|
<result column="WARES_CODE" property="waresCode"/>
|
||||||
|
<result column="COVER" property="cover"/>
|
||||||
<result column="COVER1" property="cover1"/>
|
<result column="COVER1" property="cover1"/>
|
||||||
<result column="WARES_NAME" property="waresName"/>
|
<result column="WARES_NAME" property="waresName"/>
|
||||||
<result column="IS_MAKER_GIFT" property="isMakerGift"/>
|
<result column="IS_MAKER_GIFT" property="isMakerGift"/>
|
||||||
|
@ -144,10 +145,10 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
and br.del_flag = 0
|
and br.del_flag = 0
|
||||||
and bk.del_flag = 0
|
and bk.del_flag = 0
|
||||||
and wd.DEL_FLAG=0
|
and wd.DEL_FLAG = 0
|
||||||
and bs.DEL_FLAG=0
|
and bs.DEL_FLAG = 0
|
||||||
and st.DEL_FLAG=0
|
and st.DEL_FLAG = 0
|
||||||
and sp.DEL_FLAG=0
|
and sp.DEL_FLAG = 0
|
||||||
order by bs.PK_SPECS_TYPE
|
order by bs.PK_SPECS_TYPE
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -217,7 +218,8 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByPkIds" resultType="com.hzs.sale.shopping.vo.WaresItemWaresInfo">
|
<select id="selectByPkIds" resultType="com.hzs.sale.shopping.vo.WaresItemWaresInfo">
|
||||||
select wss.SPEC_COVER specCover,bw.WARES_NAME waresName,wd.QUANTITY quantity,bp.PRODUCT_NAME productName ,wd.PK_ID pkWaresDetail,wss.PK_ID pkWaresSpecsSku,
|
select wss.SPEC_COVER specCover,bw.WARES_NAME waresName,wd.QUANTITY quantity,bp.PRODUCT_NAME productName ,wd.PK_ID pkWaresDetail,wss.PK_ID
|
||||||
|
pkWaresSpecsSku,
|
||||||
( select listagg(bs.SPECS_NAME,',') WITHIN GROUP(order by bs.SPECS_NAME) AS skuInfo from BD_WARES_SPECS_RELATION wsr
|
( select listagg(bs.SPECS_NAME,',') WITHIN GROUP(order by bs.SPECS_NAME) AS skuInfo from BD_WARES_SPECS_RELATION wsr
|
||||||
left join BD_WARES_SPECS ws on ws.PK_ID = wsr.PK_WARES_SPECS
|
left join BD_WARES_SPECS ws on ws.PK_ID = wsr.PK_WARES_SPECS
|
||||||
left join BD_SPECS bs on bs.PK_ID = ws.PK_SPECS where wss.pk_id = wsr.PK_WARES_SPECS_SKU and wsr.del_flag = 0) skuInfo,
|
left join BD_SPECS bs on bs.PK_ID = ws.PK_SPECS where wss.pk_id = wsr.PK_WARES_SPECS_SKU and wsr.del_flag = 0) skuInfo,
|
||||||
|
@ -326,10 +328,20 @@
|
||||||
|
|
||||||
<select id="selectWaresItemsVO" resultMap="WaresItemVo">
|
<select id="selectWaresItemsVO" resultMap="WaresItemVo">
|
||||||
<foreach collection="productGroup" item="item" index="index" separator=" union ">
|
<foreach collection="productGroup" item="item" index="index" separator=" union ">
|
||||||
select bw.wares_code,bw.cover1,bw.WARES_NAME,be.is_maker_gift,
|
select bw.wares_code,
|
||||||
bs.price price,bs.achieve achieve,bs.ass_achieve ass_achieve,
|
bw.cover,
|
||||||
bd.pk_id pk_wares_detail,bs.pk_id pk_wares_specs_sku,bp.product_name,
|
bw.cover1,
|
||||||
bs.spec_cover,#{item.quantity} quantity from BD_WARES bw
|
bw.WARES_NAME,
|
||||||
|
be.is_maker_gift,
|
||||||
|
bs.price price,
|
||||||
|
bs.achieve achieve,
|
||||||
|
bs.ass_achieve ass_achieve,
|
||||||
|
bd.pk_id pk_wares_detail,
|
||||||
|
bs.pk_id pk_wares_specs_sku,
|
||||||
|
bp.product_name,
|
||||||
|
bs.spec_cover,
|
||||||
|
#{item.quantity} quantity
|
||||||
|
from BD_WARES bw
|
||||||
inner join bd_wares_extend be
|
inner join bd_wares_extend be
|
||||||
on bw.pk_id = be.pk_wares
|
on bw.pk_id = be.pk_wares
|
||||||
inner join bd_wares_detail bd
|
inner join bd_wares_detail bd
|
||||||
|
|
|
@ -135,11 +135,11 @@
|
||||||
<artifactId>dg-java-sdk</artifactId>
|
<artifactId>dg-java-sdk</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 支付宝对接SDK -->
|
<!-- <!– 支付宝对接SDK –>-->
|
||||||
<dependency>
|
<!-- <dependency>-->
|
||||||
<groupId>com.alipay.sdk</groupId>
|
<!-- <groupId>com.alipay.sdk</groupId>-->
|
||||||
<artifactId>alipay-sdk-java</artifactId>
|
<!-- <artifactId>alipay-sdk-java</artifactId>-->
|
||||||
</dependency>
|
<!-- </dependency>-->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
package com.hzs.third.pay.constants;
|
package com.hzs.third.pay.constants;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 支付配置常量
|
* 支付配置常量
|
||||||
* @Author: jiang chao
|
|
||||||
* @Time: 2022/11/17 9:59
|
|
||||||
* @Classname: PayConfigConstants
|
|
||||||
* @PackageName: com.hzs.common.constant
|
|
||||||
*/
|
*/
|
||||||
public class PayConfigConstants {
|
public class PayConfigConstants {
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,7 @@ import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 统一支付控制器
|
* 统一支付控制器
|
||||||
* @Author: jiang chao
|
|
||||||
* @Time: 2022/12/27 17:35
|
|
||||||
* @Classname: PayController
|
|
||||||
* @PackageName: com.hzs.third.pay.controller
|
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
|
|
|
@ -12,13 +12,9 @@ import javax.servlet.ServletContextEvent;
|
||||||
import javax.servlet.ServletContextListener;
|
import javax.servlet.ServletContextListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 汇付新支付的启动配置
|
* 汇付新支付的启动配置
|
||||||
* @Author: jiang chao
|
|
||||||
* @Time: 2024/12/5 11:09
|
|
||||||
* @Classname: HuiFuLoadListener
|
|
||||||
* @PackageName: com.hzs.third.pay.listener
|
|
||||||
*/
|
*/
|
||||||
@Component
|
//@Component
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class HuiFuLoadListener implements ServletContextListener {
|
public class HuiFuLoadListener implements ServletContextListener {
|
||||||
|
|
||||||
|
|
12
pom.xml
12
pom.xml
|
@ -314,12 +314,12 @@
|
||||||
<version>${huifu-new.version}</version>
|
<version>${huifu-new.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 支付宝对接SDK -->
|
<!-- <!– 支付宝对接SDK –>-->
|
||||||
<dependency>
|
<!-- <dependency>-->
|
||||||
<groupId>com.alipay.sdk</groupId>
|
<!-- <groupId>com.alipay.sdk</groupId>-->
|
||||||
<artifactId>alipay-sdk-java</artifactId>
|
<!-- <artifactId>alipay-sdk-java</artifactId>-->
|
||||||
<version>${alipay.version}</version>
|
<!-- <version>${alipay.version}</version>-->
|
||||||
</dependency>
|
<!-- </dependency>-->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
Loading…
Reference in New Issue