提交 60648911 作者: xiaowang

企业认证数量

上级 731952a6
...@@ -16,6 +16,8 @@ import lombok.NoArgsConstructor; ...@@ -16,6 +16,8 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
public class ProductReportDTO { public class ProductReportDTO {
@ApiModelProperty(value = "企业认证总数")
private Integer companyAuthCount;
@ApiModelProperty(value = "入驻商家总数") @ApiModelProperty(value = "入驻商家总数")
private Integer joinStoreCount; private Integer joinStoreCount;
@ApiModelProperty(value = "品牌商") @ApiModelProperty(value = "品牌商")
......
...@@ -200,4 +200,6 @@ public interface UserServiceDao { ...@@ -200,4 +200,6 @@ public interface UserServiceDao {
UserAccountMessageVo userMessages(Integer userAccountId); UserAccountMessageVo userMessages(Integer userAccountId);
List<String> userMessagesPilot(Integer pilotId); List<String> userMessagesPilot(Integer pilotId);
int appUserCompanyAuthCount();
} }
...@@ -77,6 +77,9 @@ public class UserReportServiceImpl implements UserReportService { ...@@ -77,6 +77,9 @@ public class UserReportServiceImpl implements UserReportService {
@Override @Override
public ProductReportDTO getJoinStoreNumber() { public ProductReportDTO getJoinStoreNumber() {
ProductReportDTO productReportDTO = new ProductReportDTO(); ProductReportDTO productReportDTO = new ProductReportDTO();
// 获取企业认证总数
int companyAuthCount = userServiceDao.appUserCompanyAuthCount();
productReportDTO.setCompanyAuthCount(companyAuthCount);
// 获取入驻商家数量 // 获取入驻商家数量
int joinStoreCount = cooperationDao.getJoinStoreCount(); int joinStoreCount = cooperationDao.getJoinStoreCount();
productReportDTO.setJoinStoreCount(joinStoreCount); productReportDTO.setJoinStoreCount(joinStoreCount);
......
...@@ -613,28 +613,31 @@ ...@@ -613,28 +613,31 @@
</select> </select>
<select id="userMessages" resultType="com.mmc.iuav.user.model.vo.UserAccountMessageVo"> <select id="userMessages" resultType="com.mmc.iuav.user.model.vo.UserAccountMessageVo">
SELECT SELECT rna.user_account_id as userAccountId,
rna.user_account_id as userAccountId, rna.sex,
rna.sex, (
( YEAR (
YEAR ( CURDATE())- YEAR (birthday)) AS birthday,
CURDATE())- YEAR ( birthday )) AS birthday, pc.id as pilotId,
pc.id as pilotId, pc.years_of_working
pc.years_of_working FROM real_name_auth rna
FROM INNER JOIN pilot_certification pc ON rna.user_account_id = pc.user_account_id
real_name_auth rna WHERE rna.user_account_id = #{userAccountId}
INNER JOIN pilot_certification pc ON rna.user_account_id = pc.user_account_id
WHERE
rna.user_account_id = #{userAccountId}
</select> </select>
<select id="userMessagesPilot" resultType="java.lang.String"> <select id="userMessagesPilot" resultType="java.lang.String">
SELECT SELECT ability_name
ability_name FROM pilot_ability_certification pac
FROM WHERE pilot_certification_id = #{pilotId}
pilot_ability_certification pac </select>
WHERE <select id="appUserCompanyAuthCount" resultType="java.lang.Integer">
pilot_certification_id = #{pilotId} SELECT count(*)
FROM user_account ua
LEFT JOIN company_member cm ON cm.user_account_id = ua.id
LEFT JOIN company_info ci ON ci.id = cm.company_info_id AND ci.is_deleted = 0
WHERE ua.`disable` = 0
AND ua.port_type = 100
AND cm.is_leader = 1
</select> </select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论