Commit 323e6df0 authored by 赵啸非's avatar 赵啸非

添加样表设备部门过滤

parent c0ac598b
...@@ -290,25 +290,25 @@ CREATE TABLE `mortals_xhx_device` ( ...@@ -290,25 +290,25 @@ CREATE TABLE `mortals_xhx_device` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_device_matter_datum`; DROP TABLE IF EXISTS `mortals_xhx_device_matter_datum`;
CREATE TABLE mortals_xhx_device_matter_datum( CREATE TABLE mortals_xhx_device_matter_datum(
`id` bigint(20) AUTO_INCREMENT COMMENT '主键,自增长', `id` bigint(20) AUTO_INCREMENT COMMENT '主键,自增长',
`siteId` bigint(20) COMMENT '站点ID', `siteId` bigint(20) COMMENT '站点ID',
`deviceId` bigint(20) COMMENT '设备id', `deviceId` bigint(20) COMMENT '设备id',
`deviceCode` varchar(255) COMMENT '设备编码', `deviceCode` varchar(255) COMMENT '设备编码',
`deviceName` varchar(255) COMMENT '设备名称', `deviceName` varchar(255) COMMENT '设备名称',
`matterId` bigint(20) COMMENT '事项id', `matterId` bigint(20) COMMENT '事项id',
`matterCode` varchar(255) COMMENT '事项编码', `matterCode` varchar(255) COMMENT '事项编码',
`matterName` varchar(255) COMMENT '事项名称', `matterName` varchar(255) COMMENT '事项名称',
`deptId` bigint(20) COMMENT '部门ID', `materiaFullName` varchar(1024) COMMENT '事项全称',
`deptCode` varchar(256) COMMENT '部门编号', `deptId` bigint(20) COMMENT '部门ID',
`deptName` varchar(256) COMMENT '部门名称', `deptCode` varchar(256) COMMENT '部门编号',
`source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)', `deptName` varchar(256) COMMENT '部门名称',
`isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)', `source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)',
`sort` int(4) COMMENT '排序', `isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)',
`createTime` datetime COMMENT '创建时间', `sort` int(4) COMMENT '排序',
`createUserId` bigint(20) COMMENT '创建用户', `createTime` datetime COMMENT '创建时间',
`updateTime` datetime COMMENT '修改时间', `createUserId` bigint(20) COMMENT '创建用户',
`materiaFullName` varchar(1024) COMMENT '事项全称', `updateTime` datetime COMMENT '修改时间',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务';
......
...@@ -313,32 +313,32 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -313,32 +313,32 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = null; this.siteId = -1L;
this.deviceId = null; this.deviceId = null;
this.deviceCode = null; this.deviceCode = "";
this.deviceName = null; this.deviceName = "";
this.matterId = null; this.matterId = null;
this.matterCode = null; this.matterCode = "";
this.matterName = null; this.matterName = "";
this.deptId = null; this.deptId = null;
this.deptCode = null; this.deptCode = "";
this.deptName = null; this.deptName = "";
this.source = null; this.source = 0;
this.isRecommend = null; this.isRecommend = 0;
this.sort = null; this.sort = 0;
this.materiaFullName = null; this.materiaFullName = "";
} }
} }
\ No newline at end of file
...@@ -68,6 +68,8 @@ public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<Device ...@@ -68,6 +68,8 @@ public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<Device
entity.setMatterName(matterEntity.getMatterName()); entity.setMatterName(matterEntity.getMatterName());
entity.setMateriaFullName(matterEntity.getMatterFullName()); entity.setMateriaFullName(matterEntity.getMatterFullName());
entity.setIsRecommend(matterEntity.getIsRecommend()); entity.setIsRecommend(matterEntity.getIsRecommend());
entity.setSource(matterEntity.getSource());
entity.setSort(matterEntity.getSort());
entity.setDeptId(matterEntity.getDeptId()); entity.setDeptId(matterEntity.getDeptId());
entity.setDeptCode(matterEntity.getDeptCode()); entity.setDeptCode(matterEntity.getDeptCode());
entity.setDeptName(matterEntity.getDeptName()); entity.setDeptName(matterEntity.getDeptName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment