updates
This commit is contained in:
parent
32d0fd1e78
commit
d70a3734c4
|
|
@ -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查询
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue