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.
|
|
|
|
package com.dsideal.FengHuang.Zjb.Model;
|
|
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.LoginPerson.Model.LoginPersonModel;
|
|
|
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
|
|
|
import com.dsideal.FengHuang.Util.IpUtil;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.plugin.activerecord.SqlPara;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class ZjbModel {
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
功能:删除指定模板下的指定页码内容
|
|
|
|
|
*/
|
|
|
|
|
public void delModulePage(int module_id, int page) {
|
|
|
|
|
String sql = "delete from t_zjb_module_page where module_id=? and page=?";
|
|
|
|
|
Db.update(sql, module_id, page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
功能:保存模块页面的内容
|
|
|
|
|
作者:黄海
|
|
|
|
|
时间:2022-12-26
|
|
|
|
|
*/
|
|
|
|
|
public void saveModulePage(int module_id, int page, String json) {
|
|
|
|
|
delModulePage(module_id, page);
|
|
|
|
|
Record record = new Record();
|
|
|
|
|
record.set("module_id", module_id);
|
|
|
|
|
record.set("page", page);
|
|
|
|
|
record.set("json", json);
|
|
|
|
|
Db.save("t_zjb_module_page", "module_id,page", record);
|
|
|
|
|
}
|
|
|
|
|
}
|