Commit e4163d9d by huangZW

111

parent 200d20a8
......@@ -26,9 +26,23 @@ public class YwWxEnterpriseDTO implements Serializable {
private String version;
private String corpSquareLogoUrl;
//关联商户数量
private Integer relationCount=0;
private static final long serialVersionUID = 1L;
public static long getSerialversionuid() {
return serialVersionUID;
}
public Integer getRelationCount() {
return relationCount;
}
public void setRelationCount(Integer relationCount) {
this.relationCount = relationCount;
}
private static final long serialVersionUID = 1L;
public String getCorpSquareLogoUrl() {
return corpSquareLogoUrl;
......
......@@ -55,6 +55,8 @@ public class EnterpriseController extends WebBaseController{
dto.setVersion("3.0");
dto.setBuyDate(new Date());
dto.setBuyStatus("1");
List<EnterpriseDetailDTO> counts = wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId(dto.getWxEnterpriseId());
dto.setRelationCount(counts.size());
}
pageVo.setList(list);
pageVo.setPageNum(page.getCurrentPage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment