1
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 12m21s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 12m21s
This commit is contained in:
@@ -13,10 +13,20 @@ import java.util.List;
|
||||
*/
|
||||
public interface RemoteResidentPersonService {
|
||||
|
||||
// 查询已上传图片,未授权人员
|
||||
/**
|
||||
* 查询已上传图片,未授权人员
|
||||
*
|
||||
* @return list
|
||||
*/
|
||||
List<RemoteResidentPersonVo> queryUnAuthPerson();
|
||||
|
||||
// 更新E8平台id
|
||||
/**
|
||||
* 更新e8平台Id
|
||||
*
|
||||
* @param personId 人员id
|
||||
* @param e8Id e8平台Id
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean updateE8Id(Long personId, Long e8Id);
|
||||
|
||||
/**
|
||||
@@ -27,4 +37,12 @@ public interface RemoteResidentPersonService {
|
||||
* @return 结果
|
||||
*/
|
||||
LoginResidentPerson getResidentPersonInfo(String phone, String tenantId) throws ResidentPersonException;
|
||||
|
||||
/**
|
||||
* 根据入驻员工id,查询信息
|
||||
*
|
||||
* @param personId 入驻员工id
|
||||
* @return vo
|
||||
*/
|
||||
RemoteResidentPersonVo queryById(Long personId);
|
||||
}
|
||||
|
@@ -27,7 +27,11 @@ public class RemoteResidentPersonServiceImpl implements RemoteResidentPersonServ
|
||||
|
||||
private final IResidentPersonService residentPersonService;
|
||||
|
||||
// 查询已上传图片,未授权人员
|
||||
/**
|
||||
* 查询已上传图片,未授权人员
|
||||
*
|
||||
* @return list
|
||||
*/
|
||||
@Override
|
||||
public List<RemoteResidentPersonVo> queryUnAuthPerson() {
|
||||
List<ResidentPersonVo> listVo = residentPersonService.queryUnAuthPerson();
|
||||
@@ -48,7 +52,13 @@ public class RemoteResidentPersonServiceImpl implements RemoteResidentPersonServ
|
||||
}).toList();
|
||||
}
|
||||
|
||||
// 更新E8平台id
|
||||
/**
|
||||
* 更新e8平台Id
|
||||
*
|
||||
* @param personId 人员id
|
||||
* @param e8Id e8平台Id
|
||||
* @return Boolean
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateE8Id(Long personId, Long e8Id) {
|
||||
ResidentPersonBo bo = new ResidentPersonBo();
|
||||
@@ -98,4 +108,27 @@ public class RemoteResidentPersonServiceImpl implements RemoteResidentPersonServ
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据入驻员工id,查询信息
|
||||
*
|
||||
* @param personId 入驻员工id
|
||||
* @return vo
|
||||
*/
|
||||
@Override
|
||||
public RemoteResidentPersonVo queryById(Long personId) {
|
||||
ResidentPersonVo vo = residentPersonService.queryById(personId);
|
||||
if (vo != null) {
|
||||
RemoteResidentPersonVo remoteResidentPersonVo = new RemoteResidentPersonVo();
|
||||
remoteResidentPersonVo.setId(vo.getId());
|
||||
remoteResidentPersonVo.setOssId(vo.getImg());
|
||||
remoteResidentPersonVo.setName(vo.getUserName());
|
||||
remoteResidentPersonVo.setGender(vo.getGender());
|
||||
remoteResidentPersonVo.setAuthBegDate(vo.getAuthBegDate());
|
||||
remoteResidentPersonVo.setAuthEndDate(vo.getAuthEndDate());
|
||||
remoteResidentPersonVo.setAuthGroupId(vo.getAuthGroupId());
|
||||
return remoteResidentPersonVo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -218,6 +218,11 @@ public class TbMeterRecordServiceImpl implements ITbMeterRecordService {
|
||||
record.setPreviousReading(record.getCurrentReading());
|
||||
}
|
||||
|
||||
// 如果上次抄表记录为0,则设置为当前读数
|
||||
if (record.getPreviousReading().compareTo(BigDecimal.ZERO) == 0) {
|
||||
record.setPreviousReading(record.getCurrentReading());
|
||||
}
|
||||
|
||||
// 通信状态改为离线
|
||||
TbMeterInfoBo bo = new TbMeterInfoBo();
|
||||
bo.setId(info.getId());
|
||||
|
@@ -7,14 +7,13 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.dromara.common.core.domain.TreeNode;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.sis.domain.vo.SisAuthRecordVo;
|
||||
@@ -69,28 +68,6 @@ public class SisAuthRecordController extends BaseController {
|
||||
return R.ok(sisAuthRecordService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增授权记录
|
||||
*/
|
||||
// @SaCheckPermission("sis:authRecord:add")
|
||||
// @Log(title = "人员库授权", businessType = BusinessType.INSERT)
|
||||
// @RepeatSubmit()
|
||||
// @PostMapping()
|
||||
// public R<Void> add(@Validated(AddGroup.class) @RequestBody SisAuthRecordBo bo) {
|
||||
// return toAjax(sisAuthRecordService.insertByBo(bo));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 修改授权记录
|
||||
*/
|
||||
// @SaCheckPermission("sis:authRecord:edit")
|
||||
// @Log(title = "授权记录", businessType = BusinessType.UPDATE)
|
||||
// @RepeatSubmit()
|
||||
// @PutMapping()
|
||||
// public R<Void> edit(@Validated(EditGroup.class) @RequestBody SisAuthRecordBo bo) {
|
||||
// return toAjax(sisAuthRecordService.updateByBo(bo));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 删除授权记录
|
||||
*
|
||||
@@ -104,16 +81,6 @@ public class SisAuthRecordController extends BaseController {
|
||||
return toAjax(sisAuthRecordService.deleteWithValidByIds(List.of(ids), true));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询库id授权的设备
|
||||
*
|
||||
* @param libId 人像库id
|
||||
*/
|
||||
// @GetMapping("/authDevice/{libId}")
|
||||
// public R<List<SisAuthRecord>> queryAuthDevice(@PathVariable("libId") String libId) {
|
||||
// return R.ok(sisAuthRecordService.queryAuthDevice(libId));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 查询所有可授权设备
|
||||
*
|
||||
@@ -123,4 +90,16 @@ public class SisAuthRecordController extends BaseController {
|
||||
public R<List<TreeNode<Long>>> tree() {
|
||||
return R.ok(sisAuthRecordService.authDeviceTree());
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动授权接口
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
@RepeatSubmit()
|
||||
@GetMapping("/auth/{id}")
|
||||
public R<Void> auth(@NotNull(message = "人员id不能为空")
|
||||
@PathVariable("id") Long personId) {
|
||||
return toAjax(sisAuthRecordService.manualAuth(personId));
|
||||
}
|
||||
}
|
||||
|
@@ -68,21 +68,6 @@ public interface ISisAuthRecordService {
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
|
||||
/**
|
||||
* 查询库id授权的设备
|
||||
*
|
||||
* @param libId 人像库id
|
||||
* @return List<SisAuthRecord>
|
||||
*/
|
||||
// List<SisAuthRecord> queryAuthDevice(String libId);
|
||||
|
||||
/**
|
||||
* 根据人像库id删除授权记录
|
||||
*
|
||||
* @param libId 人像库id
|
||||
*/
|
||||
// Boolean deleteByLibId(Long libId);
|
||||
|
||||
/**
|
||||
* 查询所有可授权设备树
|
||||
*
|
||||
@@ -121,5 +106,11 @@ public interface ISisAuthRecordService {
|
||||
*/
|
||||
Boolean queryByGroupIds(Collection<Long> groupIds);
|
||||
|
||||
/**
|
||||
* 手动授权
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
Boolean manualAuth(Long personId);
|
||||
|
||||
}
|
||||
|
@@ -394,4 +394,14 @@ public class SisAuthRecordServiceImpl implements ISisAuthRecordService {
|
||||
List<SisAuthRecordVo> authVoList = baseMapper.selectVoList(lqw);
|
||||
return CollUtil.isNotEmpty(authVoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动授权
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
@Override
|
||||
public Boolean manualAuth(Long personId) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user