|
@@ -169,10 +169,12 @@ public class PersonalServiceImpl extends ServiceImpl<PersonalMapper, Personal> i
|
|
|
public void updateCertificates(Long targetId, CertificateEnum cer,String location,String bailorA,String bailorB) {
|
|
|
Personal personal = personalMapper.getByTargetId(targetId);
|
|
|
//更新订单上面的location
|
|
|
- personalService.update(new LambdaUpdateWrapper<Personal>()
|
|
|
- .set(StrUtil.isNotBlank(bailorA),Personal::getBailorA,bailorA)
|
|
|
- .set(StrUtil.isNotBlank(bailorB),Personal::getBailorB,bailorB)
|
|
|
- .set(StrUtil.isNotBlank(location),Personal::getLocation,location).eq(BaseEntity::getId,personal.getId()));
|
|
|
+ if (!cer.equals(CertificateEnum.LAND_CERTIFICATE)){
|
|
|
+ personalService.update(new LambdaUpdateWrapper<Personal>()
|
|
|
+ .set(StrUtil.isNotBlank(bailorA),Personal::getBailorA,bailorA)
|
|
|
+ .set(StrUtil.isNotBlank(bailorB),Personal::getBailorB,bailorB)
|
|
|
+ .set(StrUtil.isNotBlank(location),Personal::getLocation,location).eq(BaseEntity::getId,personal.getId()));
|
|
|
+ }
|
|
|
if (personal!=null && StrUtil.isNotEmpty(personal.getCredentials())){
|
|
|
List<String> credentials = JSON.parseArray(personal.getCredentials(), String.class);
|
|
|
if (!credentials.contains(cer.name())){
|