人员下发
This commit is contained in:
parent
6f2e43018a
commit
f3a84b2fc6
|
|
@ -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("未查询到人员信息");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue