|
@@ -38,6 +38,9 @@ public class TeacherSubjectbookService {
|
38
|
38
|
TTeacherSubjectbook sb = getObjByLsbIdTeacherId(model.getLsbid(), model.getTeacherid());
|
39
|
39
|
Integer tbid = sb == null ? null : sb.getTbid();
|
40
|
40
|
if (sb == null) {
|
|
41
|
+ //根据教材id获取科目id
|
|
42
|
+ String subjectid = teacherSubjectbookMapper.getSubjectidByLsbid(model.getLsbid());
|
|
43
|
+ model.setSubjectid(subjectid);
|
41
|
44
|
model.setSelected(1);
|
42
|
45
|
model.setCreatetime(N_Utils.getSecondTimestamp());
|
43
|
46
|
teacherSubjectbookMapper.insertUseGeneratedKeys(model);
|