增加删除团队信息

main
rong.liu 11 months ago
parent 81ab756cc4
commit c9ef938b6c
  1. 3
      users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java
  2. 3
      users/src/main/java/com/huoran/users/mapper/EnterpriseCertificationMapper.java
  3. 13
      users/src/main/java/com/huoran/users/mapper/xml/EnterpriseCertificationMapper.xml
  4. 2
      users/src/main/java/com/huoran/users/service/EnterpriseCertificationService.java
  5. 5
      users/src/main/java/com/huoran/users/service/impl/EnterpriseCertificationServiceImpl.java

@ -255,6 +255,9 @@ public class AliRealNameAuthenticationController {
userInfoUpdateWrapper.set("user_name", enterpriseCertification.getCompanyName()); userInfoUpdateWrapper.set("user_name", enterpriseCertification.getCompanyName());
userInfoUpdateWrapper.eq("user_id", userAccount1.getUserId()); userInfoUpdateWrapper.eq("user_id", userAccount1.getUserId());
userInfoService.update(new HrUserInfo(), userInfoUpdateWrapper); userInfoService.update(new HrUserInfo(), userInfoUpdateWrapper);
//删除团队信息
enterpriseCertificationService.deleteTeamInformation(enterpriseCertification.getAccountId());
return R.ok("提交成功,请等待审核!"); return R.ok("提交成功,请等待审核!");
} }

@ -22,4 +22,7 @@ public interface EnterpriseCertificationMapper extends BaseMapper<EnterpriseCert
EnterpriseCertification enterpriseCertificationDetails(@Param("id")Integer id); EnterpriseCertification enterpriseCertificationDetails(@Param("id")Integer id);
Integer deleteTeamInformation(@Param("accountId")Integer accountId);
} }

@ -1,6 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.huoran.users.mapper.EnterpriseCertificationMapper"> <mapper namespace="com.huoran.users.mapper.EnterpriseCertificationMapper">
<delete id="deleteTeamInformation">
DELETE
a,
t,
c
FROM
k_platform_team_account a
INNER JOIN k_platform_team t ON t.manage_id = a.manage_id
INNER JOIN k_platform_team_classification c ON c.id = t.classification_id
WHERE
a.account_id = #{accountId}
</delete>
<select id="selectEnterpriseCertificationList" <select id="selectEnterpriseCertificationList"
resultType="com.huoran.users.entity.EnterpriseCertification"> resultType="com.huoran.users.entity.EnterpriseCertification">

@ -19,4 +19,6 @@ public interface EnterpriseCertificationService extends IService<EnterpriseCerti
R selectEnterpriseCertificationList(EnterpriseCertificationLIstReq req); R selectEnterpriseCertificationList(EnterpriseCertificationLIstReq req);
R enterpriseCertificationDetails(Integer id); R enterpriseCertificationDetails(Integer id);
boolean deleteTeamInformation(Integer accountId);
} }

@ -52,4 +52,9 @@ public class EnterpriseCertificationServiceImpl extends ServiceImpl<EnterpriseCe
public R enterpriseCertificationDetails(Integer id) { public R enterpriseCertificationDetails(Integer id) {
return R.ok().put("data",baseMapper.enterpriseCertificationDetails(id)); return R.ok().put("data",baseMapper.enterpriseCertificationDetails(id));
} }
@Override
public boolean deleteTeamInformation(Integer accountId) {
return baseMapper.deleteTeamInformation(accountId) > 0;
}
} }

Loading…
Cancel
Save