企业信息、执法信息、执法人员信息数据加密解密接口调试
This commit is contained in:
parent
7cc4a4a75c
commit
7d826d3b26
|
|
@ -370,6 +370,12 @@ public class EnforcementInfoService {
|
||||||
if (enforcementTime == null || enforcementTime.length < 2) {
|
if (enforcementTime == null || enforcementTime.length < 2) {
|
||||||
throw new BusinessError("执法时间不能为空!");
|
throw new BusinessError("执法时间不能为空!");
|
||||||
}
|
}
|
||||||
|
enforcementInfo.setEnforcementStartTime(enforcementTime[0]);
|
||||||
|
enforcementInfo.setEnforcementEndTime(enforcementTime[1]);
|
||||||
|
enforcementInfo.setAgencyId(enforcementInfoDto.getAgencyId());
|
||||||
|
enforcementInfo.setEnterpriseId(enterprise.getEnterpriseId());
|
||||||
|
enforcementInfo.setUpdateTime(LocalDateTime.now());
|
||||||
|
enforcementInfoRepository.save(enforcementInfo);
|
||||||
});
|
});
|
||||||
enforceCheckRepository.findById(enforcementInfoDto.getEnforceCheckId()).ifPresent(enforceCheck -> {
|
enforceCheckRepository.findById(enforcementInfoDto.getEnforceCheckId()).ifPresent(enforceCheck -> {
|
||||||
Optional.ofNullable(enforcementInfoDto.getCheckItemIds()).ifPresent(ids -> enforceCheck.setCheckItemIds(String.join(",", ids)));
|
Optional.ofNullable(enforcementInfoDto.getCheckItemIds()).ifPresent(ids -> enforceCheck.setCheckItemIds(String.join(",", ids)));
|
||||||
|
|
|
||||||
|
|
@ -1417,7 +1417,6 @@ public class EnterpriseService {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业信息自查自报
|
* 企业信息自查自报
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,17 @@ public class OfficerService {
|
||||||
return officerRepository.count();
|
return officerRepository.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询执法人员列表
|
||||||
|
*
|
||||||
|
* @param query 查询条件
|
||||||
|
* @return 执法人员列表
|
||||||
|
*/
|
||||||
|
public List<Officer> listOfficers(OfficerQuery query) {
|
||||||
|
List<Officer> list = officerRepository.findAll(buildSpec(query), "officer-with-agency");
|
||||||
|
list.forEach(this::populateAgencyTransientFields);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 填充机构相关的瞬态字段,便于前端直接展示
|
* 填充机构相关的瞬态字段,便于前端直接展示
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue