This commit is contained in:
zhouwentao 2025-06-23 15:30:55 +08:00
parent 32d0fd1e78
commit d70a3734c4
1 changed files with 21 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.common.util.AssertUtils;
import org.jeecg.common.util.oConvertUtils; import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.web.vo.QueryRecommendMajorVO; import org.jeecg.modules.web.vo.QueryRecommendMajorVO;
import org.jeecg.modules.yx.dto.*; import org.jeecg.modules.yx.dto.*;
@ -158,6 +159,26 @@ public class YxSchoolController extends JeecgController<YxSchool, IYxSchoolServi
return Result.OK("批量删除成功!"); return Result.OK("批量删除成功!");
} }
@AutoLog(value = "学校信息表-保存全部")
@ApiOperation(value = "学校信息表-保存全部", notes = "学校信息表-保存全部")
@RequestMapping(value = "/saveBatch", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> saveBatch(@RequestBody List<YxSchool> yxSchoolList) {
String id=null;
String majorCode = null;
String majorName = null;
String schoolCode = null;
String enrollmentCode = null;
int i=0;
for (YxSchool yxSchool : yxSchoolList) {
i++;
}
yxSchoolService.saveOrUpdateBatch(yxSchoolList);
//AssertUtils.notNull(yxSchoolMajor.getTuition(), "请输入[学费]!");
//AssertUtils.notTrue(yxSchoolMajorService.exist(yxSchoolMajor), String.format("专业-[%s]-已经录入", majorCode));
return Result.OK("保存成功!");
}
/** /**
* 通过id查询 * 通过id查询
* *