52 lines
1.7 KiB
Java
52 lines
1.7 KiB
Java
package com.cowr.ssjygl.modifylog;
|
|
|
|
import com.cowr.common.view.PageParam;
|
|
import com.cowr.common.view.Result;
|
|
import com.cowr.model.ModifyLog;
|
|
import com.jfinal.aop.Before;
|
|
import com.jfinal.core.Controller;
|
|
|
|
import static com.cowr.common.utils.DateTimeUtil.TM_TIME;
|
|
import static com.cowr.common.utils.DateTimeUtil.now;
|
|
|
|
/**
|
|
* 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()));
|
|
}
|
|
|
|
public void findManualWeight() {
|
|
PageParam pp = getBean(PageParam.class, "", true);
|
|
String create_user_name = get("create_user_name");
|
|
String stm = get("stm", now().minusDays(TM_TIME) + " 00:00:00");
|
|
String etm = get("etm",now() + " 23:59:59");
|
|
renderJson(Result.object(ModifyLogService.me.findManualWeight(pp, create_user_name, stm, etm)));
|
|
}
|
|
}
|