人员出入管理
This commit is contained in:
parent
e0a403bf30
commit
8450be4c03
|
|
@ -90,7 +90,8 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
|||
dto.setTypeCode(Constant.PERSON_CAR_TYPE);
|
||||
list = mapper.getPerStatisticsPhoto(dto);
|
||||
if(CollectionUtils.isNotEmpty(list)){
|
||||
for (AccessMgeVo vo : list) {
|
||||
for (int i = 0;i < list.size();i++) {
|
||||
AccessMgeVo vo = list.get(i);
|
||||
if(StringUtils.isNotEmpty(vo.getVal())){
|
||||
Result<SysFile> result = remoteFileService.getImgBase64(vo.getVal(), SecurityConstants.INNER);
|
||||
if (result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null) {
|
||||
|
|
@ -101,11 +102,10 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
|||
}
|
||||
vo.setPersonName(handleData(vo.getSourceData()));
|
||||
}
|
||||
if(Objects.equals("0",vo.getIsWarn()) || StringUtils.isEmpty(vo.getIsWarn())){
|
||||
if(i == 0 || i == 1){
|
||||
noWarnList.add(vo);
|
||||
}else if(Objects.equals("1",vo.getIsWarn())){
|
||||
warnList.add(vo);
|
||||
}
|
||||
warnList.add(vo);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -15,13 +15,11 @@
|
|||
FROM t_class_metting tcm
|
||||
left JOIN tb_device td on td.device_code = tcm.puid AND td.del_flag=0
|
||||
WHERE tcm.del_flag = 0 AND TCM.puid is not null
|
||||
AND tcm.bid_code = #{bidCode}
|
||||
<!-- AND tcm.work_day = CURRENT_DATE-->
|
||||
<if test="param!=null and param!=''">
|
||||
<if test="param!=null and param!=''">
|
||||
AND INSTR(td.device_name,#{param}) > 0
|
||||
</if>
|
||||
<if test="bidCode!=null and bidCode!=''">
|
||||
AND INSTR(tcm.bid_code,#{bidCode}) > 0
|
||||
</if>
|
||||
<if test="bidCode==null or bidCode==''">
|
||||
AND tcm.bid_code = '-1'
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue