Commit cad29b4e authored by chenzhao's avatar chenzhao

提交冲突代码

parent 96e033e6
......@@ -20,4 +20,6 @@ public interface EmergencyTaskMapper extends BaseMapper {
List<Long> getPersonIds(Long obligationId);
List<String> roleNames(String amosOrgId);
}
......@@ -53,6 +53,13 @@ public class EmergencyTaskServiceImpl implements IEmergencyTaskService {
}
@Override
public String getRolesNameByUserId(String userId) {
List<String> list = emergencyTaskMapper.roleNames(userId);
String roleNames = String.join(",", list);
return roleNames;
}
@Override
public List<Long> getPersonIds(Long obligationId) {
return emergencyTaskMapper.getPersonIds(obligationId);
}
......
......@@ -23,4 +23,6 @@ public interface IEmergencyTaskService {
List<Long> getPersonIds(Long obligationId);
String getRolesNameByUserId(String userId);
}
......@@ -59,6 +59,18 @@
</where>
</select>
<select id="roleNames" resultType="string">
SELECT
f.dict_name AS dictName
FROM
c_emergency_relation cer LEFT JOIN f_dict f ON cer.obligationId = f.id
<where>
<if test="_parameter != null ">
cer.amos_id = #{amosOrgId}
</if>
</where>
</select>
<select id="getPersonIds" resultType="long">
SELECT
cer.person_id AS persons
......
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