12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166 |
- ------ 推送账单推送内容模板表
- CREATE TABLE `tb_pushmodel` (
- `ID` int(11) NOT NULL AUTO_INCREMENT,
- `billType` int(2) DEFAULT NULL COMMENT '账单类型',
- `pushWay` int(2) DEFAULT NULL COMMENT '账单发送方式',
- `pushContent` varchar(1000) DEFAULT '' COMMENT '账单推送内容',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `creatorId` varchar(20) DEFAULT '' COMMENT '创建人',
- `modifier` int(11) DEFAULT NULL COMMENT '修改人',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `isEnabled` int(11) DEFAULT NULL,
- PRIMARY KEY (`ID`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- ----- 推送账单推送具体人员的详情表
- CREATE TABLE `tb_billpush` (
- `ID` int(11) NOT NULL AUTO_INCREMENT,
- `billType` int(2) DEFAULT NULL COMMENT '账单类型',
- `createTime` datetime DEFAULT NULL COMMENT '推送时间',
- `senderId` int(11) DEFAULT NULL COMMENT '发送人',
- `pushModelId` varchar(500) DEFAULT '' COMMENT '模板ID',
- `pushUser1` varchar(100) DEFAULT '' COMMENT '责任人1',
- `pushUser2` varchar(100) DEFAULT '' COMMENT '责任人2',
- `userEmail1` varchar(100) DEFAULT '' COMMENT '责任人1邮件',
- `userEmail2` varchar(100) DEFAULT '' COMMENT '责任人2邮件',
- `userTel1` varchar(100) DEFAULT '' COMMENT '责任人1电话',
- `userTel2` varchar(100) DEFAULT '' COMMENT '责任人2电话',
- `pushAmount` decimal(11,2) DEFAULT NULL COMMENT '账单金额',
- `virtId` int(11) DEFAULT NULL COMMENT '企业Id',
- `isWechat` int(11) DEFAULT NULL,
- `isEmail` int(11) DEFAULT NULL,
- `isMessage` int(11) DEFAULT NULL,
- `wechatData` varchar(500) DEFAULT '' COMMENT '模板ID',
- `emailData` varchar(500) DEFAULT '' COMMENT '责任人1',
- `messageData` varchar(500) DEFAULT '' COMMENT '责任人2',
- `billUpDate` datetime DEFAULT NULL COMMENT '账单截止日',
- `wechatStatus` int(11) DEFAULT '0' COMMENT '微信发送状态0为不成功,1为成功',
- `messageStatus` int(11) DEFAULT '0' COMMENT '短信发送状态0为不成功,1为成功',
- `emailStatus` int(11) DEFAULT '0' COMMENT '邮件发送状态',
- `roomName` varchar(255) DEFAULT '' COMMENT '房间号',
- `openId1` varchar(255) DEFAULT '' COMMENT '负责人1openId',
- `openId2` varchar(255) DEFAULT '' COMMENT '负责人2openId',
- `monthDate` int(2) DEFAULT NULL COMMENT '月份',
- `beginTime` datetime DEFAULT NULL COMMENT '计费区间开始',
- `endTime` datetime DEFAULT NULL COMMENT '计费区间结束',
- PRIMARY KEY (`ID`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- ------- 企业表
- alter table tb_virtualarchitecture add floorIds varchar(500) default '';
- alter table tb_virtualarchitecture add roomIds varchar(500) default '';
- alter table tb_virtualarchitecture add businessImageUrl varchar(500) default '';
- alter table tb_virtualarchitecture add powerAttorneyImageUrl varchar(500) default '';
- alter table tb_virtualarchitecture add powerFaceImageUrl varchar(500) default '';
- alter table tb_virtualarchitecture add powerNationImageUrl varchar(500) default '';
- alter table tb_virtualarchitecture add leaseStatus int default 0;
- alter table tb_virtualarchitecture add isEmail int default 0;
- alter table tb_virtualarchitecture add isWechat int default 0;
- alter table tb_virtualarchitecture add isMessage int default 0;
- alter table tb_virtualarchitecture add COLUMN floorNames varchar(500) DEFAULT '';
- alter table tb_virtualarchitecture add COLUMN roomNames varchar(500) DEFAULT '';
- alter table tb_virtualarchitecture add COLUMN floorAndNames varchar(500) DEFAULT '';
- ------- 员工表
- alter table tb_user add isResponsible int default 1;
- alter table tb_user add isPushPower int default 1;
- alter table tb_user add isReleasePower int default 1;
- alter table tb_user add email varchar(100) default '';
- alter table tb_user add reOrder int default 0;
- ------ 房间表
- CREATE TABLE `tb_roomno` (
- `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
- `floorId` int(11) COMMENT '楼层Id',
- `name` varchar(20) DEFAULT '' COMMENT '房间号',
- `createTime` datetime COMMENT '创建时间',
- `creator` varchar(20) DEFAULT '' COMMENT '创建人',
- `modifier` varchar(20) DEFAULT '' COMMENT '修改人',
- `modifyTime` datetime COMMENT '修改时间',
- `isEnabled` int(11) DEFAULT 0,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='维修类型';
- ------ 楼层表
- CREATE TABLE `tb_floor` (
- `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
- `organizationId` int(11) COMMENT '楼宇',
- `name` varchar(20) DEFAULT '' COMMENT '楼层号',
- `createTime` datetime COMMENT '创建时间',
- `creator` varchar(20) DEFAULT '' COMMENT '创建人',
- `modifier` varchar(20) DEFAULT '' COMMENT '修改人',
- `modifyTime` datetime COMMENT '修改时间',
- `isEnabled` int(11) DEFAULT 1,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='楼层';
- ------企业负责人信息表
- CREATE TABLE `tb_virtuser` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `virId` int(11) DEFAULT '0' COMMENT '企业Id',
- `userId` int(11) DEFAULT '0' COMMENT '用户ID',
- `reorder` int(11) DEFAULT '0' COMMENT '1:负责人1;2:负责人2',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- -----------企业入驻-水电表
- CREATE TABLE `tb_watermeter` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `floorId` int(11) DEFAULT '0' COMMENT '楼层',
- `roomId` int(11) DEFAULT '0' COMMENT '房间',
- `wateReading` varchar(100) DEFAULT '' COMMENT '水表读数',
- `wateImageUrl` varchar(500) DEFAULT '' COMMENT '水表图片存储地址',
- `materImageUrl` varchar(500) DEFAULT '' COMMENT '电表图片存储地址',
- `sourseId` int(11) DEFAULT '0' COMMENT '来源单据ID',
- `enterType` int(11) DEFAULT '0' COMMENT '企业状态类型(1入驻2迁出)',
- `creator` int(11) DEFAULT '0' COMMENT '创建人',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- `materReading` varchar(100) DEFAULT '' COMMENT '电表读数',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- ----------企业入驻配置
- CREATE TABLE `tb_model` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `content` varchar(5000) DEFAULT '' COMMENT '内容',
- `type` varchar(2) DEFAULT '' COMMENT '类型(1代表入驻配置,2代表入驻须知,3代表迁出配置,4代表迁出须知)',
- `creator` int(11) DEFAULT NULL COMMENT '创建人',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `modifier` int(11) DEFAULT NULL COMMENT '修改人',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- ------企业入驻---------------OLD
- CREATE TABLE `tb_enterprise` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `enterNumber` varchar(100) NOT NULL DEFAULT '' COMMENT '企业入驻编码',
- `orgId` varchar(100) DEFAULT '' COMMENT '楼宇id',
- `floorIds` varchar(200) DEFAULT '' COMMENT '楼层Ids',
- `roomIds` varchar(200) DEFAULT '' COMMENT '房间号Ids',
- `virName` varchar(200) DEFAULT '' COMMENT '企业名称',
- `applyName` varchar(200) DEFAULT '' COMMENT '申请人',
- `applyTel` varchar(200) DEFAULT '' COMMENT '申请电话',
- `remanName1` varchar(200) DEFAULT '' COMMENT '负责人1名称',
- `remanTel1` varchar(200) DEFAULT '' COMMENT '负责人1电话',
- `remanEmail1` varchar(200) DEFAULT '' COMMENT '负责人1邮件',
- `isPushPower1` int(11) DEFAULT '0' COMMENT '物品放行(负责人1)',
- `isReleasePower1` int(11) DEFAULT '0' COMMENT '推送账单(负责人1)',
- `remanName2` varchar(200) DEFAULT '' COMMENT '负责人2姓名',
- `remanTel2` varchar(200) DEFAULT '' COMMENT '负责人2电话',
- `remanEmail2` varchar(200) DEFAULT '' COMMENT '负责人2邮件',
- `isPushPower2` int(11) DEFAULT '0' COMMENT '物品放行(负责人2)',
- `isReleasePower2` int(11) DEFAULT '0' COMMENT '推送账单(负责人2)',
- `remark` varchar(500) DEFAULT '' COMMENT '备注',
- `isWechat` int(11) DEFAULT '0' COMMENT '是否微信',
- `isMessage` int(11) DEFAULT '0' COMMENT '是否短信',
- `isEmail` int(11) DEFAULT '0' COMMENT '是否邮箱',
- `businessImageUrl` varchar(255) DEFAULT '' COMMENT '企业营业执照照片',
- `powerAttorneyImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表授权委托书',
- `powerFaceImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表身份证人面照',
- `powerNationImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表身份证国徽照',
- `customerService` varchar(255) DEFAULT '' COMMENT '跟进客服人员',
- `engPerson` varchar(255) DEFAULT '' COMMENT '跟进工程人员',
- `otherRecord` varchar(500) DEFAULT '' COMMENT '其他记录',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `modifier` int(11) DEFAULT '0' COMMENT '修改人',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- `status` varchar(2) DEFAULT '0' COMMENT '状态',
- `repairNumber` varchar(255) DEFAULT '' COMMENT '维修单编码',
- `roomNames` varchar(255) DEFAULT '' COMMENT '房间号名称',
- `floorNames` varchar(255) DEFAULT '' COMMENT '楼层名称',
- `creator` int(11) DEFAULT '0' COMMENT '创建人',
- `emigType` varchar(11) DEFAULT '' COMMENT '迁出类型',
- `emigReason` varchar(11) DEFAULT '' COMMENT '迁出原因',
- `state` varchar(11) DEFAULT '' COMMENT '状态(1企业入驻2企业迁出)',
- `virId` int(11) DEFAULT '0' COMMENT '企业ID',
- `emigNewWay` varchar(2) DEFAULT '' COMMENT '企业迁出发起方式(1微信2app)',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- -------------------新的企业入驻(迁出)表--------------NEW
- CREATE TABLE `tb_enterprise` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `enterNumber` varchar(100) NOT NULL DEFAULT '' COMMENT '企业入驻编码',
- `orgId` varchar(100) DEFAULT '' COMMENT '楼宇id',
- `floorIds` varchar(200) DEFAULT '' COMMENT '楼层Ids',
- `roomIds` varchar(200) DEFAULT '' COMMENT '房间号Ids',
- `virName` varchar(200) DEFAULT '' COMMENT '企业名称',
- `applyName` varchar(200) DEFAULT '' COMMENT '申请人',
- `applyTel` varchar(200) DEFAULT '' COMMENT '申请电话',
- `remanName1` varchar(200) DEFAULT '' COMMENT '负责人1名称',
- `remanTel1` varchar(200) DEFAULT '' COMMENT '负责人1电话',
- `remanEmail1` varchar(200) DEFAULT '' COMMENT '负责人1邮件',
- `isPushPower1` int(11) DEFAULT '0' COMMENT '物品放行(负责人1)',
- `isReleasePower1` int(11) DEFAULT '0' COMMENT '推送账单(负责人1)',
- `remanName2` varchar(200) DEFAULT '' COMMENT '负责人2姓名',
- `remanTel2` varchar(200) DEFAULT '' COMMENT '负责人2电话',
- `remanEmail2` varchar(200) DEFAULT '' COMMENT '负责人2邮件',
- `isPushPower2` int(11) DEFAULT '0' COMMENT '物品放行(负责人2)',
- `isReleasePower2` int(11) DEFAULT '0' COMMENT '推送账单(负责人2)',
- `remark` varchar(500) DEFAULT '' COMMENT '备注',
- `isWechat` int(11) DEFAULT '0' COMMENT '是否微信',
- `isMessage` int(11) DEFAULT '0' COMMENT '是否短信',
- `isEmail` int(11) DEFAULT '0' COMMENT '是否邮箱',
- `businessImageUrl` varchar(255) DEFAULT '' COMMENT '企业营业执照照片',
- `powerAttorneyImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表授权委托书',
- `powerFaceImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表身份证人面照',
- `powerNationImageUrl` varchar(255) DEFAULT '' COMMENT '法人代表身份证国徽照',
- `customerService` varchar(255) DEFAULT '' COMMENT '跟进客服人员',
- `engPerson` varchar(255) DEFAULT '' COMMENT '跟进工程人员',
- `otherRecord` varchar(500) DEFAULT '' COMMENT '其他记录',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `modifier` int(11) DEFAULT '0' COMMENT '修改人',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- `status` varchar(2) DEFAULT '0' COMMENT '状态',
- `repairNumber` varchar(255) DEFAULT '' COMMENT '维修单编码',
- `roomNames` varchar(255) DEFAULT '' COMMENT '房间号名称',
- `floorNames` varchar(255) DEFAULT '' COMMENT '楼层名称',
- `creator` int(11) DEFAULT '0' COMMENT '创建人',
- `emigType` varchar(11) DEFAULT '' COMMENT '迁出类型',
- `emigReason` varchar(11) DEFAULT '' COMMENT '迁出原因',
- `state` varchar(11) DEFAULT '' COMMENT '状态(1企业入驻2企业迁出)',
- `virId` int(11) DEFAULT '0' COMMENT '企业ID',
- `emigNewWay` varchar(2) DEFAULT '' COMMENT '企业迁出发起方式(1微信2app)',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- --------审批表
- CREATE TABLE `tb_audit_enterprise` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `content` varchar(255) DEFAULT '' COMMENT '审批内容',
- `remark` varchar(500) DEFAULT '' COMMENT '备注',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `creator` int(11) DEFAULT NULL COMMENT '创建人',
- `type` varchar(2) DEFAULT '' COMMENT '类型1企业入驻2企业迁出',
- `sourseId` int(11) DEFAULT NULL COMMENT '来源单据Id(企业入驻/企业迁出单ID)',
- `reasonType` int(11) DEFAULT '0' COMMENT '审批操作类型(1通过0拒绝)',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- ------------------账单推送
- alter table tb_billpush add monthDate int default 0;
- alter table tb_billpush add beginTime datetime default NULL;
- alter table tb_billpush add endTime datetime default NULL;
- --------------------企业迁出结算表
- CREATE TABLE `tb_enter_settlement` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `settlementImageUrl` varchar(500) DEFAULT '' COMMENT '结算表图片地址',
- `remark` varchar(255) DEFAULT '' COMMENT '备注',
- `enterId` int(11) DEFAULT '0' COMMENT '迁出Id',
- `creator` varchar(11) DEFAULT '' COMMENT '创建人',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `modifier` varchar(11) DEFAULT '' COMMENT '修改人',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `isEnabled` varchar(2) DEFAULT '' COMMENT '是否有效',
- `amount` decimal(14,2) DEFAULT '0.00' COMMENT '结算金额',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- alter table tb_enter_settlement add amount decimal(14,2) default 0;
- -----------------修改维修单-------------------------
- alter table tb_repair_bills add meetingTime datetime default NULL;
- -----------------修改企业入驻单--------------------
- alter table tb_enterprise add evaluate varchar(2) DEFAULT '';
- ---------2018-06-26--------------------------
- -------------------修改角色表------------------------
- alter table tb_app_role add SYSCODE varchar(255) DEFAULT '';
- alter table tb_app_role add ISINITIALIZATION int(11) unsigned zerofill DEFAULT NULL;
- ----------------------修改企业--------------------------------
- alter table tb_virtualarchitecture add freeLenTime varchar(255) DEFAULT '0';
- alter table tb_virtualarchitecture add remainderTime varchar(255) DEFAULT '0';
- alter table tb_app_role add FLOOR_REPAIR int(11) unsigned zerofill DEFAULT NULL;
- alter table tr_app_user_org add ROLE_ID int(11) unsigned zerofill DEFAULT NULL;
- alter table tr_app_user_floor add role_id int(11) unsigned zerofill DEFAULT NULL;
- alter table tr_app_user_dept add ROLE_ID int(11) unsigned zerofill DEFAULT NULL;
- alter table tr_app_user_company add ROLE_ID int(11) unsigned zerofill DEFAULT NULL;
- alter table tb_user_repair_type add role_id int(11) unsigned zerofill DEFAULT NULL;
- CREATE TABLE `tb_bill_record` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `type` int(11) DEFAULT NULL COMMENT '单据类型',
- `sourId` int(11) DEFAULT NULL COMMENT '单据id',
- `operation` varchar(255) DEFAULT '' COMMENT '操作',
- `operationType` int(11) DEFAULT NULL COMMENT '操作类型',
- `represent` varchar(255) DEFAULT '' COMMENT '操作描述',
- `creator` int(11) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `remark` varchar(255) DEFAULT '' COMMENT '备注',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- alter table tb_floor add partOrgID varchar(50) DEFAULT '';
- ---------------------洗车项目2018-08-09---------------------------
- -- 洗车订单表
- CREATE TABLE `tb_car_washorder` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orderNo` varchar(255) DEFAULT '' COMMENT '订单编码',
- `createTime` datetime DEFAULT NULL,
- `creator` bigint(20) DEFAULT NULL,
- `source` varchar(2) DEFAULT '1' COMMENT '来源(1微信2pc)',
- `preOrder` bigint(20) DEFAULT NULL COMMENT '下单人',
- `status` varchar(2) DEFAULT '0' COMMENT '状态(1已提交2已接单(已派单)3洗车中4已完成洗车5已转单6已取消)',
- `operaManagerId` varchar(200) DEFAULT '' COMMENT '操作主管',
- `carWasherId` varchar(200) DEFAULT '' COMMENT '洗车员',
- `payState` varchar(2) DEFAULT '0' COMMENT '支付状态',
- `custId` bigint(20) DEFAULT NULL COMMENT '用户id',
- `parkSpace` varchar(255) DEFAULT '' COMMENT '停车位',
- `keySpace` varchar(255) DEFAULT '' COMMENT '钥匙位置',
- `modifier` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `carNumber` varchar(255) DEFAULT '' COMMENT '车牌号',
- PRIMARY KEY (`id`),
- KEY `custId` (`custId`),
- CONSTRAINT `custId` FOREIGN KEY (`custId`) REFERENCES `tb_customer` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 用户表
- CREATE TABLE `tb_customer` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `userName` varchar(255) DEFAULT '' COMMENT '名称',
- `mobile` varchar(255) DEFAULT '' COMMENT '电话号码',
- `dept` varchar(255) DEFAULT '' COMMENT '部门',
- `position` varchar(255) DEFAULT '' COMMENT '职位',
- `carNumber` varchar(255) DEFAULT '' COMMENT '车牌号',
- `carType` varchar(255) DEFAULT '' COMMENT '车型',
- `isEnabled` varchar(2) DEFAULT '0' COMMENT '是否有效',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `parkSpace` varchar(255) DEFAULT '' COMMENT '停车位置',
- `serialNumber` bigint(20) DEFAULT '0' COMMENT '序号',
- `openId` varchar(255) DEFAULT '' COMMENT '关联微信用户',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 用户评价表
- CREATE TABLE `tb_user_evaluate` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orderId` bigint(20) DEFAULT NULL COMMENT '订单id',
- `openId` varchar(200) DEFAULT '' COMMENT '评价openId',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `comment` varchar(500) DEFAULT '' COMMENT '评语',
- `star` int(2) DEFAULT NULL COMMENT '星级',
- `service_impression` varchar(255) DEFAULT '' COMMENT '员工印象',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 设置名额
- CREATE TABLE `tb_pro_set` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `projectId` varchar(255) DEFAULT '' COMMENT '项目id',
- `quota` int(11) DEFAULT NULL COMMENT '名额',
- `remark` varchar(255) DEFAULT '' COMMENT '备注',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 订单和额外服务中间表
- CREATE TABLE `tb_order_extra_service` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orderId` bigint(20) DEFAULT NULL COMMENT '洗车订单id',
- `extraId` bigint(20) DEFAULT NULL COMMENT '额外服务id',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `extraId` (`extraId`),
- KEY `orderId` (`orderId`),
- CONSTRAINT `extraId` FOREIGN KEY (`extraId`) REFERENCES `tb_extra_service` (`id`),
- CONSTRAINT `orderId` FOREIGN KEY (`orderId`) REFERENCES `tb_car_washorder` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 额外服务表
- CREATE TABLE `tb_extra_service` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `proSetId` bigint(255) DEFAULT NULL COMMENT '项目设置ID',
- `content` varchar(500) DEFAULT '' COMMENT '内容',
- `amount` decimal(14,2) unsigned DEFAULT '0.00' COMMENT '金额',
- `remark` varchar(255) DEFAULT '' COMMENT '备注',
- `isEnabled` varchar(2) DEFAULT '1' COMMENT '是否有效',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `serviceName` varchar(255) DEFAULT '' COMMENT '服务名称',
- PRIMARY KEY (`id`),
- KEY `proSetId` (`proSetId`),
- CONSTRAINT `proSetId` FOREIGN KEY (`proSetId`) REFERENCES `tb_pro_set` (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
- ------------------ 修改日志表的字段类型 -------------------
- ALTER TABLE tb_bill_record MODIFY COLUMN id bigint(20);
- ALTER TABLE tb_bill_record MODIFY COLUMN sourId bigint(20);
- ALTER TABLE tb_bill_record MODIFY COLUMN creator bigint(20);
- --------------------企业账号-----------------------------------------
- alter table tb_virtualarchitecture add COLUMN settleType int(2) DEFAULT 0 COMMENT '企业结算方式(1现结2月结)';
- CREATE TABLE `tb_vir_account` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `virId` int(20) DEFAULT NULL COMMENT '企业id',
- `virAccount` varchar(255) DEFAULT '' COMMENT '企业账号',
- `password` varchar(255) DEFAULT '' COMMENT '密码',
- `creator` varchar(255) DEFAULT '',
- `createTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `isEnable` varchar(2) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `virId` (`virId`),
- CONSTRAINT `virId` FOREIGN KEY (`virId`) REFERENCES `tb_virtualarchitecture` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_user_account` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `accountId` bigint(20) DEFAULT NULL,
- `isOnline` varchar(2) DEFAULT '' COMMENT '是否在线',
- `creator` varchar(255) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `openId` varchar(255) DEFAULT '' COMMENT '微信用户的openId',
- `userId` varchar(255) DEFAULT '' COMMENT '微信用户所绑定的userId',
- PRIMARY KEY (`id`),
- KEY `accountId` (`accountId`),
- CONSTRAINT `accountId` FOREIGN KEY (`accountId`) REFERENCES `tb_vir_account` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- ------------------------2018-08-24----------------------------
- alter table tb_floor change column organizationId buildId int(11);
- ---------------------2018-08-30
- alter table tb_billpush add COLUMN virName varchar(200) DEFAULT '';
- alter table tb_billpush add COLUMN virNumber varchar(200) DEFAULT '';
- alter table tb_billpush add COLUMN buildName varchar(200) DEFAULT '';
- alter table tb_billpush add COLUMN orgId varchar(200) DEFAULT '';
- alter table tb_pushmodel add COLUMN orgId varchar(200) DEFAULT '';
- ALTER TABLE `tb_vir_account` MODIFY COLUMN `virAccount` VARCHAR(255) BINARY;
- ALTER TABLE `tb_vir_account` MODIFY COLUMN `password` VARCHAR(255) BINARY;
- ALTER TABLE `tb_app_user` MODIFY COLUMN `USERNAME` VARCHAR(50) BINARY;
- ALTER TABLE `tb_app_user` MODIFY COLUMN `PASSWORD` VARCHAR(128) BINARY;
- ALTER TABLE tb_app_notice MODIFY COLUMN summary_info text;
- ------------------------2018-09-06---------------------
- CREATE TABLE `tb_app_useversion` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `useCode` varchar(50) DEFAULT '' COMMENT '应用编码',
- `useName` varchar(50) DEFAULT '' COMMENT '应用名称',
- `versionCode` varchar(20) DEFAULT '' COMMENT '版本号',
- `usePlatform` varchar(20) DEFAULT '' COMMENT '应用平台(1安卓2ios)',
- `versionName` varchar(20) DEFAULT '' COMMENT '版本名称',
- `customer` varchar(50) DEFAULT '' COMMENT '所属客户',
- `strMessage` varchar(800) DEFAULT '' COMMENT '更新内容',
- `status` varchar(1) DEFAULT '' COMMENT '状态(1可用2不可用)',
- `updateURL` varchar(500) DEFAULT '' COMMENT '更新链接',
- `creator` varchar(20) DEFAULT '' COMMENT '创建人',
- `createTime` datetime DEFAULT NULL COMMENT '发布时间',
- `updateFlag` varchar(1) DEFAULT '' COMMENT '是否强制更新(1强制更新2不强制更新)',
- `remark` varchar(200) DEFAULT '' COMMENT '备注',
- `minimumVersion` varchar(20) DEFAULT '' COMMENT '支持最低版本',
- `isLast` varchar(1) DEFAULT '' COMMENT '是否最新记录(1是最新2不是)',
- `clientId` bigint(20) DEFAULT NULL COMMENT '所属客户数据字典所选id',
- `useCodeId` bigint(20) DEFAULT NULL COMMENT '应用编码数据字典id',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- ------------------------2018-09-06---------------------
- ------------------------2018-09-18---------------------
- alter table tb_customer add COLUMN orgId varchar(200) DEFAULT '';
- alter table tb_car_washorder add COLUMN orgId varchar(200) DEFAULT '';
- ------------------------2018-09-18---------------------
- CREATE TABLE `tb_dorm_roomerinfo` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `userName` varchar(255) DEFAULT '' COMMENT '用户名',
- `sex` varchar(2) DEFAULT '' COMMENT '性别',
- `workNo` varchar(255) DEFAULT '' COMMENT '工号',
- `IDcard` varchar(255) DEFAULT '' COMMENT '身份证',
- `mobile` varchar(255) DEFAULT '' COMMENT '电话号码',
- `openId` varchar(255) DEFAULT '' COMMENT '关联微信用户',
- `orgId` varchar(50) DEFAULT '' COMMENT '项目id',
- `buildId` varchar(50) DEFAULT '' COMMENT '楼宇id',
- `floorId` varchar(50) DEFAULT '' COMMENT '楼层id',
- `roomId` varchar(50) DEFAULT '' COMMENT '房间号id',
- `bedNo` varchar(50) DEFAULT '' COMMENT '床号',
- `status` varchar(2) DEFAULT '' COMMENT '状态(1在宿2退宿)',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(50) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(50) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `build` varchar(255) DEFAULT '' COMMENT '楼宇名称',
- `floor` varchar(255) DEFAULT '' COMMENT '楼层名称',
- `room` varchar(255) DEFAULT '' COMMENT '房间号名称',
- `apartment` varchar(255) DEFAULT '' COMMENT '公寓',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='宿舍信息管理表';
- CREATE TABLE `tb_dorm_checkout` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `number` varchar(50) DEFAULT '' COMMENT '编码',
- `status` varchar(2) DEFAULT '' COMMENT '单据状态(1待审核2待放行3已放行4已拒绝)',
- `dormId` bigint(20) DEFAULT NULL COMMENT '用户入宿信息id',
- `goodsInfo` varchar(500) DEFAULT '' COMMENT '物品信息',
- `bedEmptyImage` varchar(500) DEFAULT '' COMMENT '床头置空照片',
- `bedLabelImage` varchar(500) DEFAULT '' COMMENT '床头标签照片',
- `otherImage` varchar(2000) DEFAULT '' COMMENT '其他物品照片',
- `roomerId` varchar(50) DEFAULT '' COMMENT '舍友id',
- `roomieNo` varchar(50) DEFAULT '' COMMENT '舍友工号',
- `roomieImage` varchar(500) DEFAULT '' COMMENT '设有照片',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(50) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(50) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `dormId` (`dormId`) USING BTREE,
- CONSTRAINT `dormId` FOREIGN KEY (`dormId`) REFERENCES `tb_dorm_roomerinfo` (`id`) ON UPDATE NO ACTION
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='退宿申请表';
- CREATE TABLE `tb_dorm_release` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `sourId` bigint(20) DEFAULT NULL COMMENT '来源单据id(退宿申请id)',
- `status` varchar(2) DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `releaseTime` datetime DEFAULT NULL COMMENT '放行时间',
- `releaseMan` varchar(255) DEFAULT '' COMMENT '放行人',
- `releaseResult` varchar(255) DEFAULT '' COMMENT '放行结果',
- `releaseReason` varchar(500) DEFAULT '' COMMENT '放行意见',
- `releaseGoods` varchar(255) DEFAULT '' COMMENT '放行物品',
- `releaseImages` varchar(500) DEFAULT '' COMMENT '放行图片',
- PRIMARY KEY (`id`),
- KEY `sourId` (`sourId`) USING BTREE,
- CONSTRAINT `sourId` FOREIGN KEY (`sourId`) REFERENCES `tb_dorm_checkout` (`id`) ON UPDATE NO ACTION
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -----------------------------------------------宿舍信息管理表功能(2018-09-27)-------------------------
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES (NULL, '宿舍管理', '', NULL, '-1', NULL, NULL, '2018-09-20', '1', '248', '1');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES (NULL, '条约配置', 'admin/dorm/jumpTreatyAllocation?funcid=251', NULL, '-1', NULL, NULL, '2018-09-21', '1', '251', '0');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES (NULL, '宿舍信息管理', 'admin/dorm/jumpDormitoryInfor?funcid=252', NULL, '-1', NULL, NULL, '2018-09-21', '1', '252', '0');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES (NULL, '退宿审核管理', 'admin/dorm/jumpRetreatAudit?funcid=253', NULL, '-1', NULL, NULL, '2018-09-21', '1', '253', '0');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES (NULL, '宿舍管理(PC)', '', NULL, '-1', NULL, NULL, '2018-09-26', '1', '254', '0');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES ('7001', '扫码放行(宿管app)', '', NULL, '-1', NULL, NULL, '2018-09-27', '1', '255', '1');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES ('7002', '放行历史(宿管app)', '', NULL, '-1', NULL, NULL, '2018-09-27', '1', '256', '1');
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`)
- VALUES ('7000', '宿舍管理审核', '', NULL, '-1', NULL, NULL, '2018-09-27', '1', '257', '1');
- ----------------------------------------------宿舍信息管理表菜单(2018-09-27)--------------------------
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '宿舍管理', (select id from tb_app_function where FUNCTION_NAME='宿舍管理' ), '326', '0', 'APP宿舍管理菜单', '80', SYSDATE(), NULL, '1', '/app/image/super/index_dorm_manage.png', 'APP_MENU_DORM_MANAGE');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '宿舍管理', (select id from tb_app_function where FUNCTION_NAME='宿舍管理PC' ), '329', '0', '宿舍管理(pc)', NULL, SYSDATE(), NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '条约配置', (select id from tb_app_function where FUNCTION_NAME='条约配置' ), '330', (select id from tb_app_menu where DESCRIPTION='宿舍管理(pc)' and MENU_NAME='宿舍管理' ), '条约配置(pc)', NULL, SYSDATE(), NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '宿舍信息管理', (select id from tb_app_function where FUNCTION_NAME='宿舍信息管理' ), '331', (select id from tb_app_menu where DESCRIPTION='宿舍管理(pc)' and MENU_NAME='宿舍管理' ), '宿舍信息管理(pc)', NULL, SYSDATE(), NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '退宿审核管理', (select id from tb_app_function where FUNCTION_NAME='退宿审核管理' ), '332', (select id from tb_app_menu where DESCRIPTION='宿舍管理(pc)' and MENU_NAME='宿舍管理' ), '退宿审核管理(pc)', NULL, SYSDATE(), NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '扫码放行', (select id from tb_app_function where FUNCTION_NAME='扫码放行(宿管app)' ), '340', (select id from tb_app_menu where DESCRIPTION='APP宿舍管理菜单' and MENU_NAME='宿舍管理' ), '宿舍管理扫码放行APP', NULL, SYSDATE(), NULL, '1', '/app/image/super/ic_object_release.png', 'APP_MENU_DORM_SCANRELEASE');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '放行历史', (select id from tb_app_function where FUNCTION_NAME='放行历史(宿管app)' ), '341', (select id from tb_app_menu where DESCRIPTION='APP宿舍管理菜单' and MENU_NAME='宿舍管理' ), '宿舍管理放行历史APP', NULL,SYSDATE(), NULL, '1', '/app/image/super/ic_today_release.png', 'APP_MENU_DORM_RELEASEHISTORY');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` ( `MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ( '宿舍管理审核', (select id from tb_app_function where FUNCTION_NAME='宿舍管理审核' ), '342', (select id from tb_app_menu where DESCRIPTION='APP宿舍管理菜单' and MENU_NAME='宿舍管理' ), '宿舍管理审核APP', NULL, SYSDATE(), NULL, '1', '', 'APP_MENU_DORM_RELEASE_MANAGER');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- --------------------------------------2018-10-10-------------------------------------------------------
- alter table tb_user_account add COLUMN orgId varchar(200) DEFAULT '' COMMENT '项目id';
- alter table tb_vir_account add COLUMN orgId varchar(200) DEFAULT '' COMMENT '项目id';
- alter table tb_dorm_checkout add COLUMN orgId varchar(200) DEFAULT '' COMMENT '项目id';
- --------------------------------------2018-10-11------------------------------------------------------------
- alter table tb_user_evaluate add COLUMN evaluateImages varchar(2000) DEFAULT '' COMMENT '评价图片';
- alter table tb_user_evaluate add COLUMN type varchar(2) DEFAULT '' COMMENT '单据类型(1洗车评价2订餐评价)';
- -----------------------------------2018-10-12-----企业账号更新项目---------------------
- update tb_vir_account v set v.orgId=(select vir.organizationId from tb_virtualarchitecture vir
- where vir.id=v.virId);
- update tb_user_account v set v.orgId=(select vir.orgId from tb_vir_account vir
- where vir.id=v.accountId);
- -----------------------------------2018-10-16-----------------------------
- ALTER TABLE tb_bill_record MODIFY COLUMN operation text;
- ALTER TABLE tb_bill_record MODIFY COLUMN represent text;
- ALTER TABLE tb_bill_record MODIFY COLUMN remark text;
- -----------------------------------2018-10-17-----------------------------
- ALTER TABLE tb_model MODIFY COLUMN content text;
- -- 2018-10-17--------订餐系统----------------------
- CREATE TABLE `tb_consumer` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `loginName` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `userName` varchar(255) DEFAULT '' COMMENT '姓名',
- `dept` varchar(255) DEFAULT '' COMMENT '部门',
- `mobile` varchar(255) DEFAULT '' COMMENT '手机号',
- `address` varchar(255) DEFAULT '' COMMENT '送餐地址',
- `roleType` varchar(2) DEFAULT '' COMMENT '类型(1管理员2普通用户)',
- `orgId` varchar(255) DEFAULT NULL,
- `openId` varchar(255) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_meal` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `mealName` varchar(255) DEFAULT '' COMMENT '餐品名',
- `spec` varchar(2) DEFAULT '' COMMENT '规格(1单品、2三菜一汤、3三菜一汤加水果)',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `mealDescribe` varchar(255) DEFAULT '' COMMENT '餐品描述',
- `deliveryTimeStr` varchar(255) DEFAULT '' COMMENT '送餐时间',
- `supplyType` varchar(2) DEFAULT '' COMMENT '供应类型(1、长期有效2按具体时间供应)',
- `supplyTime` varchar(255) DEFAULT '' COMMENT '供应时间(供应类型为2的时候才有值)',
- `status` varchar(2) DEFAULT '' COMMENT '状态(1上架2下架)',
- `mealImages` varchar(2000) DEFAULT '' COMMENT '餐品图片',
- `orgId` varchar(11) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_mealcar` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `mealId` bigint(20) NOT NULL COMMENT '餐品id',
- `mealName` varchar(255) DEFAULT '' COMMENT '餐品名',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `foodCount` int(14) DEFAULT NULL COMMENT '份数',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_order_dinner` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `number` varchar(255) DEFAULT '' COMMENT '编码',
- `status` varchar(2) DEFAULT '' COMMENT '状态(1待送餐2待评价3已完成4已取消)',
- `orgId` varchar(255) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `star` int(2) DEFAULT NULL COMMENT '星级',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_order_dinner_info` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orderId` bigint(20) DEFAULT NULL COMMENT '订单id',
- `mealId` bigint(20) DEFAULT NULL COMMENT '餐品id',
- `mealName` varchar(255) DEFAULT '' COMMENT '餐品名',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `foodCount` int(14) DEFAULT NULL COMMENT '份数',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `stapleFoodStr` varchar(255) DEFAULT '' COMMENT '主食名字',
- `orgId` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `dinner_orderId` (`orderId`),
- CONSTRAINT `dinner_orderId` FOREIGN KEY (`orderId`) REFERENCES `tb_order_dinner` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- 2018-10-23 添加订餐功能、菜单
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '订餐管理', '', NULL, '-1', NULL, NULL, '2018-10-23', '1', '259', '0', NULL);
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '餐品管理', 'admin/dinner/jumpMealList?funcid=260', NULL, '-1', NULL, NULL, '2018-10-23', '1', '260', '0', NULL);
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '订单管理', 'admin/dinner/jumpOrderDinnerList?funcid=261', NULL, '-1', NULL, NULL, '2018-10-23', '1', '261', '0', NULL);
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`, `LASTUPDATEBY`, `LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '账号管理', 'admin/dinner/jumpConsumerList?funcid=262', NULL, '-1', NULL, NULL, '2018-10-23', '1', '262', '0', NULL);
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('订餐管理', (select id from tb_app_function where FUNCTION_NAME='订餐管理' ), '357', '0', '订餐管理(PC)', NULL, '2018-10-23 17:28:30', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('餐品管理', (select id from tb_app_function where FUNCTION_NAME='餐品管理' ), '359', (select id from tb_app_menu where DESCRIPTION='订餐管理(PC)' and MENU_NAME='订餐管理' ), '餐品管理(PC)', NULL, '2018-10-23 17:29:47', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('订单管理', (select id from tb_app_function where FUNCTION_NAME='订单管理' ), '360', (select id from tb_app_menu where DESCRIPTION='订餐管理(PC)' and MENU_NAME='订餐管理' ), '订单管理(PC)', NULL, '2018-10-23 17:30:11', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('账号管理', (select id from tb_app_function where FUNCTION_NAME='账号管理' ), '361', (select id from tb_app_menu where DESCRIPTION='订餐管理(PC)' and MENU_NAME='订餐管理' ), '账号管理(PC)', NULL, '2018-10-23 17:30:43', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- -- 2018-10-29 修改订餐系统账号密码区分大小写
- ALTER TABLE `tb_consumer` MODIFY COLUMN `loginName` VARCHAR(255) BINARY;
- ALTER TABLE `tb_consumer` MODIFY COLUMN `password` VARCHAR(255) BINARY;
- --------------2018-10-31 添加订餐功能、菜单(修改为分权限的功能后)
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '订餐管理', '', '0', '0', '316', '2018-10-31', '1', NULL, '0', 'pc:dinner');
- update tb_app_function set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '餐品管理', 'admin/dinner/jumpMealList?funcid=317', '1', '310', '317', '2018-10-31', '1', '317', '0', 'pc:dinner:products');
- update tb_app_function set TREECODE=last_insert_id(),URL='admin/dinner/jumpMealList?funcid='+last_insert_id(),ORDER_NUMBER=last_insert_id(),PARENTCODE=(select id from tb_app_function where FUNCTION_NAME='订餐管理' and PERMS='pc:dinner' ) where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '订单管理', 'admin/dinner/jumpOrderDinnerList?funcid=318', '1', '310', '318', '2018-10-31', '1', '318', '0', 'pc:dinner:order');
- update tb_app_function set TREECODE=last_insert_id(),URL='admin/dinner/jumpOrderDinnerList?funcid='+last_insert_id(),ORDER_NUMBER=last_insert_id(),PARENTCODE=(select id from tb_app_function where FUNCTION_NAME='订餐管理' and PERMS='pc:dinner' ) where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_function` (`SYSTEMCODE`, `FUNCTION_NAME`, `URL`, `RIGHT_TYPE`, `PARENTCODE`, `TREECODE`,`LASTUPDATETIME`, `STATUS`, `ORDER_NUMBER`, `IS_APP`, `PERMS`)
- VALUES (NULL, '账号管理', 'admin/dinner/jumpConsumerList?funcid=319', '1','310', '319', '2018-10-31', '1', '319', '0', 'pc:dinner:account');
- update tb_app_function set TREECODE=last_insert_id(),URL='admin/dinner/jumpConsumerList?funcid='+last_insert_id(),ORDER_NUMBER=last_insert_id(),PARENTCODE=(select id from tb_app_function where FUNCTION_NAME='订餐管理' and PERMS='pc:dinner' ) where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('订餐管理', (select id from tb_app_function where FUNCTION_NAME='订餐管理' ), '357', '0', '订餐管理(PC)', NULL, '2018-10-23 17:28:30', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id() where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('餐品管理', (select id from tb_app_function where FUNCTION_NAME='餐品管理' ), '359', '', '餐品管理(PC)', NULL, '2018-10-23 17:29:47', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id(),PARENTCODE='330'
- where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('订单管理', (select id from tb_app_function where FUNCTION_NAME='订单管理' ), '360', '', '订单管理(PC)', NULL, '2018-10-23 17:30:11', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id(),PARENTCODE='330'
- where id=(select LAST_INSERT_ID());
- INSERT INTO `tb_app_menu` (`MENU_NAME`, `FUNCTION_ID`, `TREECODE`, `PARENTCODE`, `DESCRIPTION`, `ORDER_NUMBER`, `CREATE_TIME`, `REMARK`, `IS_APP`, `ICON_URL`, `MENU_CODE`)
- VALUES ('账号管理', (select id from tb_app_function where FUNCTION_NAME='账号管理' ), '361', '', '账号管理(PC)', NULL, '2018-10-23 17:30:43', NULL, '0', '', '');
- update tb_app_menu set TREECODE=last_insert_id(),PARENTCODE='330'
- where id=(select LAST_INSERT_ID());
- -- --2018-11-07-------------2018-11-29整理------------------------数据字典----------------------
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('stapleFood', '主食', '1', '77', '1', 'admin,系统管理员', '2018-10-17 11:05:14', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('orderTime', '订餐时间', '1', '78', '1', 'admin,系统管理员', '2018-10-19 15:11:43', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('spec', '餐品规格', '1', '79', '1', 'admin,系统管理员', '2018-10-26 09:18:32', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('dinnerDept', '订餐部门', '1', '80', '1', 'admin,系统管理员', '2018-11-06 10:52:41', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('dinnerAddress', '送餐地址', '1', '81', '1', 'admin,系统管理员', '2018-11-06 10:55:02', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('importTime', '订餐按钮控制时间', '1', '82', '1', 'admin,系统管理员', '2018-11-07 16:16:03', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('star1Describe', '一星描述', '1', '83', '1', 'admin,系统管理员', '2018-11-15 10:09:33', NULL, NULL);
- INSERT INTO `tb_dictionary_group` ( `groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('star2Describe', '二星描述', '1', '84', '1', 'admin,系统管理员', '2018-11-15 10:10:15', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('star3Describe', '三星描述', '1', '85', '1', 'admin,系统管理员', '2018-11-15 10:10:52', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('star4Describe', '四星描述', '1', '86', '1', 'admin,系统管理员', '2018-11-15 10:11:36', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('star5Describe', '五星描述', '1', '87', '1', 'admin,系统管理员', '2018-11-15 10:12:02', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('mealName', '餐品名', '1', '88', '1', 'admin,系统管理员', '2018-11-19 18:26:26', NULL, NULL);
- INSERT INTO `tb_dictionary_group` (`groupcode`, `groupname`, `isenabled`, `oprateversion`, `opratetype`, `createby`, `createtime`, `lastupdateby`, `lastupdatetime`) VALUES ('mealNameBySingle', '单品的餐品名', '1', '89', '1', 'admin,系统管理员', '2018-11-27 16:23:28', NULL, NULL);
- -- -------2018-11-29 订餐系统优化
- CREATE TABLE `tb_order_dinner` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `number` varchar(255) DEFAULT '' COMMENT '编码',
- `status` varchar(2) DEFAULT '' COMMENT '状态(1待送餐2待评价3已完成4已取消)',
- `orgId` varchar(255) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `star` int(2) DEFAULT NULL COMMENT '星级',
- `isSumOrder` int(2) DEFAULT '0' COMMENT '是否汇总订单',
- `parentOrderId` varchar(255) DEFAULT '' COMMENT '父级订单',
- `consId` varchar(255) DEFAULT '' COMMENT '下单人',
- `dinnerTime` datetime DEFAULT NULL COMMENT '下单时间',
- `integral` int(11) DEFAULT '0' COMMENT '消费积分',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_order_dinner_info` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orderId` bigint(20) DEFAULT NULL COMMENT '订单id',
- `mealId` bigint(20) DEFAULT NULL COMMENT '餐品id',
- `mealName` varchar(255) DEFAULT '' COMMENT '餐品名',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `foodCount` int(14) DEFAULT NULL COMMENT '份数',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `stapleFoodStr` varchar(255) DEFAULT '' COMMENT '主食名字',
- `orgId` varchar(255) DEFAULT NULL,
- `isMeetFood` varchar(2) DEFAULT '' COMMENT '是否会议餐',
- `consId` varchar(255) DEFAULT '' COMMENT '订餐人',
- `dinnerTime` datetime DEFAULT NULL COMMENT '订餐时间',
- PRIMARY KEY (`id`),
- KEY `dinner_orderId` (`orderId`),
- CONSTRAINT `dinner_orderId` FOREIGN KEY (`orderId`) REFERENCES `tb_order_dinner` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_meal` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `mealCodeId` varchar(255) DEFAULT '' COMMENT '餐品名',
- `spec` varchar(10) DEFAULT '' COMMENT '规格(1单品、2三菜一汤、3三菜一汤加水果)',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `mealDescribe` varchar(255) DEFAULT '' COMMENT '餐品描述',
- `deliveryTimeStr` varchar(255) DEFAULT '' COMMENT '送餐时间',
- `supplyType` varchar(2) DEFAULT '' COMMENT '供应类型(1、长期有效2按具体时间供应)',
- `supplyTime` varchar(255) DEFAULT '' COMMENT '供应时间(供应类型为2的时候才有值)',
- `status` varchar(2) DEFAULT '' COMMENT '状态(1上架2下架)',
- `mealImages` varchar(2000) DEFAULT '' COMMENT '餐品图片',
- `orgId` varchar(11) DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `isModel` varchar(2) DEFAULT '' COMMENT '是否设为模板(1是0否)',
- `isMeetingFood` int(2) DEFAULT '0' COMMENT '是否会议餐',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_mealcar` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `mealId` bigint(20) NOT NULL COMMENT '餐品id',
- `mealName` varchar(255) DEFAULT '' COMMENT '餐品名',
- `stapleFood` varchar(255) DEFAULT '' COMMENT '主食',
- `foodCount` int(14) DEFAULT NULL COMMENT '份数',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT '',
- `isMeetFood` varchar(2) DEFAULT '' COMMENT '是否会议餐',
- `consId` varchar(255) DEFAULT '' COMMENT '订餐人',
- `dinnerTime` varchar(255) DEFAULT '' COMMENT '订餐时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_integral_record` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `type` int(11) DEFAULT '0' COMMENT '操作类型1充值2修改',
- `targetName` varchar(255) DEFAULT '' COMMENT '操作对象',
- `targetNumber` varchar(255) DEFAULT '' COMMENT '操作账号',
- `oldIntegral` int(11) DEFAULT NULL COMMENT '操作前积分',
- `newIntegral` int(11) DEFAULT NULL COMMENT '操作后积分',
- `exchangeIntegral` varchar(255) DEFAULT NULL COMMENT '流转积分',
- `creator` varchar(255) DEFAULT '' COMMENT '操作人',
- `createTime` datetime DEFAULT NULL COMMENT '操作时间',
- `orgId` varchar(255) DEFAULT '' COMMENT '项目',
- `targetId` varchar(255) DEFAULT '' COMMENT '充值人',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- ----------- 自动充值------------------------
- CREATE TABLE `tb_recharge_set` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orgId` varchar(50) DEFAULT '',
- `createTime` datetime DEFAULT NULL,
- `creator` varchar(255) DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- `modifier` varchar(255) DEFAULT NULL,
- `isEnabled` varchar(2) DEFAULT NULL,
- `status` int(2) DEFAULT '0' COMMENT '是否开启自动充值(1开启0不开启)',
- `dayCount` int(11) DEFAULT '0' COMMENT '单日数量',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE TABLE `tb_recharge_record` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `orgId` varchar(50) DEFAULT '' COMMENT '项目id',
- `createTime` datetime DEFAULT NULL,
- `monthCount` int(11) DEFAULT '0' COMMENT '当月工作日天数',
- `sumCount` int(11) DEFAULT '0' COMMENT '当月总充值数(当月工作日天数*单日数量)',
- `dayCount` int(11) DEFAULT '0' COMMENT '单日数量',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- -----------------------用户表增加是否领导字段
- alter table tb_user add isLeader int(2) DEFAULT 0 COMMENT '是否领导1是0不是';
- -- -----------------------订餐表增加订单的类型及备注
- alter table tb_order_dinner add remark varchar(500) DEFAULT '' COMMENT '备注';
- alter table tb_order_dinner add isTempOrder int(11) DEFAULT '0' COMMENT '是否临时工作餐';
- -- -------------------------用户表增加用户排序----------------
- alter table tb_user add orderNum bigint(20) DEFAULT NULL COMMENT '排序';
- -- 以上均在20190115前已执行过--------
- -- -----------2019-01-16------------------
- alter table tb_servicetypeinfo add serviceCode varchar(255) DEFAULT '' COMMENT '服务用于区分哪个服务的编码';
- -- 设置房间号名称区分大小写
- ALTER TABLE `tb_roomno` MODIFY COLUMN `name` VARCHAR(20) BINARY;
- -- ------------2019-02-22-------------------------
- alter table tb_phone_message add userIds text COMMENT '用户ids';
- alter table tb_phone_message add auditOpinion varchar(1000) COMMENT '审核意见';
- alter table tb_phone_message add isPass int(11) DEFAULT '0' COMMENT '是否通过0不通过1通过';
- alter table tb_email_send add userIds text COMMENT '用户ids';
- alter table tb_email_send add auditOpinion varchar(1000) COMMENT '审核意见';
- alter table tb_email_send add isPass int(11) DEFAULT '0' COMMENT '是否通过0不通过1通过';
- alter table tb_app_notice add orgIds text COMMENT '项目ids';
- -- 以上2019-02-28日执行过----------------------
- ALTER TABLE `tb_app_notice` MODIFY COLUMN `content` mediumtext BINARY;
- -- 2019-3-5日执行过
- -- --------------2019-03-08---企业入驻迁出优化-------------------
- alter table tb_virtualarchitecture add signingTime varchar(200) DEFAULT '' COMMENT '签约时间';
- alter table tb_virtualarchitecture add contExpireTime varchar(200) DEFAULT '' COMMENT '合同到期时间';
- alter table tb_virtualarchitecture add email varchar(200) DEFAULT '' COMMENT '申请人邮箱';
- alter table tb_enterprise add signingTime varchar(200) DEFAULT '' COMMENT '签约时间';
- alter table tb_enterprise add contExpireTime varchar(200) DEFAULT '' COMMENT '合同到期时间';
- alter table tb_enterprise add email varchar(200) DEFAULT '' COMMENT '申请人邮箱';
- alter table tb_enterprise add address varchar(2000) DEFAULT '' COMMENT '企业地址';
- -- --------------------------2019-03-15执行过----------------------------
- -- ---------2019-03-18---订餐模块增加项目的短信发送设置----------------
- alter table tb_organization add isSetMessage int(2) DEFAULT 0 COMMENT '是否开启短信发送(0未开启1开启)';
- -- ---------2019-03-22---已执行
- -- ----------2019-03-26--用户每日活跃数------------------
- CREATE TABLE `tb_user_date_activecount` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `userId` int(11) DEFAULT NULL COMMENT '用户id',
- `date` date DEFAULT NULL COMMENT '日期',
- `count` int(11) DEFAULT NULL COMMENT '活跃量',
- `orgId` int(11) DEFAULT NULL COMMENT '项目id',
- `modifyTime` datetime DEFAULT NULL,
- `createTime` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='用户每日活跃统计';
- CREATE TABLE `tb_date_type` (
- `ID` bigint(20) NOT NULL AUTO_INCREMENT,
- `date` date DEFAULT NULL COMMENT '日期(年月日格式)',
- `type` tinyint(3) DEFAULT NULL COMMENT '日期类型:0-工作日;1-法定节假日;2-节假日调休补班日;3-休息日;',
- `createTime` datetime DEFAULT NULL,
- `modifyTime` datetime DEFAULT NULL,
- PRIMARY KEY (`ID`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- ------------------2019-04-16------------------------
- -- -----------------2019-07-23-------------------------
- -- 修改批注
- ALTER TABLE tb_app_notice MODIFY COLUMN position_type int(2) COMMENT '展示位置 0-微信+app端/1-app端/2-微信/3-公众号/4-微信+公众号/5-app+公众号/6-微信+app+公众号';
- -- 增加字段
- alter table tb_app_notice add openIds text default '' COMMENT '发送的人的openId';
- alter table tb_app_notice add userIds text default '' COMMENT '发送的人的userId';
- alter table tb_app_notice add isPublic tinyint(3) default 0 COMMENT '是否勾选了公众号0-否1-是';
- alter table tb_app_notice add isWechat tinyint(3) default 0 COMMENT '是否勾选了微信0-否1-是';
- alter table tb_app_notice add isApp tinyint(3) default 0 COMMENT '是否勾选了app0-否1-是';
- alter table tb_app_notice add publicObj tinyint(3) default 0 COMMENT '公众号发布对象:1-公众号所有用户;2-项目所有用户;3-部分用户;';
- alter table tb_app_notice add isMessageList tinyint(3) default 0 COMMENT '是否加入消息列表0-否1-是';
- CREATE TABLE `tb_wx_upload_material` (
- `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID',
- `m_type` varchar(32) DEFAULT NULL COMMENT '素材类别(图片(image)、视频(video)、语音 (voice)、图文(news),缩略图(thumb))',
- `developid` varchar(32) DEFAULT NULL COMMENT '开发者微信号',
- `url` varchar(200) DEFAULT NULL COMMENT '媒体地址',
- `media_id` varchar(80) DEFAULT NULL COMMENT '媒体id',
- `created_by` int(10) DEFAULT NULL COMMENT '创建人',
- `created_at` datetime DEFAULT NULL COMMENT '创建时间',
- `updated_by` int(10) DEFAULT NULL COMMENT '更新人',
- `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
- `orgId` int(10) DEFAULT NULL,
- `sourceId` int(10) DEFAULT NULL COMMENT '来源单据Id',
- `isEnabled` int(10) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='素材存储表';
- CREATE TABLE `tb_wx_massmessage_send` (
- `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
- `developid` varchar(32) DEFAULT NULL COMMENT '开发者微信号',
- `msgtype` varchar(10) DEFAULT NULL COMMENT '消息类别 图文消息为mpnews,文本消息为text,语音为voice,音乐为music,图片为image,视频为video,卡券为wxcard',
- `is_to_all` varchar(10) DEFAULT NULL COMMENT '用于设定是否向全部用户发送,值为true或false,选择true该消息群发给所有用户,选择false可根据tag_id发送给指定群组的用户',
- `tag_id` varchar(10) DEFAULT NULL COMMENT '群发到的标签的tag_id,参见用户管理中用户分组接口,若is_to_all值为true,可不填写tag_id',
- `media_id` varchar(80) DEFAULT NULL COMMENT '用于群发的消息的media_id',
- `title` varchar(50) DEFAULT NULL COMMENT '消息的标题',
- `description` varchar(200) DEFAULT NULL COMMENT '消息的描述',
- `content` text COMMENT '文本',
- `thumb_media_id` varchar(80) DEFAULT NULL COMMENT '视频缩略图的媒体ID',
- `msg_data_id` varchar(50) DEFAULT NULL COMMENT '消息的数据ID,,该字段只有在群发图文消息时,才会出现。可以用于在图文分析数据接口中,获取到对应的图文消息的数据',
- `msg_id` varchar(50) DEFAULT NULL COMMENT '消息发送任务的ID',
- `send_ignore_reprint` int(10) DEFAULT NULL COMMENT '图文消息被判定为转载时,是否继续群发。 1为继续群发(转载),0为停止群发',
- `created_by` int(10) DEFAULT NULL COMMENT '创建人',
- `created_at` datetime DEFAULT NULL COMMENT '创建时间',
- `updated_by` int(10) DEFAULT NULL COMMENT '更新人',
- `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
- `orgId` int(10) DEFAULT NULL,
- `sourceId` int(10) DEFAULT NULL COMMENT '来源单据Id',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='推送素材表';
- CREATE TABLE `tb_app_notice_detail` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(100) DEFAULT NULL,
- `content` text COMMENT '公告内容(带html标签)',
- `contentTxt` text COMMENT '内容纯文本(不带html标签)',
- `coverUrl` varchar(500) DEFAULT NULL COMMENT '封面图片地址',
- `summaryInfo` text COMMENT '摘要',
- `createTime` datetime DEFAULT NULL COMMENT '创建时间',
- `creator` varchar(20) DEFAULT NULL COMMENT '创建人',
- `modifier` varchar(20) DEFAULT NULL COMMENT '修改人',
- `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
- `isEnabled` varchar(10) DEFAULT NULL COMMENT '是否可用或删除:0 禁用,1 可用',
- `sourceId` int(11) DEFAULT NULL COMMENT '来源单据Id',
- `position` int(10) DEFAULT '0' COMMENT '位置',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公告分录表';
- -- ---------------------2019-07-29-----------------已执行------------------------
- CREATE TABLE `tb_app_notice_content_images` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `sourceId` int(11) DEFAULT NULL,
- `type` tinyint(3) DEFAULT '0' COMMENT '来源1-notice;2-notice_detail',
- `oldImage` varchar(500) DEFAULT '' COMMENT '旧图片服务地址',
- `newImage` varchar(500) DEFAULT '' COMMENT '新图片服务地址',
- `createTime` datetime DEFAULT NULL,
- `creator` int(11) DEFAULT NULL,
- `isEnabled` tinyint(3) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公告发布的图片地址表';
- alter table tb_app_notice_detail add url_address varchar(255) default NULL COMMENT '跳转地址';
- -- ---------------------2019-08-05-----------------已执行------------------------
|