导入信息采集数据信息

This commit is contained in:
2025-07-21 11:32:50 +08:00
parent a53eeb74cd
commit ccf01ac7cc
4 changed files with 10 additions and 9 deletions

View File

@ -81,6 +81,7 @@ public class CjStudentController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody CjStudent cjStudent) public AjaxResult add(@RequestBody CjStudent cjStudent)
{ {
cjStudent.setSfqr(1L);
return toAjax(cjStudentService.insertCjStudent(cjStudent)); return toAjax(cjStudentService.insertCjStudent(cjStudent));
} }
@ -119,7 +120,7 @@ public class CjStudentController extends BaseController
* @throws Exception * @throws Exception
*/ */
@PostMapping("/import") @PostMapping("/import")
public AjaxResult importData(MultipartFile file) throws Exception{ public AjaxResult importData(MultipartFile file) {
int successNum = cjStudentService.importData(file); int successNum = cjStudentService.importData(file);
if (successNum > 0) { if (successNum > 0) {
return AjaxResult.success(); return AjaxResult.success();

View File

@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author sunyg * @author sunyg
* @date 2025-06-26 * @date 2025-06-26
*/ */
public class CjOption extends BaseEntity public class CjOption
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -35,14 +35,16 @@ public class CjStudent
private String xy; private String xy;
/** 生源地省 */ /** 生源地省 */
@Excel(name = "生源地省")
private String sydsh; private String sydsh;
/** 生源地市 */ /** 生源地市 */
@Excel(name = "生源地市")
private String sydshi; private String sydshi;
/** 毕业年份 */ /** 毕业年份 */
@Excel(name = "毕业年份") @Excel(name = "毕业年份")
private int bynf; private Integer bynf;
/** 最高学历 */ /** 最高学历 */
@Excel(name = "最高学历") @Excel(name = "最高学历")
@ -132,17 +134,15 @@ public class CjStudent
return zy; return zy;
} }
public void setBynf(int bynf) public void setBynf(Integer bynf) {
{
this.bynf = bynf; this.bynf = bynf;
} }
public int getBynf() public Integer getBynf() {
{
return bynf; return bynf;
} }
public void setZgyl(String zgyl) public void setZgyl(String zgyl)
{ {
this.zgyl = zgyl; this.zgyl = zgyl;
} }

View File

@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="shjz != null">#{shjz},</if> <if test="shjz != null">#{shjz},</if>
<if test="dbry != null">#{dbry},</if> <if test="dbry != null">#{dbry},</if>
<if test="rysfzs != null">#{rysfzs},</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="yx != null">#{yx},</if>
<if test="qt != null">#{qt},</if> <if test="qt != null">#{qt},</if>
<if test="sfqr != null">#{sfqr},</if> <if test="sfqr != null">#{sfqr},</if>