Просмотр исходного кода

fix couponorder export

release_toaliyun_real
winter 4 лет назад
Родитель
Сommit
258422f69f
3 измененных файлов: 10 добавлений и 1 удалений
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  3. +6
    -0
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 3
- 0
mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java Просмотреть файл

@@ -15,6 +15,9 @@ public interface WxCouponMapper extends CommonMapper<WxCoupon, Long> {
List<WxCouponStatisVo> findCountData(@Param("tenantEntitys")List<TenantEntity> tenantEntitys, @Param("wxCoupon")WxCoupon wxCoupon); List<WxCouponStatisVo> findCountData(@Param("tenantEntitys")List<TenantEntity> tenantEntitys, @Param("wxCoupon")WxCoupon wxCoupon);


List<WxCoupon> findList(WxCoupon wxCoupon); List<WxCoupon> findList(WxCoupon wxCoupon);
List<WxCoupon> findSimpleList(WxCoupon wxCoupon);
List<Long> findIdList(WxCoupon wxCoupon); List<Long> findIdList(WxCoupon wxCoupon);
List<WxCoupon> findCouponList(WxCoupon wxCoupon); List<WxCoupon> findCouponList(WxCoupon wxCoupon);




+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Просмотреть файл

@@ -512,7 +512,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
logger.info(">>>>>>>>>>>>>>>>>>>>>> query merchant :"+(times2-times1)); logger.info(">>>>>>>>>>>>>>>>>>>>>> query merchant :"+(times2-times1));
WxCoupon couponQ = new WxCoupon(); WxCoupon couponQ = new WxCoupon();
couponQ.updateTenantInfo(tenantEntity); couponQ.updateTenantInfo(tenantEntity);
List<WxCoupon> couponList = wxCouponMapper.findList(couponQ);
List<WxCoupon> couponList = wxCouponMapper.findSimpleList(couponQ);
Map<Long,WxCoupon> couponMap = new HashMap<Long,WxCoupon>(); Map<Long,WxCoupon> couponMap = new HashMap<Long,WxCoupon>();
if (null != couponList) { if (null != couponList) {
couponList.parallelStream().forEach(c -> { couponList.parallelStream().forEach(c -> {


+ 6
- 0
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Просмотреть файл

@@ -324,6 +324,12 @@
<include refid="dynamicWhereConditions"/> <include refid="dynamicWhereConditions"/>
</select> </select>
<select id="findSimpleList" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap">
select id,title,sale_price,use_price,price,auto_refund,business,subsidy_type,source_type
from wx_coupon c
<include refid="dynamicWhereConditions"/>
</select>
<select id="findIdList" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long"> <select id="findIdList" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long">
select id select id
from wx_coupon c from wx_coupon c


Загрузка…
Отмена
Сохранить