Commit a1d59d6d authored by 李腾威's avatar 李腾威

BUG

parent d3d14724
......@@ -86,6 +86,8 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
int amosIdExist(String amosId);
int amosIdExistTeam(String amosId);
void updatelistByParentId(String codex, String code);
......
......@@ -655,6 +655,12 @@ GROUP BY
) AS total;
</select>
<select id="amosIdExistTeam" resultType="int">
SELECT count(*) AS num FROM cb_firefighters WHERE amos_user_id = #{amosId} and is_delete = 0;
</select>
<update id="updatelistByParentId">
......
......@@ -579,6 +579,19 @@ public class OrgUsrController extends BaseController {
}
/**
* 判断关联账户是否已关联-队伍
*
* @param
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getAmosIdTeam/{amosId}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "判断关联账户是否已关联", notes = "判断关联账户是否已关联")
public ResponseModel<Object> getAmosIdTeam(@PathVariable String amosId) {
return ResponseHelper.buildResponse(iOrgUsrService.amosIdExistTeam(amosId));
}
/**
* 根据机场人员id获取amos平台人员id
*
* @param
......
......@@ -1766,6 +1766,14 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
return true;
}
public Object amosIdExistTeam(String amosId) {
int num = orgUsrMapper.amosIdExistTeam(amosId);
if (num > 0) {
return false;
}
return true;
}
/**
* 获取对应公司组下面的人员信息
*
......
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