Commit edfcc3f1 by guojuxing

调整可用状态逻辑

parent 8ea4a022
...@@ -99,7 +99,8 @@ public class AuditorApiServiceImpl implements AuditorApiService { ...@@ -99,7 +99,8 @@ public class AuditorApiServiceImpl implements AuditorApiService {
} }
} }
auditorDTO.setIsUse(StringUtils.isBlank(auditorDTO.getOpenid()) ? 0 : 1); boolean isUse = StringUtils.isNotBlank(auditorDTO.getOpenid()) || auditorDTO.getUserId() != null;
auditorDTO.setIsUse(isUse ? 0 : 1);
if (StringUtils.isNotBlank(auditorDTO.getOpenid())) { if (StringUtils.isNotBlank(auditorDTO.getOpenid())) {
boolean repeat = this.auditorService.validOpenidIsRepeat(auditorDTO.getEnterpriseId(), auditorDTO.getOpenid(), auditorDTO.getAuditorId()); boolean repeat = this.auditorService.validOpenidIsRepeat(auditorDTO.getEnterpriseId(), auditorDTO.getOpenid(), auditorDTO.getAuditorId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment