Browse Source

init bug

release_toaliyun_real
xhxu 5 years ago
parent
commit
0fcd57fc1a
3 changed files with 12 additions and 4 deletions
  1. +3
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/basic/WxProjectConfigController.java
  2. +8
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java
  3. +1
    -2
      mallinkService/src/main/resources/mapper/WxFlowConfigMapper.xml

+ 3
- 2
mallinkAdmin/src/main/java/com/iformall/controller/basic/WxProjectConfigController.java View File

@@ -129,7 +129,7 @@ public class WxProjectConfigController extends BaseController {
if(wxMall.getSaleType().equals(100)){
wxMall.setGroupSupport(EnumGroupSupport.SUPPORT.getCode());
}else{
wxMall.setGroupSupport(EnumGroupSupport.SUPPORT.getCode());
wxMall.setGroupSupport(EnumGroupSupport.NOT_SUPPORT.getCode());
}
if(StringUtils.isBlank(wxMall.getBusinessHours())){
wxMall.setBusinessHours("[]");
@@ -500,7 +500,7 @@ public class WxProjectConfigController extends BaseController {
setTenantId(wxMall.getTenantId());
}};
ResultData wxMallBuildingFloorList = wxMallBuildingService.getBuildingFloorList(tenantEntity);
map.put("wxMallBuildingFloorList",wxMallBuildingFloorList);
map.put("wxMallBuildingFloorList",wxMallBuildingFloorList.data);
WxPayAccount wxPayAccount = wxPayAccountService.getByTenantId(wxMall.getTenantId());
map.put("wxPayAccount",wxPayAccount);
WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxMall.getTenantId());
@@ -512,6 +512,7 @@ public class WxProjectConfigController extends BaseController {
map.put("wxAppinfoList",wxAppinfoList);
MallUserInfo mallUserInfo = new MallUserInfo() {{
setTenantId(wxMall.getTenantId());
setIsAdmin(1);
}};
List<MallUserInfo> mallUserInfoList = mallUserInfoService.findList(mallUserInfo);
map.put("mallUserInfoList",mallUserInfoList);


+ 8
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java View File

@@ -88,8 +88,11 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService {
//record.setId(UUID.randomUUID().toString().replaceAll("-", ""));
final IdWorker idWorker = IdWorker.get();
record.setId(idWorker.nextId());
record.setCreateDate(new Date());
record.setUpdateDate(new Date());
wxMallBuildingMapper.insert(record);
} else {
record.setUpdateDate(new Date());
wxMallBuildingMapper.updateById(record);
}
}
@@ -115,6 +118,8 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService {
List<WxMallBuilding> wxMallBuildings = buildings.stream().map(b -> {
WxMallBuilding tempb = new WxMallBuilding();
tempb.setId(b.getId());
tempb.setTenantId(b.getTenantId());
tempb.setParentTenantId(b.getParentTenantId());
tempb.setName(b.getName());
return tempb;
}).collect(Collectors.toList());
@@ -125,7 +130,10 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService {
List<WxMallFloor> wxMallFloors = wxMallFloorMapper.findList(wxMallFloor).stream().map(f -> {
WxMallFloor tempf = new WxMallFloor();
tempf.setId(f.getId());
tempf.setTenantId(f.getTenantId());
tempf.setParentTenantId(f.getParentTenantId());
tempf.setFloorName(f.getFloorName());
tempf.setBackgroundImg(f.getBackgroundImg());
if (f.getTotalArea() != null) {
tempf.setTotalArea(f.getTotalArea());
}


+ 1
- 2
mallinkService/src/main/resources/mapper/WxFlowConfigMapper.xml View File

@@ -4,7 +4,7 @@

<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxFlowConfig">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="tenantId" property="tenantId" />
<result column="tenant_id" property="tenantId" />
<result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
<result column="parent_id" property="parentId" />
<result column="name" property="name" />
@@ -20,7 +20,6 @@

<sql id="dynamicWhereConditions">
where 1=1
<if test=" null != parentId ">and `parent_id` = #{parentId}</if>
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
</if>


Loading…
Cancel
Save