app_user 添加ytjPassword字段 修改报错问题

This commit is contained in:
sh
2025-11-05 17:16:47 +08:00
parent 1e404a53eb
commit a694011a8b
3 changed files with 14 additions and 3 deletions

View File

@@ -118,7 +118,6 @@ public class SysLoginController
*/ */
@ApiOperation("保存注册信息") @ApiOperation("保存注册信息")
@PostMapping("/registerUser") @PostMapping("/registerUser")
@BussinessLog(title = "保存简历")
public AjaxResult registerUser(@RequestBody RegisterBody registerBody) public AjaxResult registerUser(@RequestBody RegisterBody registerBody)
{ {
String token=loginService.registerAppUser(registerBody); String token=loginService.registerAppUser(registerBody);

View File

@@ -89,7 +89,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">create_by,</if> <if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
<if test="idCard != null and idCard != ''">id_card,</if> <if test="idCard != null and idCard != ''">id_card,</if>
<if test="ytjPassword != null and ytjPassword != ''">ytj_password,</if>
create_time create_time
)values( )values(
<if test="userId != null and userId != ''">#{userId},</if> <if test="userId != null and userId != ''">#{userId},</if>
@@ -105,7 +104,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">#{createBy},</if> <if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if> <if test="remark != null and remark != ''">#{remark},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if> <if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="ytjPassword != null and ytjPassword != ''">#{ytjPassword},</if>
sysdate() sysdate()
) )
</insert> </insert>

View File

@@ -1,6 +1,7 @@
package com.ruoyi.common.core.controller; package com.ruoyi.common.core.controller;
import java.beans.PropertyEditorSupport; import java.beans.PropertyEditorSupport;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import org.slf4j.Logger; import org.slf4j.Logger;
@@ -89,6 +90,19 @@ public class BaseController
rspData.setTotal(new PageInfo(list).getTotal()); rspData.setTotal(new PageInfo(list).getTotal());
return rspData; return rspData;
} }
/**
* 列表错位时返回
* @param code 状态码
* @param errorMsg 错误描述
*/
public static TableDataInfo error(int code, String errorMsg) {
TableDataInfo result = new TableDataInfo();
result.setCode(code);
result.setMsg(errorMsg);
result.setTotal(0);
result.setRows(new ArrayList<>());
return result;
}
/** /**
* 返回成功 * 返回成功