refactor(sis): 将 remoteHWId 修改为 remoteHwId
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m13s

This commit is contained in:
2025-08-18 11:30:01 +08:00
parent e0abf1bd13
commit be5d00040d
5 changed files with 6 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ public class SisPersonLibImg extends TenantEntity {
/**
* 远程库图像ID
*/
private Long remoteHWId;
private Long remoteHwId;
/**
* 入驻员工id

View File

@@ -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

View File

@@ -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

View File

@@ -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;
}
/**

View File

@@ -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;
}