Browse Source

修改问诊,评价和归档的状态值

udream-cxs 4 years ago
parent
commit
1e4de281ed

+ 3 - 1
lift-ud-service/src/main/java/cn/com/ty/lift/ud/expertComment/service/impl/ExpertCommentServiceImpl.java

@@ -176,7 +176,9 @@ public class ExpertCommentServiceImpl extends ServiceImpl<ExpertCommentMapper, E
         }
         // 对应诊单状态改为 已完成
         if (selectById.getDataTable() == 1) {
-            caseMapper.updateStatusById(selectById.getId(), 5);
+            //问诊评价操作与归档操作互换,因此归档是状态为5,评价是状态6
+//            caseMapper.updateStatusById(selectById.getId(), 5);
+            caseMapper.updateStatusById(selectById.getId(), 6);
         } else {
             caseMapper.updateStatusById(selectById.getId(), 6);
         }

+ 3 - 2
lift-ud-service/src/main/java/cn/com/ty/lift/ud/question/controller/QuestionBankController.java

@@ -385,8 +385,9 @@ public class QuestionBankController extends BaseController<QuestionBankEntity, Q
             boolean updateFlag = getService().updateById(entity);
             QuestionBankEntity e = getService().getById(qbEntity.getId());
             if (updateFlag) {
-                // 修改诊单状态
-                iLiftCaseService.updateStatusById(qbEntity.getLiftCaseId(), 6);
+                // 修改诊单状态,评价和归档操作互换位置,因此状态值与评价互换
+//                iLiftCaseService.updateStatusById(qbEntity.getLiftCaseId(), 6);
+                iLiftCaseService.updateStatusById(qbEntity.getLiftCaseId(), 5);
                 return RestResponse.success(null, "问题归档完成");
             }else {
                 return RestResponse.fail("问题归档失败");