update
This commit is contained in:
parent
90337d5f0f
commit
7c32fd0dc4
|
|
@ -308,7 +308,7 @@ AUTO_INCREMENT=7
|
|||
-- Records of tfw_role
|
||||
-- ----------------------------
|
||||
BEGIN;
|
||||
INSERT INTO `tfw_role` VALUES ('1', '1', null, '超级管理员', '1', 'administrator', '0'), ('2', '1', '1', '管理员', '7', 'admin', '3'), ('3', '2', '1', '管理员1', '10', 'admin', '2'), ('4', '2', null, '测试', '10', 'test', '0'), ('5', '1', '4', '测试1', '3', 'test', '1'), ('6', '2', '4', '测试2', '10', 'test', '0');
|
||||
INSERT INTO `tfw_role` VALUES ('1', '1', '0', '超级管理员', '1', 'administrator', '0'), ('2', '1', '1', '管理员', '7', 'admin', '3'), ('3', '2', '1', '管理员1', '10', 'admin', '2'), ('4', '2', '0', '测试', '10', 'test', '0'), ('5', '1', '4', '测试1', '3', 'test', '1'), ('6', '2', '4', '测试2', '10', 'test', '0');
|
||||
COMMIT;
|
||||
|
||||
-- ----------------------------
|
||||
|
|
|
|||
|
|
@ -889,10 +889,10 @@ NOCACHE
|
|||
-- ----------------------------
|
||||
-- Records of TFW_ROLE
|
||||
-- ----------------------------
|
||||
INSERT INTO "TFW_ROLE" VALUES ('1', '1', null, '超级管理员', '1', 'administrator', '0');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('1', '1', '0', '超级管理员', '1', 'administrator', '0');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('2', '1', '1', '管理员', '7', 'admin', '1');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('3', '2', '1', '管理员1', '10', 'admin', '1');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('4', '2', null, '测试', '10', 'test', '0');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('4', '2', '0', '测试', '10', 'test', '0');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('5', '1', '4', '测试1', '3', 'test', '1');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('8', '1', '3', '管理员2', '6', 'user', '0');
|
||||
INSERT INTO "TFW_ROLE" VALUES ('6', '2', '4', '测试2', '10', 'test', '0');
|
||||
|
|
|
|||
|
|
@ -16,6 +16,13 @@ import ${packageName}.service.${modelName}Service;
|
|||
${"@"}Service
|
||||
public class ${modelName}ServiceImpl extends BaseService<${modelName}> implements ${modelName}Service{
|
||||
|
||||
${"@"}Override
|
||||
public boolean updateStatus(String ids, Object status) {
|
||||
Paras paras = Paras.create().set("status", status).set("ids", ids.split(","));
|
||||
boolean temp = updateBy("status = #{status}", "id in (#{join(ids)})", paras);
|
||||
return temp;
|
||||
}
|
||||
|
||||
${"@"}Override
|
||||
${"@"}SuppressWarnings("unchecked")
|
||||
public Map<String, Object> findOne(Object id) {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ import ${packageName}.model.${modelName};
|
|||
*/
|
||||
public interface ${modelName}Service extends IService<${modelName}>{
|
||||
|
||||
boolean updateStatus(String ids, Object status);
|
||||
|
||||
Map<String, Object> findOne(Object id);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,16 +35,14 @@
|
|||
}
|
||||
|
||||
|
||||
function btnCallBack(id){
|
||||
if (id == "generate_gencode") {
|
||||
function btnCallBack(btn){
|
||||
if (btn.id == "generate_gencode") {
|
||||
var ids = getGridXls().join(",");
|
||||
var rows = getGridXls().length;
|
||||
if (rows == 0) {
|
||||
layer_alert("请选择一条数据!", "warn");
|
||||
return;
|
||||
}
|
||||
var _this = this;
|
||||
var url= _this.url;
|
||||
layer.confirm("是否确定生成代码?", {
|
||||
icon: 3,
|
||||
btn: ['确定', '取消'] //按钮
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ var exwhere;
|
|||
_this.all[this.id].itemClick();
|
||||
$(this).blur();
|
||||
if (typeof btnCallBack === 'function') {
|
||||
btnCallBack(_this.all[this.id].id);
|
||||
btnCallBack(_this.all[this.id]);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -469,7 +469,7 @@ var exwhere;
|
|||
_this.all[this.id].childItemClick();
|
||||
$(this).blur();
|
||||
if (typeof btnCallBack === 'function') {
|
||||
btnCallBack(_this.all[this.id].id);
|
||||
btnCallBack(_this.all[this.id]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user