|
@@ -41,7 +41,7 @@ public class ServiceRoleApplicationServiceImpl
|
|
|
|
|
|
|
|
ServiceRoleApplication app = new ServiceRoleApplication();
|
|
ServiceRoleApplication app = new ServiceRoleApplication();
|
|
|
app.setUserId(userId);
|
|
app.setUserId(userId);
|
|
|
- app.setRoles(dto.getRoles());
|
|
|
|
|
|
|
+ app.setRoles(JSON.toJSONString(dto.getRoles()));
|
|
|
app.setIdCard(dto.getIdCard());
|
|
app.setIdCard(dto.getIdCard());
|
|
|
app.setIdCardImages(dto.getIdCardImages() != null ? JSON.toJSONString(dto.getIdCardImages()) : null);
|
|
app.setIdCardImages(dto.getIdCardImages() != null ? JSON.toJSONString(dto.getIdCardImages()) : null);
|
|
|
app.setCertificateImages(dto.getCertificateImages() != null ? JSON.toJSONString(dto.getCertificateImages()) : null);
|
|
app.setCertificateImages(dto.getCertificateImages() != null ? JSON.toJSONString(dto.getCertificateImages()) : null);
|
|
@@ -81,7 +81,7 @@ public class ServiceRoleApplicationServiceImpl
|
|
|
app.setReviewedAt(LocalDateTime.now());
|
|
app.setReviewedAt(LocalDateTime.now());
|
|
|
this.updateById(app);
|
|
this.updateById(app);
|
|
|
|
|
|
|
|
- List<String> roles = app.getRoles();
|
|
|
|
|
|
|
+ List<String> roles = JSON.parseArray(app.getRoles(), String.class);
|
|
|
User user = userMapper.selectById(app.getUserId());
|
|
User user = userMapper.selectById(app.getUserId());
|
|
|
|
|
|
|
|
for (String role : roles) {
|
|
for (String role : roles) {
|