Explorar el Código

update gift

release_toaliyun_real
xhxu hace 4 años
padre
commit
4f4e183fb3
Se han modificado 2 ficheros con 8 adiciones y 4 borrados
  1. +4
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java
  2. +4
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 4
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Ver fichero

@@ -238,8 +238,10 @@ public class WxCouponServiceImpl implements WxCouponService {
WxCoupon coupon = new WxCoupon();
coupon.updateTenantInfo(wxCouponCVo);
List<Long> longs = JSON.parseArray(wxCouponCVo.getGiftList(), Long.class);
coupon.setIds(longs);
wxCouponCVo.setGiftCouponList(wxCouponMapper.findList(coupon));
if(longs != null && longs.size() > 0){
coupon.setIds(longs);
wxCouponCVo.setGiftCouponList(wxCouponMapper.findList(coupon));
}
}

return wxCouponCVo;


+ 4
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Ver fichero

@@ -1753,8 +1753,10 @@ public class WxOrderServiceImpl implements WxOrderService {
WxCoupon coupon = new WxCoupon();
coupon.updateTenantInfo(wxOrderCouponVo);
List<Long> longs = JSON.parseArray(wxOrderCouponVo.getGiftList(), Long.class);
coupon.setIds(longs);
wxOrderCouponVo.setGiftCouponList(wxCouponMapper.findList(coupon));
if(longs != null && longs.size() > 0){
coupon.setIds(longs);
wxOrderCouponVo.setGiftCouponList(wxCouponMapper.findList(coupon));
}
}
return wxOrderCouponVo;
}


Cargando…
Cancelar
Guardar