|
@@ -132,10 +132,13 @@ public class QuestionBankController extends BaseController<QuestionBankEntity, Q
|
|
|
if(null == qbEntity.getTitle()){
|
|
|
return RestResponse.fail("标题不能为空");
|
|
|
}
|
|
|
- //app端诊单ID 前端传,web端这个不存在,且专家默认为系统 userId = 1
|
|
|
- if(null == qbEntity.getLiftCaseId() && qbEntity.getExpert() != 1){
|
|
|
- return RestResponse.fail("诊单不能为空");
|
|
|
+ if( qbEntity.getExpert() == null || qbEntity.getExpert().equals("")){
|
|
|
+ qbEntity.setExpert(1l);
|
|
|
}
|
|
|
+ //app端诊单ID 前端传,web端这个不存在,且专家默认为系统 userId = 1
|
|
|
+// if(null == qbEntity.getLiftCaseId() && qbEntity.getExpert() != 1){
|
|
|
+// return RestResponse.fail("诊单不能为空");
|
|
|
+// }
|
|
|
|
|
|
return questionBankService.modify(qbEntity);
|
|
|
}
|
|
@@ -223,6 +226,9 @@ public class QuestionBankController extends BaseController<QuestionBankEntity, Q
|
|
|
//驳回状态,修改的时候才会变成 待审核
|
|
|
request.setExamineFlag(0);
|
|
|
}
|
|
|
+ if( request.getExpert() == null || request.getExpert().equals("")){
|
|
|
+ request.setExpert(1l);
|
|
|
+ }
|
|
|
boolean updateFlag = getService().updateById(request);
|
|
|
QuestionBankEntity e = getService().getById(request.getId());
|
|
|
if (updateFlag) {
|