Commit fa78c12d by qwmqiuwenmin

fix

parent b84eb377
......@@ -45,14 +45,14 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
List<TabHaobanWxEnterpriseRelated> relatedList = wxEnterpriseRelatedMapper.listByWxenterpriseId(wxEnterpriseId);
List<EnterpriseDetailDTO> result = EntityUtil.changeEntityListByJSON(EnterpriseDetailDTO.class, relatedList);
for (EnterpriseDetailDTO enterpriseDetailDTO : result) {
String enterpriseId = enterpriseDetailDTO.getEnterpriseId();
int gicAllCount = storeGroupService.gicDepartmentCount(enterpriseId);
int syncCount = departmentService.countSyncDepartmentByEnterpriseId(enterpriseId);
logger.info("【企业数量】gicAllCount={},syncCount={}",gicAllCount,syncCount);
int nodeCount = gicAllCount - syncCount;
enterpriseDetailDTO.setNodeCount(nodeCount);
}
// for (EnterpriseDetailDTO enterpriseDetailDTO : result) {
// String enterpriseId = enterpriseDetailDTO.getEnterpriseId();
// int gicAllCount = storeGroupService.gicDepartmentCount(enterpriseId);
// int syncCount = departmentService.countSyncDepartmentByEnterpriseId(enterpriseId);
// logger.info("【企业数量】gicAllCount={},syncCount={}",gicAllCount,syncCount);
// int nodeCount = gicAllCount - syncCount;
// enterpriseDetailDTO.setNodeCount(nodeCount);
// }
return result;
}
......
......@@ -87,6 +87,12 @@
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="staffId != null" >
#{staffId},
</if>
<if test="staffName != null" >
#{staffName},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseRelated" >
......
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