Compare commits
	
		
			No commits in common. "4e7f787c3233364c5328d9befb289735357a876a" and "545d17037a5d4d1517d26165b3f6fdba127f5d01" have entirely different histories.
		
	
	
		
			4e7f787c32
			...
			545d17037a
		
	
		|  | @ -415,7 +415,7 @@ public class ApiRetailWaresController extends BaseController { | ||||||
|         List<CuWaresParams> waresParamsList = new ArrayList<>(); |         List<CuWaresParams> waresParamsList = new ArrayList<>(); | ||||||
| 
 | 
 | ||||||
|         // 查询商品列表 |         // 查询商品列表 | ||||||
|         List<BdWaresExt> bdWaresExtList = iBdWaresService.listWaresShare(param); |         List<BdWaresExt> bdWaresExtList = iBdWaresService.listWaresShare(param.getSpecialArea(), param.getIsMakerGift(), param.getPkCountry()); | ||||||
| 
 | 
 | ||||||
|         if (CollectionUtil.isNotEmpty(bdWaresExtList)) { |         if (CollectionUtil.isNotEmpty(bdWaresExtList)) { | ||||||
|             // 商品主键列表 |             // 商品主键列表 | ||||||
|  |  | ||||||
|  | @ -28,12 +28,4 @@ public class WaresShareParam { | ||||||
|      */ |      */ | ||||||
|     private Integer pkCountry; |     private Integer pkCountry; | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * 分类ID |  | ||||||
|      */ |  | ||||||
|     private Integer pkAreaClassify; |  | ||||||
|     /** |  | ||||||
|      * 商品名称 |  | ||||||
|      */ |  | ||||||
|     private String waresName; |  | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -102,7 +102,7 @@ public class ApiBdWaresController extends BaseController { | ||||||
|         List<CuWaresParams> waresParamsList = new ArrayList<>(); |         List<CuWaresParams> waresParamsList = new ArrayList<>(); | ||||||
| 
 | 
 | ||||||
|         // 查询商品列表 |         // 查询商品列表 | ||||||
|         List<BdWaresExt> bdWaresExtList = iBdWaresService.listWaresShare(param); |         List<BdWaresExt> bdWaresExtList = iBdWaresService.listWaresShare(param.getSpecialArea(), param.getIsMakerGift(), param.getPkCountry()); | ||||||
| 
 | 
 | ||||||
|         if (CollectionUtil.isNotEmpty(bdWaresExtList)) { |         if (CollectionUtil.isNotEmpty(bdWaresExtList)) { | ||||||
|             // 商品主键列表 |             // 商品主键列表 | ||||||
|  | @ -214,7 +214,7 @@ public class ApiBdWaresController extends BaseController { | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         return AjaxResult.success((waresParamsList)); |         return AjaxResult.success(waresParamsList); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | @ -785,4 +785,5 @@ public class ApiBdWaresController extends BaseController { | ||||||
|         waresInfoVo.setWaresSpecsSkuInfoList(waresItemWaresInfos); |         waresInfoVo.setWaresSpecsSkuInfoList(waresItemWaresInfos); | ||||||
|         return AjaxResult.success(waresInfoVo); |         return AjaxResult.success(waresInfoVo); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -5,7 +5,6 @@ import com.hzs.common.domain.sale.ext.BdWaresExt; | ||||||
| import com.hzs.common.domain.sale.wares.BdWares; | import com.hzs.common.domain.sale.wares.BdWares; | ||||||
| import com.hzs.common.domain.system.config.BdAgreement; | import com.hzs.common.domain.system.config.BdAgreement; | ||||||
| import com.hzs.retail.wares.param.RetailWaresParam; | import com.hzs.retail.wares.param.RetailWaresParam; | ||||||
| import com.hzs.retail.wares.param.WaresShareParam; |  | ||||||
| import com.hzs.sale.wares.param.WaresNoSaleParam; | import com.hzs.sale.wares.param.WaresNoSaleParam; | ||||||
| import com.hzs.sale.wares.param.WaresParams; | import com.hzs.sale.wares.param.WaresParams; | ||||||
| import com.hzs.sale.wares.vo.WaresAuthorityVo; | import com.hzs.sale.wares.vo.WaresAuthorityVo; | ||||||
|  | @ -148,5 +147,7 @@ public interface BdWaresMapper extends BaseMapper<BdWares> { | ||||||
|      * @param pkCountry   所属国家 |      * @param pkCountry   所属国家 | ||||||
|      * @return: List<BdWaresExt> |      * @return: List<BdWaresExt> | ||||||
|      */ |      */ | ||||||
|     List<BdWaresExt> listWaresShare(@Param("param") WaresShareParam param); |     List<BdWaresExt> listWaresShare(@Param("specialArea") Integer specialArea, | ||||||
|  |                                     @Param("isMakerGift") Integer isMakerGift, | ||||||
|  |                                     @Param("pkCountry") Integer pkCountry); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -293,8 +293,4 @@ public class CuWaresParams implements Serializable { | ||||||
|      * 消费配置主键 |      * 消费配置主键 | ||||||
|      */ |      */ | ||||||
|     private Integer pkSpecialCurrency; |     private Integer pkSpecialCurrency; | ||||||
| 
 |  | ||||||
|     private Integer pkAreaClassifyParent; |  | ||||||
| 
 |  | ||||||
|     private String areaClassifyName; |  | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -7,7 +7,6 @@ import com.hzs.common.domain.sale.wares.BdWaresAuthority; | ||||||
| import com.hzs.common.domain.system.config.BdAgreement; | import com.hzs.common.domain.system.config.BdAgreement; | ||||||
| import com.hzs.common.domain.system.config.ext.BdRangeExt; | import com.hzs.common.domain.system.config.ext.BdRangeExt; | ||||||
| import com.hzs.retail.wares.param.RetailWaresParam; | import com.hzs.retail.wares.param.RetailWaresParam; | ||||||
| import com.hzs.retail.wares.param.WaresShareParam; |  | ||||||
| import com.hzs.sale.wares.param.ComputeWaresPrice; | import com.hzs.sale.wares.param.ComputeWaresPrice; | ||||||
| import com.hzs.sale.wares.param.WaresNoSaleParam; | import com.hzs.sale.wares.param.WaresNoSaleParam; | ||||||
| import com.hzs.sale.wares.param.WaresParams; | import com.hzs.sale.wares.param.WaresParams; | ||||||
|  | @ -213,5 +212,5 @@ public interface IBdWaresService extends IService<BdWares> { | ||||||
|      * @param pkCountry   所属国家 |      * @param pkCountry   所属国家 | ||||||
|      * @return: List<BdWaresExt> |      * @return: List<BdWaresExt> | ||||||
|      */ |      */ | ||||||
|     List<BdWaresExt> listWaresShare(WaresShareParam param); |     List<BdWaresExt> listWaresShare(Integer specialArea, Integer isMakerGift, Integer pkCountry); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -21,7 +21,6 @@ import com.hzs.common.domain.system.config.ext.BdRangeExt; | ||||||
| import com.hzs.member.base.IMemberServiceApi; | import com.hzs.member.base.IMemberServiceApi; | ||||||
| 
 | 
 | ||||||
| import com.hzs.retail.wares.param.RetailWaresParam; | import com.hzs.retail.wares.param.RetailWaresParam; | ||||||
| import com.hzs.retail.wares.param.WaresShareParam; |  | ||||||
| import com.hzs.sale.product.service.IBdSpecsService; | import com.hzs.sale.product.service.IBdSpecsService; | ||||||
| import com.hzs.sale.wares.param.*; | import com.hzs.sale.wares.param.*; | ||||||
| import com.hzs.common.security.utils.SecurityUtils; | import com.hzs.common.security.utils.SecurityUtils; | ||||||
|  | @ -1150,7 +1149,6 @@ public class BdWaresServiceImpl extends ServiceImpl<BdWaresMapper, BdWares> impl | ||||||
|         bdWares.setSortStatus(-1); |         bdWares.setSortStatus(-1); | ||||||
|         bdWares.setPkId(waresId); |         bdWares.setPkId(waresId); | ||||||
|         this.updateById(bdWares); |         this.updateById(bdWares); | ||||||
| 
 |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|  | @ -1165,7 +1163,7 @@ public class BdWaresServiceImpl extends ServiceImpl<BdWaresMapper, BdWares> impl | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public List<BdWaresExt> listWaresShare(WaresShareParam param) { |     public List<BdWaresExt> listWaresShare(Integer specialArea, Integer isMakerGift, Integer pkCountry) { | ||||||
|         return baseMapper.listWaresShare(param); |         return baseMapper.listWaresShare(specialArea, isMakerGift, pkCountry); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -473,57 +473,32 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     <!-- 分享商品列表 --> |     <!-- 分享商品列表 --> | ||||||
|     <select id="listWaresShare" resultType="com.hzs.common.domain.sale.ext.BdWaresExt"> |     <select id="listWaresShare" resultMap="BaseResultMap"> | ||||||
|         select |         select bw.PK_COUNTRY, bw.PK_ID, be.pk_id PK_WARES_EXTEND, | ||||||
|             bac.PK_PARENT as pkAreaClassifyParent, |         be.IS_MAKER_GIFT, bw.WARES_CODE, bw.WARES_NAME, | ||||||
|             bw.PK_AREA_CLASSIFY as pkAreaClassify, |         PK_AREA_CLASSIFY, COVER, COVER1, COVER2, | ||||||
|             bac.CLASSIFY_NAME as areaClassifyName, |         bw.WARES_PRICE, bw.WARES_ACHIEVE, | ||||||
|             bw.PK_COUNTRY, |         SORT, SPECIAL_AREA, | ||||||
|             bw.PK_ID, |         IS_PUT_ON, PRE_SALE_STATUS, | ||||||
|             be.pk_id PK_WARES_EXTEND, |         PREFIX_LABEL, COOL_LABEL, S_LABEL, | ||||||
|             be.IS_MAKER_GIFT, |         SALES, IS_SALE, ARRIVAL_TIME, WARN_MESSAGE, | ||||||
|             bw.WARES_CODE, |         be.PK_SPECIAL_CURRENCY | ||||||
|             bw.WARES_NAME, |  | ||||||
|             bw.COVER, |  | ||||||
|             bw.COVER1, |  | ||||||
|             bw.COVER2, |  | ||||||
|             bw.WARES_PRICE, |  | ||||||
|             bw.WARES_ACHIEVE, |  | ||||||
|             bw.SORT, |  | ||||||
|             SPECIAL_AREA, |  | ||||||
|             IS_PUT_ON, |  | ||||||
|             PRE_SALE_STATUS, |  | ||||||
|             PREFIX_LABEL, |  | ||||||
|             COOL_LABEL, |  | ||||||
|             S_LABEL, |  | ||||||
|             SALES, |  | ||||||
|             IS_SALE, |  | ||||||
|             ARRIVAL_TIME, |  | ||||||
|             WARN_MESSAGE, |  | ||||||
|             be.PK_SPECIAL_CURRENCY |  | ||||||
|         from bd_wares bw |         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 | ||||||
|         left join BD_AREA_CLASSIFY bac on bac.pk_id = bw.PK_AREA_CLASSIFY |  | ||||||
|         where bw.del_flag = 0 |         where bw.del_flag = 0 | ||||||
|         and be.del_flag = 0 |         and be.del_flag = 0 | ||||||
|         and be.is_put_on = 0 |         and be.is_put_on = 0 | ||||||
|         <!-- 商品必须通过审核后才能显示 --> |         <!-- 商品必须通过审核后才能显示 --> | ||||||
|         and bw.wares_status = 5 |         and bw.wares_status = 5 | ||||||
|         <if test="param.specialArea != null"> |         <if test="specialArea != null"> | ||||||
|             and bw.special_area = #{param.specialArea} |             and bw.special_area = #{specialArea} | ||||||
|         </if> |         </if> | ||||||
|         <if test="param.isMakerGift != null"> |         <if test="isMakerGift != null"> | ||||||
|             and be.is_maker_gift = #{param.isMakerGift} |             and be.is_maker_gift = #{isMakerGift} | ||||||
|         </if> |         </if> | ||||||
|         <if test="param.pkCountry != null"> |         <if test="pkCountry != null"> | ||||||
|             and bw.pk_country = #{param.pkCountry} |             and bw.pk_country = #{pkCountry} | ||||||
|         </if> |  | ||||||
|         <if test="param.pkAreaClassify != null"> |  | ||||||
|             and bw.PK_AREA_CLASSIFY = #{param.pkAreaClassify} or bac.pk_parent = |  | ||||||
|         </if> |  | ||||||
|         <if test="param.waresName != null and param.waresName != ''"> |  | ||||||
|             and bw.WARES_NAME = '%' || #{param.waresName} || '%' |  | ||||||
|         </if> |         </if> | ||||||
|         order by bw.SORT_STATUS desc , bw.sort desc, bw.WARES_PRICE ,bw.CREATION_TIME desc |         order by bw.SORT_STATUS desc , bw.sort desc, bw.WARES_PRICE ,bw.CREATION_TIME desc | ||||||
|     </select> |     </select> | ||||||
|  |  | ||||||
|  | @ -175,8 +175,4 @@ public class BdWaresExt extends BdWares { | ||||||
|      */ |      */ | ||||||
|     private Integer pkSpecialCurrency; |     private Integer pkSpecialCurrency; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     private Integer pkAreaClassifyParent; |  | ||||||
| 
 |  | ||||||
|     private String areaClassifyName; |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue