Procházet zdrojové kódy

tt

release_toaliyun_real
xhxu před 5 roky
rodič
revize
b5ecd5f332
2 změnil soubory, kde provedl 7 přidání a 4 odebrání
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java
  2. +4
    -1
      mallinkService/src/main/resources/mapper/TtCouponMapper.xml

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java Zobrazit soubor

@@ -123,9 +123,9 @@ public class TtCouponServiceImpl implements TtCouponService {
if(byId == null){
return byId;
}
WxMerchant author = wxMerchantService.getById(byId.getMerchantId());
byId.setMerchantName(author.getName());
byId.setMerchantPic(author.getImgUrl());
// WxMerchant author = wxMerchantService.getById(byId.getMerchantId());
// byId.setMerchantName(author.getName());
// byId.setMerchantPic(author.getImgUrl());
// byId.setAuthor(wxMerchantService.getById(byId.getMerchantId()));
if(byId.getType().equals(EnumTtCouponType.COUPON_COLUMN.getCode())){
TtCoupon couponQ = new TtCoupon();


+ 4
- 1
mallinkService/src/main/resources/mapper/TtCouponMapper.xml Zobrazit soubor

@@ -129,7 +129,10 @@
</select>

<select id="selectById" parameterType="Long" resultMap="BaseResultMap">
select <include refid="allColumns"/> from tt_coupon where id = #{id}
select <include refid="allColumns"/>
from tt_coupon c
left join wx_merchant m on m.id = c.merchant_id
where c.id = #{id}
</select>
<delete id="deleteById" parameterType="Long">


Načítá se…
Zrušit
Uložit