mapper和bridge【el-date-picker】
程序员文章站
2022-03-25 08:13:12
...
一、效果
二、bridge配置代码
{
"form":{
"columns":{
"modifyTime": {
"sortId": 9999,
"alias": "modify_time",
"field": "modifyTime",
"events": {},
"attrs": {
"hidden": "none",//控制页面不用显示
"label": "修改时间",
"type": "datetime",
"format": "yyyy-MM-dd HH:mm:ss",
"value-format": "yyyy-MM-ddTHH:mm:ss"
},
"meta": {
"component": "el-date-picker",
"rowId": "1",
"tabId": "1",
"span": 12,
"prop": "modifyTime",
"fromValue": true
}
}
}
}
}
三、mapper配置代码
{
"columns":{
"modifyTime": {
"fieldSort": 9999,
"extendAlias": "modify_time",
"tableId": 1,
"dataType": "datetime",
"title": "修改时间",
"remark": "修改时间:来至系统",
"guidMethod": "None",
"isRequired": false,
"isData": true,
"filter": {
"isMust": false
},
"field": "modifyTime",
"name": "modify_time",
"alias": "modify_time",
"isDate": true,
"isPrimary": false,
"isIdentity": false
},
"createTime": {
"fieldSort": 9999,
"extendAlias": "create_time",
"tableId": 1,
"dataType": "datetime",
"title": "创建时间",
"remark": "创建时间:新增时候来至系统,修改时候不改变",
"guidMethod": "None",
"isRequired": false,
"isSearch": true,
"isData": true,
"filter": {
"isMust": false
},
"field": "createTime",
"name": "create_time",
"alias": "create_time",
"isDate": true,
"isPrimary": false,
"isIdentity": false
},
//完整配置
"modify_time": {
"title": "修改时间",
"alias": "modify_time",
"isDate": true,
"filter": {
"method": "gt_eq_lt"
},
"searchPropertie": {
"showMethodOut": "kv",
"showMethod": "date",
"format": "yyyy-MM-dd"
},
"editPropertie": {
"showMethod": "date",
"showMethodOut": "kv",
"defaultValue": "_currentDate",
"format": "yyyy-MM-dd HH:mm:ss",
"isRequired": true
},
"pagePropertie": {
"showMethod": "date",
"format": "yyyy-MM-dd HH:mm:ss"
}
}
}
}
推荐阅读
-
Virtual Box虚拟机host-only和bridge配置方法(图文教程)
-
Mybaits 源码解析 (十一)----- 设计模式精妙使用:静态代理和动态代理结合使用:@MapperScan将Mapper接口生成代理注入到Spring
-
扩展mybatis和通用mapper,支持mysql的geometry类型字段
-
MyBatis开发Dao的原始Dao开发和Mapper动态代理开发
-
MyBatis通用Mapper和PageHelper的过程详解
-
如何管理linux设备上的bridge(网桥)和docker bridge
-
通用Mapper和PageHelper入门
-
Mapper中insert和insertSelective区别
-
mapper中String类型传入数据查询和对象传入查询区别
-
Maven 插件生成MyBatis的mapper, xml和Entity类