|
|
|
@@ -12,7 +12,6 @@ import com.iformall.domain.dto.WxMerchantDto; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.po.tt.TtUserFollow; |
|
|
|
import com.iformall.domain.vo.*; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
@@ -24,6 +23,7 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.context.annotation.Lazy; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Isolation; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
@@ -85,6 +85,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
WxCouponMerchantMapper wxCouponMerchantMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Lazy |
|
|
|
WxRentContractService wxRentContractService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@@ -102,9 +103,6 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
@Autowired |
|
|
|
WxPropertyContractService wxPropertyContractService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
TtUserFollowMapper ttUserFollowMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageInfo<WxMerchant> listAsPage(WxMerchant record, Integer pageIndex, Integer pageSize) { |
|
|
|
PageHelper.startPage(pageIndex, pageSize); |
|
|
|
@@ -944,20 +942,4 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
return wxMerchantShopMapper.findShopIds(merchantId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void followMerchern(TenantEntity tenantEntity, Long memberId, Long id) { |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
TtUserFollow userFollow = new TtUserFollow(); |
|
|
|
userFollow.setId(idWorker.nextId()); |
|
|
|
userFollow.updateTenantInfo(tenantEntity); |
|
|
|
userFollow.setUserId(memberId); |
|
|
|
userFollow.setMerchernId(id); |
|
|
|
userFollow.setCreateDate(new Date()); |
|
|
|
userFollow.setUpdateDate(new Date()); |
|
|
|
try { |
|
|
|
ttUserFollowMapper.insert(userFollow); |
|
|
|
} catch (Exception e) { |
|
|
|
// e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |