Browse Source

[会员信息][修复]:修复云及开发数据显示不一致问题

release_toaliyun_real
Stormeye.Wu 7 years ago
parent
commit
24a1399d45
3 changed files with 17 additions and 1 deletions
  1. +10
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/WxCUserBasicInfoController.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCUserBasicInfo.java
  3. +6
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java

+ 10
- 1
mallinkAdmin/src/main/java/com/iformall/controller/WxCUserBasicInfoController.java View File

@@ -55,7 +55,16 @@ public class WxCUserBasicInfoController extends BaseController {
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), @ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true),
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)})
public ResultData list(@ModelAttribute WxCUserBasicInfo wxCUserBasicInfo, Integer pageNum, Integer pageSize) { public ResultData list(@ModelAttribute WxCUserBasicInfo wxCUserBasicInfo, Integer pageNum, Integer pageSize) {
if (null == wxCUserBasicInfo) wxCUserBasicInfo = new WxCUserBasicInfo();
if (null == wxCUserBasicInfo) {
wxCUserBasicInfo = new WxCUserBasicInfo();
} else {
if (StringUtils.isBlank(wxCUserBasicInfo.getPhone())) {
wxCUserBasicInfo.setPhone(null);
}
if (StringUtils.isBlank(wxCUserBasicInfo.getName())) {
wxCUserBasicInfo.setName(null);
}
}
String tenantId = getTenantId(); String tenantId = getTenantId();
wxCUserBasicInfo.setTenantId(tenantId); wxCUserBasicInfo.setTenantId(tenantId);
PageInfo<WxCUserBasicInfo> page = wxCUserBasicInfoService.listAsPage(wxCUserBasicInfo, pageNum, pageSize); PageInfo<WxCUserBasicInfo> page = wxCUserBasicInfoService.listAsPage(wxCUserBasicInfo, pageNum, pageSize);


+ 1
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxCUserBasicInfo.java View File

@@ -105,6 +105,7 @@ public class WxCUserBasicInfo implements Serializable {
@Transient @Transient
private String tagIds; private String tagIds;
@Transient @Transient
@Excel(name="标签",width = 20,orderNum = "9")
private String tagNames; private String tagNames;
@Transient @Transient
private long count; private long count;


+ 6
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java View File

@@ -134,6 +134,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
Cell addrCellTwo = rowtwo.createCell(6); Cell addrCellTwo = rowtwo.createCell(6);
Cell updateDateCellTwo = rowtwo.createCell(7); Cell updateDateCellTwo = rowtwo.createCell(7);
Cell createDateCellTwo = rowtwo.createCell(8); Cell createDateCellTwo = rowtwo.createCell(8);
Cell tagCellTwo = rowtwo.createCell(9);


nameCellTwo.setCellValue("姓名"); nameCellTwo.setCellValue("姓名");
sexCellTwo.setCellValue("性别"); sexCellTwo.setCellValue("性别");
@@ -144,6 +145,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
addrCellTwo.setCellValue("地址"); addrCellTwo.setCellValue("地址");
updateDateCellTwo.setCellValue("上次活跃时间"); updateDateCellTwo.setCellValue("上次活跃时间");
createDateCellTwo.setCellValue("注册时间"); createDateCellTwo.setCellValue("注册时间");
tagCellTwo.setCellValue("标签");


for (int i = 0; i < memberlist.size(); i++) { for (int i = 0; i < memberlist.size(); i++) {
rowtwo = sheetTwo.createRow(i + 1); rowtwo = sheetTwo.createRow(i + 1);
@@ -156,6 +158,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
addrCellTwo = rowtwo.createCell(6); addrCellTwo = rowtwo.createCell(6);
updateDateCellTwo = rowtwo.createCell(7); updateDateCellTwo = rowtwo.createCell(7);
createDateCellTwo = rowtwo.createCell(8); createDateCellTwo = rowtwo.createCell(8);
tagCellTwo = rowtwo.createCell(9);


WxCUserBasicInfo entity = memberlist.get(i); WxCUserBasicInfo entity = memberlist.get(i);


@@ -173,6 +176,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
addrCellTwo.setCellValue(entity.getAddress()); addrCellTwo.setCellValue(entity.getAddress());
updateDateCellTwo.setCellValue(sdf.format(entity.getUpdateDate())); updateDateCellTwo.setCellValue(sdf.format(entity.getUpdateDate()));
createDateCellTwo.setCellValue(sdf.format(entity.getCreateDate())); createDateCellTwo.setCellValue(sdf.format(entity.getCreateDate()));

} }




@@ -244,6 +248,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
Cell addrCellTwo = rowtwo.createCell(6); Cell addrCellTwo = rowtwo.createCell(6);
Cell updateDateCellTwo = rowtwo.createCell(7); Cell updateDateCellTwo = rowtwo.createCell(7);
Cell createDateCellTwo = rowtwo.createCell(8); Cell createDateCellTwo = rowtwo.createCell(8);
Cell tagCellTwo = rowtwo.createCell(9);


nameCellTwo.setCellValue("姓名"); nameCellTwo.setCellValue("姓名");
sexCellTwo.setCellValue("性别"); sexCellTwo.setCellValue("性别");
@@ -254,6 +259,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
addrCellTwo.setCellValue("地址"); addrCellTwo.setCellValue("地址");
updateDateCellTwo.setCellValue("上次活跃时间"); updateDateCellTwo.setCellValue("上次活跃时间");
createDateCellTwo.setCellValue("注册时间"); createDateCellTwo.setCellValue("注册时间");
tagCellTwo.setCellValue("标签");


FileOutputStream fileOut = new FileOutputStream(file); FileOutputStream fileOut = new FileOutputStream(file);
workbook.write(fileOut); workbook.write(fileOut);


Loading…
Cancel
Save