人员下发

This commit is contained in:
fl 2025-07-04 09:57:19 +08:00
parent 6f2e43018a
commit f3a84b2fc6
2 changed files with 18 additions and 19 deletions

View File

@ -99,16 +99,17 @@ public class PersonFaceServiceImpl implements IPersonFaceService {
/** /**
* 添加人员信息(修改) * 添加人员信息(修改)
*
* @param vo 人员信息对象 * @param vo 人员信息对象
* @return 返回操作结果 * @return 返回操作结果
*/ */
@Override @Override
public AjaxResult addPerson(PersonVo vo) { public AjaxResult addPerson(PersonVo vo) {
try { try {
if(vo.getIds() == null && vo.getIds().isEmpty()){ if (vo.getIds() != null && !vo.getIds().isEmpty()) {
List<PersonVo> list = mapper.selectPerson(vo.getIds()); // List<PersonVo> list = mapper.selectPerson(vo.getIds());
// List<PersonVo> list = new ArrayList<>(); List<PersonVo> list = new ArrayList<>();
// list.add(vo); list.add(vo);
if (list.isEmpty()) { if (list.isEmpty()) {
return AjaxResult.error("未查询到人员信息"); return AjaxResult.error("未查询到人员信息");
} }

View File

@ -19,12 +19,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM FROM
`robot_sbd_user` `robot_sbd_user`
<where> <where>
<if test="list.size() > 0 ">
id in id in
<foreach item="item" collection="list" open="(" separator="," close=")"> <foreach item="item" collection="list" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</if>
</where> </where>
</select> </select>