|
|
@@ -12,7 +12,6 @@ import com.usoftchina.smartschool.school.dto.ListReqDTO;
|
|
|
import com.usoftchina.smartschool.school.exception.BizExceptionCode;
|
|
|
import com.usoftchina.smartschool.school.mapper.HomeWorkMapper;
|
|
|
import com.usoftchina.smartschool.school.po.HomeWork;
|
|
|
-import com.usoftchina.smartschool.school.po.Notify;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
@@ -34,6 +33,9 @@ public class HomeWorkServiceImpl implements HomeWorkService{
|
|
|
if (StringUtils.isEmpty(formdata)){
|
|
|
throw new BizException(BizExceptionCode.EMPTY_DATA);
|
|
|
}
|
|
|
+ Long school_id = BaseContextHolder.getSchoolId();
|
|
|
+ school_id = 1l;
|
|
|
+ formdata.setSchool_id(school_id);
|
|
|
//新增
|
|
|
if (StringUtils.isEmpty(formdata.getTask_id()) || "0".equals(formdata.getTask_id().toString())) {
|
|
|
homeWorkMapper.insertSelective(formdata);
|