|
|
|
@ -382,6 +382,7 @@ public class StaffTemporaryController {
|
|
|
|
public GenericResponse addEntrant(@RequestBody StaffTemporaryVo staffTemporaryVo,
|
|
|
|
public GenericResponse addEntrant(@RequestBody StaffTemporaryVo staffTemporaryVo,
|
|
|
|
@RequestHeader("Token") String token) {
|
|
|
|
@RequestHeader("Token") String token) {
|
|
|
|
GenericResponse genericResponse = new GenericResponse();
|
|
|
|
GenericResponse genericResponse = new GenericResponse();
|
|
|
|
|
|
|
|
StaffTemporaryUpdate staffTemporaryUpdate = new StaffTemporaryUpdate();
|
|
|
|
|
|
|
|
|
|
|
|
// 参数过滤
|
|
|
|
// 参数过滤
|
|
|
|
StaffTemporaryEntrantDto staffTempEntrantDto = new StaffTemporaryEntrantDto();
|
|
|
|
StaffTemporaryEntrantDto staffTempEntrantDto = new StaffTemporaryEntrantDto();
|
|
|
|
@ -495,6 +496,20 @@ public class StaffTemporaryController {
|
|
|
|
return genericResponse;
|
|
|
|
return genericResponse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//todo 记录到修改记录表中 修改时间2024/10/21
|
|
|
|
|
|
|
|
Example example = new Example(BlackList.class);
|
|
|
|
|
|
|
|
example.excludeProperties("id");
|
|
|
|
|
|
|
|
Example.Criteria criteria = example.createCriteria();
|
|
|
|
|
|
|
|
criteria.andEqualTo(BlackListDto.Fields.identityCard,newStaffTemp.getIdentityCard());
|
|
|
|
|
|
|
|
List<BlackList> blackLists = blackListDao.selectByExample(example);
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(newStaffTemp,staffTemporaryUpdate);
|
|
|
|
|
|
|
|
staffTemporaryUpdate.setRuzhiTime(sourceStaffTemp.getScanTime());
|
|
|
|
|
|
|
|
staffTemporaryUpdate.setUpdateDate(newStaffTemp.getScanTime());
|
|
|
|
|
|
|
|
staffTemporaryUpdate.setStaffTemporaryId(newStaffTemp.getId());
|
|
|
|
|
|
|
|
staffTemporaryUpdate.setBlackId(blackLists.get(0).getId());
|
|
|
|
|
|
|
|
staffTemporaryUpdate.setId(new SnowflakeUtil(new Random().nextInt(1023)).nextId());
|
|
|
|
|
|
|
|
staffTemporaryUpdateMapper.insert(staffTemporaryUpdate);
|
|
|
|
|
|
|
|
|
|
|
|
// 获取视图对象
|
|
|
|
// 获取视图对象
|
|
|
|
StaffTemporaryVo newStaffTempVo = new StaffTemporaryVo();
|
|
|
|
StaffTemporaryVo newStaffTempVo = new StaffTemporaryVo();
|
|
|
|
BeanUtils.copyProperties(newStaffTemp, newStaffTempVo);
|
|
|
|
BeanUtils.copyProperties(newStaffTemp, newStaffTempVo);
|
|
|
|
|