导入信息采集数据信息
This commit is contained in:
@ -81,6 +81,7 @@ public class CjStudentController extends BaseController
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CjStudent cjStudent)
|
||||
{
|
||||
cjStudent.setSfqr(1L);
|
||||
return toAjax(cjStudentService.insertCjStudent(cjStudent));
|
||||
}
|
||||
|
||||
@ -119,7 +120,7 @@ public class CjStudentController extends BaseController
|
||||
* @throws Exception
|
||||
*/
|
||||
@PostMapping("/import")
|
||||
public AjaxResult importData(MultipartFile file) throws Exception{
|
||||
public AjaxResult importData(MultipartFile file) {
|
||||
int successNum = cjStudentService.importData(file);
|
||||
if (successNum > 0) {
|
||||
return AjaxResult.success();
|
||||
|
@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class CjOption extends BaseEntity
|
||||
public class CjOption
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -35,14 +35,16 @@ public class CjStudent
|
||||
private String xy;
|
||||
|
||||
/** 生源地省 */
|
||||
@Excel(name = "生源地省")
|
||||
private String sydsh;
|
||||
|
||||
/** 生源地市 */
|
||||
@Excel(name = "生源地市")
|
||||
private String sydshi;
|
||||
|
||||
/** 毕业年份 */
|
||||
@Excel(name = "毕业年份")
|
||||
private int bynf;
|
||||
private Integer bynf;
|
||||
|
||||
/** 最高学历 */
|
||||
@Excel(name = "最高学历")
|
||||
@ -132,13 +134,11 @@ public class CjStudent
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setBynf(int bynf)
|
||||
{
|
||||
public void setBynf(Integer bynf) {
|
||||
this.bynf = bynf;
|
||||
}
|
||||
|
||||
public int getBynf()
|
||||
{
|
||||
public Integer getBynf() {
|
||||
return bynf;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="shjz != null">#{shjz},</if>
|
||||
<if test="dbry != null">#{dbry},</if>
|
||||
<if test="rysfzs != null">#{rysfzs},</if>
|
||||
<if test="ry != null">#{ry},</if>
|
||||
<if test="sj != null">#{sj},</if>
|
||||
<if test="yx != null">#{yx},</if>
|
||||
<if test="qt != null">#{qt},</if>
|
||||
<if test="sfqr != null">#{sfqr},</if>
|
||||
|
Reference in New Issue
Block a user