执法信息数据加密解密测试
This commit is contained in:
parent
501bdfe082
commit
2d18b64128
|
|
@ -370,12 +370,6 @@ 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)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue