新增了上传手机型号接口4
This commit is contained in:
parent
70b50edb2b
commit
472572ee01
@ -796,8 +796,8 @@ public class MedicalRecordService {
|
||||
// 上传手机型号
|
||||
@Transactional
|
||||
public ResponseDTO<String> uploadMobileModel(UploadMobileModelForm addForm){
|
||||
try {
|
||||
Long expertId = SmartRequestUtil.getRequestUserId();
|
||||
// Long expertId = 44L;
|
||||
ExpertEntity expert = expertDao.getExpert(expertId);
|
||||
if (expert == null) {
|
||||
return ResponseDTO.app_ok();
|
||||
@ -809,15 +809,20 @@ public class MedicalRecordService {
|
||||
|
||||
// 修改手机型号
|
||||
String mod = expert.getMobileModel();
|
||||
if (!Objects.equals(mod, "") && mod != null){
|
||||
if (mod.toLowerCase().contains(addForm.getMod().toLowerCase())) {
|
||||
return ResponseDTO.app_ok();
|
||||
}
|
||||
}
|
||||
|
||||
mod = mod + " | " + addForm.getMod();
|
||||
expert.setMobileModel(mod);
|
||||
expertDao.updateById(expert);
|
||||
|
||||
return ResponseDTO.app_ok();
|
||||
} catch (Exception e) {
|
||||
return ResponseDTO.app_ok();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user