You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
package com.dsideal.FengHuang.Zjb.Controller;
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsNumericInterface;
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
import com.dsideal.FengHuang.Zjb.Model.ZjbModel;
|
|
import com.jfinal.aop.Before;
|
|
import com.jfinal.core.Controller;
|
|
import com.jfinal.ext.interceptor.GET;
|
|
import com.jfinal.ext.interceptor.POST;
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
import java.util.List;
|
|
|
|
public class ZjbController extends Controller {
|
|
ZjbModel zm = new ZjbModel();
|
|
|
|
@Before({POST.class})
|
|
@IsNumericInterface({"module_id", "page"})
|
|
public void saveModulePage(int module_id, int page, String json) {
|
|
zm.saveModulePage(module_id, page, json);
|
|
renderJson(CommonUtil.returnMessageJson(true, "保存成功!"));
|
|
}
|
|
|
|
@Before({GET.class})
|
|
@IsNumericInterface({"module_id", "page"})
|
|
public void getModulePage(int module_id, int page) {
|
|
String json = zm.getModulePage(module_id, page);
|
|
renderJson(json);
|
|
}
|
|
|
|
@Before({GET.class})
|
|
@IsNumericInterface({"module_id"})
|
|
public void getModulePageFillInfo(int module_id) {
|
|
List<Record> list = zm.getModulePageFillInfo(module_id);
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
}
|
|
} |