2020-08-07 17:11:12 +08:00
|
|
|
package com.cowr.ssjygl.modifylog;
|
|
|
|
|
|
|
|
|
|
import com.cowr.common.view.PageParam;
|
|
|
|
|
import com.cowr.common.view.Result;
|
|
|
|
|
import com.cowr.model.ModifyLog;
|
2020-10-15 12:37:45 +08:00
|
|
|
import com.cowr.ssjygl.actioncmdlog.ActionCmdLogService;
|
2020-08-07 17:11:12 +08:00
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Generated by COWR Sat Apr 04 17:23:04 CST 2020
|
|
|
|
|
* TableName: modify_log
|
|
|
|
|
* Remarks: 配置相关表修改日志记录
|
|
|
|
|
* PrimaryKey: id
|
|
|
|
|
*/
|
|
|
|
|
public class ModifyLogController extends Controller {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分页查找 modify_log 配置相关表修改日志记录
|
|
|
|
|
*/
|
|
|
|
|
public void find(){
|
|
|
|
|
PageParam pp = getBean(PageParam.class, "", true);
|
|
|
|
|
renderJson(Result.object(ModifyLogService.me.find(pp)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 按主键查找单个对象 modify_log 配置相关表修改日志记录
|
|
|
|
|
*/
|
|
|
|
|
@Before(ModifyLogPKValidator.class)
|
|
|
|
|
public void get(){
|
|
|
|
|
ModifyLog model = getModel(ModifyLog.class, "", true); // 忽略不在model中的字段
|
|
|
|
|
renderJson(ModifyLogService.me.get(model));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 返回所有 modify_log 配置相关表修改日志记录
|
|
|
|
|
*/
|
|
|
|
|
public void list(){
|
|
|
|
|
renderJson(Result.object(ModifyLogService.me.list()));
|
|
|
|
|
}
|
2020-10-15 12:37:45 +08:00
|
|
|
|
|
|
|
|
public void findManualWeight() {
|
|
|
|
|
PageParam pp = getBean(PageParam.class, "", true);
|
|
|
|
|
String create_user_name = get("create_user_name");
|
|
|
|
|
String stm = get("stm");
|
|
|
|
|
String etm = get("etm");
|
|
|
|
|
renderJson(Result.object(ModifyLogService.me.findManualWeight(pp, create_user_name, stm, etm)));
|
|
|
|
|
}
|
2020-08-07 17:11:12 +08:00
|
|
|
}
|