ssjygl-xsct-service/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/modifylog/ModifyLogController.java

52 lines
1.7 KiB
Java
Raw Normal View History

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;
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;
2020-08-07 17:11:12 +08:00
/**
* Generated by COWR Sat Apr 04 17:23:04 CST 2020
* TableName: modify_log
* Remarks:
* PrimaryKey: id
*/
public class ModifyLogController extends Controller {
/**
* modify_log
*/
2020-10-18 00:39:17 +08:00
public void find() {
2020-08-07 17:11:12 +08:00
PageParam pp = getBean(PageParam.class, "", true);
renderJson(Result.object(ModifyLogService.me.find(pp)));
}
/**
* modify_log
*/
@Before(ModifyLogPKValidator.class)
2020-10-18 00:39:17 +08:00
public void get() {
2020-08-07 17:11:12 +08:00
ModifyLog model = getModel(ModifyLog.class, "", true); // 忽略不在model中的字段
renderJson(ModifyLogService.me.get(model));
}
/**
* modify_log
*/
2020-10-18 00:39:17 +08:00
public void list() {
2020-08-07 17:11:12 +08:00
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", now().minusDays(TM_TIME) + " 00:00:00");
String etm = get("etm",now() + " 23:59:59");
2020-10-15 12:37:45 +08:00
renderJson(Result.object(ModifyLogService.me.findManualWeight(pp, create_user_name, stm, etm)));
}
2020-08-07 17:11:12 +08:00
}