Browse Source

1.审核历史入库问题修改

yuanliang 1 year ago
parent
commit
eb58fb0f30

+ 1 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantUnbindRecordServiceImpl.java

@@ -242,6 +242,7 @@ public class TenantUnbindRecordServiceImpl extends ServiceImpl<TenantUnbindRecor
 
         // 添加历史记录
         TenantUnbindHistory history = JSON.parseObject(JSON.toJSONString(unbindRecord), TenantUnbindHistory.class);
+        history.setId(null);
         tenantUnbindHistoryService.save(history);
 
         // 老师端发送消息

+ 0 - 1
cooleshow-user/user-teacher/src/main/java/com/yonge/cooleshow/teacher/controller/TeacherController.java

@@ -236,7 +236,6 @@ public class TeacherController extends BaseController {
         tenantUnbindRecord.setUserId(user.getId());
         tenantUnbindRecord.setUserName(user.getRealName());
         tenantUnbindRecord.setPhone(user.getPhone());
-        tenantUnbindRecord.setStatus(ETenantUnBindAuditStatus.DOING);
 
         String subjectId = teacher.getSubjectId();
         if (StringUtils.isNotEmpty(subjectId)) {