|
@@ -2,6 +2,7 @@ package com.zhongzheng.modules.course.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.modules.course.bo.CourseProjectTypeQueryBo;
|
|
@@ -135,11 +136,11 @@ public class CourseBusinessServiceImpl extends ServiceImpl<CourseBusinessMapper,
|
|
|
public boolean editModel(CourseBusinessEditBo bo) {
|
|
|
//批量添加业务层次模板
|
|
|
for (Long businessId : bo.getBusinessIds()) {
|
|
|
- CourseBusiness update =new CourseBusiness();
|
|
|
- update.setUpdateTime(DateUtils.getNowTime());
|
|
|
- update.setId(businessId);
|
|
|
- update.setTemplateStatus(bo.getTemplateStatus());
|
|
|
- this.updateById(update);
|
|
|
+ LambdaUpdateWrapper<CourseBusiness> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(CourseBusiness::getId, businessId);
|
|
|
+ objectLambdaUpdateWrapper.set(CourseBusiness::getTemplateStatus, bo.getTemplateStatus());
|
|
|
+ objectLambdaUpdateWrapper.set(CourseBusiness::getUpdateTime,DateUtils.getNowTime());
|
|
|
+ this.update(null, objectLambdaUpdateWrapper);
|
|
|
}
|
|
|
return true;
|
|
|
}
|