refactor(sis): 将 remoteHWId 修改为 remoteHwId
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m13s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m13s
This commit is contained in:
@@ -71,7 +71,7 @@ public class SisPersonLibImg extends TenantEntity {
|
||||
/**
|
||||
* 远程库图像ID
|
||||
*/
|
||||
private Long remoteHWId;
|
||||
private Long remoteHwId;
|
||||
|
||||
/**
|
||||
* 入驻员工id
|
||||
|
@@ -9,8 +9,6 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 人像信息业务对象 tb_person_lib_img
|
||||
*
|
||||
@@ -79,7 +77,7 @@ public class SisPersonLibImgBo extends BaseEntity {
|
||||
/**
|
||||
* 远程库图像ID
|
||||
*/
|
||||
private Long remoteHWId;
|
||||
private Long remoteHwId;
|
||||
|
||||
/**
|
||||
* 入驻员工id
|
||||
|
@@ -8,7 +8,6 @@ import org.dromara.sis.domain.SisPersonLibImg;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
|
||||
|
||||
/**
|
||||
@@ -83,7 +82,7 @@ public class SisPersonLibImgVo implements Serializable {
|
||||
* 远程库图像ID
|
||||
*/
|
||||
@ExcelProperty(value = "远程库图像ID")
|
||||
private Long remoteHWId;
|
||||
private Long remoteHwId;
|
||||
|
||||
/**
|
||||
* 入驻员工id
|
||||
|
@@ -93,7 +93,7 @@ public class RemoteSisAuthServiceImpl implements RemoteSisAuthService {
|
||||
@Override
|
||||
public Long queryHuaweiBoxIdByImgMd5(String imgMd5) {
|
||||
SisPersonLibImgVo vo = sisPersonLibImgService.queryByImgMd5(imgMd5);
|
||||
return vo != null ? vo.getRemoteHWId() : null;
|
||||
return vo != null ? vo.getRemoteHwId() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -143,7 +143,7 @@ public class SisPersonLibImgServiceImpl implements ISisPersonLibImgService {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
List<SisPersonLibImgVo> list = this.queryListByIds(ids);
|
||||
Collection<Long> remoteIds = list.stream().map(SisPersonLibImgVo::getRemoteHWId).toList();
|
||||
Collection<Long> remoteIds = list.stream().map(SisPersonLibImgVo::getRemoteHwId).toList();
|
||||
|
||||
if (!remoteIds.isEmpty()) {
|
||||
Boolean flag = huaWeiBoxApi.deletePerson(remoteIds);
|
||||
@@ -180,7 +180,7 @@ public class SisPersonLibImgServiceImpl implements ISisPersonLibImgService {
|
||||
LambdaQueryWrapper<SisPersonLibImg> lqw = new LambdaQueryWrapper<>();
|
||||
lqw.eq(SisPersonLibImg::getResidentPersonId, personId);
|
||||
SisPersonLibImg update = new SisPersonLibImg();
|
||||
update.setRemoteHWId(huaweiBoxId);
|
||||
update.setRemoteHwId(huaweiBoxId);
|
||||
update.setImgMd5Value(imgMd5);
|
||||
return baseMapper.update(update, lqw) > 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user