Переглянути джерело

fix

release_toaliyun_real
winter 1 рік тому
джерело
коміт
2970c9e589
4 змінених файлів з 14 додано та 12 видалено
  1. +6
    -6
      mallinkAdmin/src/main/java/com/iformall/controller/rent/WxAllBillController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxShopService.java
  3. +1
    -1
      mallinkService/src/main/java/com/iformall/service/helper/WxBillAllHelper.java
  4. +6
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java

+ 6
- 6
mallinkAdmin/src/main/java/com/iformall/controller/rent/WxAllBillController.java Переглянути файл

@@ -697,7 +697,7 @@ public class WxAllBillController extends BillBaseController {
wxShop.setNeedPayNoDays(EnumYesOrNo.YES.getCode());
WxShop shop = wxShopSerivce.getById(wxShop.getId());
WxShopUsersInfo shopUser = wxShopSerivce.getCurrentShopUser(shop, shop.getId());
WxShopUsers shopUser = wxShopSerivce.getCurrentShopUser(shop, shop.getId());
List<WxAllBill> list = billAllHelper.getMerchantBillList(wxShop);
if (null != list && list.size() > 0 ) {
@@ -713,8 +713,8 @@ public class WxAllBillController extends BillBaseController {
be.setEnergyFeesName(fees.getName());
}
}
if (null != shopUser) {
be.setRentName(shopUser.getName());
if (null != shopUser && StringUtils.isBlank(be.getCusName())) {
be.setCusName(shopUser.getName());
}
}
}
@@ -747,7 +747,7 @@ public class WxAllBillController extends BillBaseController {
}
List<WxAllBill> list = billAllHelper.getMerchantBillList(wxShop);
WxShop shop = wxShopSerivce.getById(wxShop.getId());
WxShopUsersInfo shopUser = wxShopSerivce.getCurrentShopUser(shop, shop.getId());
WxShopUsers shopUser = wxShopSerivce.getCurrentShopUser(shop, shop.getId());
if (null != list && list.size() > 0 ) {
WxEnergyFees fq = new WxEnergyFees();
fq.updateTenantInfo(shop);
@@ -761,8 +761,8 @@ public class WxAllBillController extends BillBaseController {
be.setEnergyFeesName(fees.getName());
}
}
if (null != shopUser) {
be.setRentName(shopUser.getName());
if (null != shopUser && StringUtils.isBlank(be.getCusName())) {
be.setCusName(shopUser.getName());
}
}
}


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxShopService.java Переглянути файл

@@ -149,7 +149,7 @@ public interface WxShopService {
List<Long> getUserShopIds(WxShopUsers wxShopUsers);
Map<Long,WxShopUsers> getShopUserMap(WxShopUsers wxShopUsers);
WxShopUsersInfo getCurrentShopUser(TenantEntity tenantEntity,Long shopId);
WxShopUsers getCurrentShopUser(TenantEntity tenantEntity,Long shopId);
List<Long> getFloorBuildShopIds(TenantEntity tenantEntity,String floorRule,Long building,Long floor,Integer shopDel ,String shopNumber) ;


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/helper/WxBillAllHelper.java Переглянути файл

@@ -287,7 +287,7 @@ public class WxBillAllHelper {
if (null != shop) {
result.put("shopNumber", shop.getShopNumber());
}
WxShopUsersInfo su = wxShopService.getCurrentShopUser(bill, bill.getShopId());
WxShopUsers su = wxShopService.getCurrentShopUser(bill, bill.getShopId());
if (null != su) {
result.put("merchantName", su.getName());
result.put("linkPerson", su.getLinkPerson());


+ 6
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java Переглянути файл

@@ -1191,17 +1191,19 @@ public class WxShopServiceImpl implements WxShopService {
}

@Override
public WxShopUsersInfo getCurrentShopUser(TenantEntity tenantEntity, Long shopId) {
WxShopUsersInfo suq = new WxShopUsersInfo();
public WxShopUsers getCurrentShopUser(TenantEntity tenantEntity, Long shopId) {
WxShopUsers suq = new WxShopUsers();
suq.updateTenantInfo(tenantEntity);
suq.setShopId(shopId);
suq.setStatus(EnumShopUsersStatus.LIVE.getCode());
suq.setSortColumn("type desc");
List<WxShopUsersInfo> list = wxShopUsersMapper.findList(suq);
List<WxShopUsers> list = wxShopUsersMapper.findList(suq);
if (null == list || list.size() <= 0 ) {
return null;
};
return list.get(0);
WxShopUsers wsu = list.get(0);
this.setShopUserProperty(wsu);
return wsu;
}

@Override


Завантаження…
Відмінити
Зберегти