用户userName替换userId

orign^2
wws 1 year ago
parent 13bd0c69f5
commit ce50262fe2

@ -160,7 +160,7 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
// 处理人员信息
List<SysUser> personList = new ArrayList<>();
for (String id : users) {
personList.add(personMapper.selectSysUserByUserId(Long.valueOf(id)));
personList.add(personMapper.selectSysUserByUserId(id));
}
// 将人员信息置入工单
order.setPersonList(personList);

@ -104,7 +104,7 @@ public class EquOrderServiceImpl implements IEquOrderService {
List<SysUser> personList = new ArrayList<>();
for (String id : users) {
personList.add(personMapper.selectSysUserByUserId(Long.valueOf(id)));
personList.add(personMapper.selectSysUserByUserId(id));
}
order.setPersonList(personList);

@ -47,9 +47,9 @@
</where>
</select>
<select id="selectSysUserByUserId" parameterType="Long" resultMap="SysUserResult">
<select id="selectSysUserByUserId" parameterType="String" resultMap="SysUserResult">
<include refid="selectSysUserVo"/>
where user_id = #{userId}
where user_name = #{userId}
</select>
<insert id="insertSysUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">

Loading…
Cancel
Save