|
|
|
@ -8,6 +8,7 @@ import cn.hutool.core.util.StrUtil; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.zdxt.enforcementcode.common.annotation.DataScope; |
|
|
|
import com.zdxt.enforcementcode.common.commonenum.PlatformTypeEnums; |
|
|
|
import com.zdxt.enforcementcode.common.util.IdCardCryptoUtil; |
|
|
|
import com.zdxt.enforcementcode.domain.*; |
|
|
|
import com.zdxt.enforcementcode.domain.bo.DashboardEnterpriseCheckQueryBo; |
|
|
|
import com.zdxt.enforcementcode.domain.bo.EnforcementRegistrationBo; |
|
|
|
@ -73,7 +74,24 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public EnforcementRegistrationVo queryById(String id){ |
|
|
|
return baseMapper.selectVoById(id); |
|
|
|
EnforcementRegistrationVo vo= baseMapper.selectVoById(id); |
|
|
|
|
|
|
|
// 手机号码中间四位星号代替
|
|
|
|
if (StringUtils.isNotBlank(vo.getLawEnforcerId())) { |
|
|
|
String lawEnforcerId = vo.getLawEnforcerId(); |
|
|
|
if (lawEnforcerId.length() >= 7) { |
|
|
|
vo.setLawEnforcerId(lawEnforcerId.substring(0, 3) + "****" + lawEnforcerId.substring(lawEnforcerId.length() - 4)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(vo.getLawEnforcerIdTwo())) { |
|
|
|
String lawEnforcerIdTwo = vo.getLawEnforcerIdTwo(); |
|
|
|
if (lawEnforcerIdTwo.length() >= 7) { |
|
|
|
vo.setLawEnforcerIdTwo(lawEnforcerIdTwo.substring(0, 3) + "****" + lawEnforcerIdTwo.substring(lawEnforcerIdTwo.length() - 4)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|