提交 377e6912 作者: xiaowang

认证bug修复

上级 3426c14e
...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
* @date 2023/9/16 11:25 * @date 2023/9/16 11:25
* 概要: * 概要:
*/ */
@Api(tags = "云享飞用户看板数据") @Api(tags = "云享飞发数据看板")
@RequestMapping("/user/report") @RequestMapping("/user/report")
@RestController @RestController
public class UserReportController { public class UserReportController {
......
...@@ -23,6 +23,8 @@ public interface UserFddAuthDao { ...@@ -23,6 +23,8 @@ public interface UserFddAuthDao {
UserFddDO getAppUserFddInfo(String unionId); UserFddDO getAppUserFddInfo(String unionId);
void updatePersonCertStatus(String customerId, String status);
// void insertAppUserFdd(UserFddDO appUserFddDO1); // void insertAppUserFdd(UserFddDO appUserFddDO1);
// //
// AppEVerifyInfoDO getCompanyVerifyUrl(String customerId); // AppEVerifyInfoDO getCompanyVerifyUrl(String customerId);
......
...@@ -200,9 +200,13 @@ public class UserFddAuthServiceImpl implements UserFddAuthService { ...@@ -200,9 +200,13 @@ public class UserFddAuthServiceImpl implements UserFddAuthService {
return ResultBody.error(ResultEnum.NOT_FOUND); return ResultBody.error(ResultEnum.NOT_FOUND);
} }
//修改认证状态 //修改认证状态
userFddAuthDao.updateCompanyCertStatus(customerId, status); if (authenticationType.equals("2")) {
userFddAuthDao.updateCompanyCertStatus(customerId, status);
} else {
userFddAuthDao.updatePersonCertStatus(customerId, status);
}
//通过需要申请证书 //通过需要申请证书
if ((authenticationType.equals("2") && status.equals("4")) || (authenticationType.equals("1") && status.equals("2"))) { if (("2".equals(authenticationType) && status.equals("4")) || (authenticationType.equals("1") && status.equals("2"))) {
fddService.getApplyCert(verifyInfoDO.getCustomerId(), verifyInfoDO.getTransactionNo()); fddService.getApplyCert(verifyInfoDO.getCustomerId(), verifyInfoDO.getTransactionNo());
} }
return ResultBody.success(); return ResultBody.success();
......
...@@ -31,6 +31,11 @@ ...@@ -31,6 +31,11 @@
set ent_verify_status = #{status} set ent_verify_status = #{status}
where customer_id = #{customerId} where customer_id = #{customerId}
</update> </update>
<update id="updatePersonCertStatus">
update user_fdd
set person_verify_status = #{status}
where customer_id = #{customerId}
</update>
<select id="checkRegisterFdd" resultType="com.mmc.iuav.user.entity.fdd.UserFddDO"> <select id="checkRegisterFdd" resultType="com.mmc.iuav.user.entity.fdd.UserFddDO">
select id, select id,
union_id, union_id,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论