用户登录问题修改
This commit is contained in:
parent
708426ee15
commit
03b15ec97e
|
|
@ -53,6 +53,9 @@ public interface FaceGroupsMapper {
|
||||||
*/
|
*/
|
||||||
public int deleteFaceGroupsByGroupIds(Long[] groupIds);
|
public int deleteFaceGroupsByGroupIds(Long[] groupIds);
|
||||||
|
|
||||||
|
|
||||||
|
public int deleteFaceDataByGroupCode(String groupCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分组名称唯一校验
|
* 分组名称唯一校验
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,11 @@ public class FaceGroupsServiceImpl implements FaceGroupsService {
|
||||||
public AjaxResult deleteFaceGroupsByGroupIds(Long[] groupIds) {
|
public AjaxResult deleteFaceGroupsByGroupIds(Long[] groupIds) {
|
||||||
try {
|
try {
|
||||||
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
|
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
|
||||||
|
for (Long groupId : groupIds) {
|
||||||
|
FaceGroupsEntity faceGroupsEntity = faceGroupsMapper.selectFaceGroupsByGroupId(groupId);
|
||||||
|
int i = faceGroupsMapper.deleteFaceDataByGroupCode(faceGroupsEntity.getGroupCode());
|
||||||
|
|
||||||
|
}
|
||||||
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
|
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
|
|
|
||||||
|
|
@ -72,4 +72,8 @@
|
||||||
#{groupId}
|
#{groupId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteFaceDataByGroupCode" parameterType="String">
|
||||||
|
delete from face_data where group_code = #{groupCode}
|
||||||
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue