app_user 添加ytjPassword字段 修改报错问题
This commit is contained in:
@@ -118,7 +118,6 @@ public class SysLoginController
|
||||
*/
|
||||
@ApiOperation("保存注册信息")
|
||||
@PostMapping("/registerUser")
|
||||
@BussinessLog(title = "保存简历")
|
||||
public AjaxResult registerUser(@RequestBody RegisterBody registerBody)
|
||||
{
|
||||
String token=loginService.registerAppUser(registerBody);
|
||||
|
||||
@@ -89,7 +89,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="idCard != null and idCard != ''">id_card,</if>
|
||||
<if test="ytjPassword != null and ytjPassword != ''">ytj_password,</if>
|
||||
create_time
|
||||
)values(
|
||||
<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="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="idCard != null and idCard != ''">#{idCard},</if>
|
||||
<if test="ytjPassword != null and ytjPassword != ''">#{ytjPassword},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.ruoyi.common.core.controller;
|
||||
|
||||
import java.beans.PropertyEditorSupport;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import org.slf4j.Logger;
|
||||
@@ -89,6 +90,19 @@ public class BaseController
|
||||
rspData.setTotal(new PageInfo(list).getTotal());
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回成功
|
||||
|
||||
Reference in New Issue
Block a user