app_user 添加ytjPassword字段 修改报错问题
This commit is contained in:
@@ -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