| @@ -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); | ||||
| @@ -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 -> { | ||||
| @@ -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 | ||||