6 Commits d97cd1db03 ... 7c9180c106

Author SHA1 Message Date
  ljm\李 7c9180c106 Merge branch 'master' into dev1.0 9 months ago
  lsw 996e9dbf65 fead:优化小程序首页 9 months ago
  lsw 96d56823ea fead:优化小程序首页 9 months ago
  lsw 8316ae9bc9 fead:患者填写医院回访 9 months ago
  lsw 20d2ed1748 更新 9 months ago
  zlh 1ed47ae44c 主数据接口同步 9 months ago
46 changed files with 3511 additions and 50 deletions
  1. 81 0
      admin-ui/src/views/work/user/edit.vue
  2. 95 0
      admin-ui/src/views/work/user/index.vue
  3. 1 1
      app/App.vue
  4. 14 0
      app/common/common.scss
  5. 14 0
      app/pages.json
  6. 2 5
      app/pages/department/index.vue
  7. 1 4
      app/pages/doctor/index.vue
  8. 25 5
      app/pages/follow/detail.vue
  9. 3 0
      app/pages/follow/index.vue
  10. 179 28
      app/pages/index/index.vue
  11. 19 0
      app/pages/user/bind/add.vue
  12. 83 0
      app/pages/user/bind/index.vue
  13. 5 5
      app/pages/user/index.vue
  14. 1 0
      app/uni_modules/uview-ui/components/u-empty/u-empty.vue
  15. 30 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_HomeController.java
  16. 1002 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_MdmController.java
  17. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_UserController.java
  18. 69 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/DeptInfoController.java
  19. 69 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/EmployeeInfoController.java
  20. 69 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/WardInfoController.java
  21. 46 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/BindUser.java
  22. 222 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/DeptInfo.java
  23. 632 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/EmployeeInfo.java
  24. 6 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/User.java
  25. 86 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/WardInfo.java
  26. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/BindUserMapper.java
  27. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/DeptInfoMapper.java
  28. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/EmployeeInfoMapper.java
  29. 5 2
      ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/KnowledgeMapper.java
  30. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/WardInfoMapper.java
  31. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IBindUserService.java
  32. 14 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IDeptInfoService.java
  33. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IEmployeeInfoService.java
  34. 2 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IKnowledgeService.java
  35. 13 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IWardInfoService.java
  36. 24 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/BindUserServiceImpl.java
  37. 26 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/DeptInfoServiceImpl.java
  38. 24 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/EmployeeInfoServiceImpl.java
  39. 5 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/KnowledgeServiceImpl.java
  40. 24 0
      ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/WardInfoServiceImpl.java
  41. 22 0
      ruoyi-admin/src/main/resources/mapper/work/BindUserMapper.xml
  42. 74 0
      ruoyi-admin/src/main/resources/mapper/work/DeptInfoMapper.xml
  43. 207 0
      ruoyi-admin/src/main/resources/mapper/work/EmployeeInfoMapper.xml
  44. 4 0
      ruoyi-admin/src/main/resources/mapper/work/KnowledgeMapper.xml
  45. 23 0
      ruoyi-admin/src/main/resources/mapper/work/WardInfoMapper.xml
  46. 199 0
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java

+ 81 - 0
admin-ui/src/views/work/user/edit.vue

@@ -0,0 +1,81 @@
+<template>
+  <div class="cmain">
+      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
+        <el-form-item label="微信id" prop="openId">
+          <el-input v-model="form.openId" placeholder="请输入微信id" clearable/>
+        </el-form-item>
+        <el-form-item label="状态" prop="state">
+          <el-input v-model="form.state" placeholder="请输入状态" clearable/>
+        </el-form-item>
+        <el-form-item label="创建者" prop="createBy">
+          <el-input v-model="form.createBy" placeholder="请输入创建者" clearable/>
+        </el-form-item>
+        <el-form-item label="创建时间" prop="createTime">
+          <el-date-picker clearable
+            v-model="form.createTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="请选择创建时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="更新者" prop="updateBy">
+          <el-input v-model="form.updateBy" placeholder="请输入更新者" clearable/>
+        </el-form-item>
+        <el-form-item label="更新时间" prop="updateTime">
+          <el-date-picker clearable
+            v-model="form.updateTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="请选择更新时间">
+          </el-date-picker>
+        </el-form-item>
+      </el-form>
+    <div class="mfooter">
+      <el-button type="primary" @click="submitForm">确 定</el-button>
+      <el-button @click="$layer.close(layerid)">取 消</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      form: {},
+      rules: {
+        openId: [
+          { required: true, message: "微信id不能为空", trigger: "blur" }
+        ],
+      }
+    };
+  },
+  mounted() {
+    if (this.param.id) {
+      this.ajax({ url: '/work/user/detail/' + this.param.id }).then(response => {
+        this.form = response.data;
+      });
+    }
+  },
+  methods: {
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id) {
+              this.ajax({method: 'post',url: '/work/user/edit', data: this.form }).then(response => {
+                  this.$modal.msgSuccess("修改成功");
+                  this.$layer.close(this.layerid);
+                  this.$parent.getList();
+              });
+          } else {
+              this.ajax({method: 'post',url: '/work/user/add', data: this.form }).then(response => {
+                  this.$modal.msgSuccess("新增成功");
+                  this.$layer.close(this.layerid);
+                  this.$parent.getList();
+               });
+          }
+        }
+      });
+    }
+  }
+};
+</script>

+ 95 - 0
admin-ui/src/views/work/user/index.vue

@@ -0,0 +1,95 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent>
+      <el-form-item label="微信id" prop="openId">
+        <el-input v-model="queryParams.openId" placeholder="请输入微信id"  @keyup.enter.native="handleQuery" clearable class="inp"/>
+      </el-form-item>
+      <el-form-item label="状态" prop="state">
+        <el-input v-model="queryParams.state" placeholder="请输入状态"  @keyup.enter.native="handleQuery" clearable class="inp"/>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <el-row :gutter="10" class="mb8">
+        <el-button type="primary" icon="el-icon-plus" :disabled="ids.length > 0" @click="op('add')" v-hasPermi="['work:user:add']">新增</el-button>
+        <el-button type="success" icon="el-icon-edit" :disabled="ids.length != 1" @click="op('edit',ids)" v-hasPermi="['work:user:edit']">修改</el-button>
+        <el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:user:remove']">删除{{ids.length>0?'('+ids.length+')':''}}</el-button>
+    </el-row>
+
+    <el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="id" align="center" prop="id" />
+      <el-table-column label="微信id" align="center" prop="openId" />
+      <el-table-column label="状态" align="center" prop="state" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit',scope.row)" v-hasPermi="['work:user:edit']">修改</el-button>
+          <el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:user:remove']">删除</el-button>
+        </template>
+      </el-table-column>
+      <template slot="empty">
+          <el-empty></el-empty>
+      </template>
+    </el-table>
+    <pagination v-if="response.total>0" :total="response.total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList"/>
+  </div>
+</template>
+
+<script>
+import edit from './edit'
+export default {
+  name: "User",
+  data() {
+    return {
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+                      openId: null,
+                      state: null,
+                orderByColumn:'id', //排序字段
+                isAsc: 'desc' //排序方式
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    getList() {
+      this.ajax({ url: '/work/user/list', data: this.queryParams }).then(response => {
+            this.response = response;
+      });
+    },
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    selects(rows) {
+      this.ids = rows.map(item => item.id)
+    },
+    op(tag, row) {
+          if (tag == 'add') {
+            this.iframe({ obj: edit, param: {}, title:'新增',width: '45%', height: '55%'});
+          }
+          if (tag == 'edit') {
+              const id = row.id || this.ids[0];
+              this.iframe({ obj: edit, param: {id: id}, title:'编辑',width: '50%', height: '50%'});
+          }
+    },
+    del(row) {
+        this.$confirm('是否确认删除选中数据?', '警告', { type: 'warning' }).then(() => {
+        this.get({ url: '/work/user/remove/' + (row.id || this.ids) }).then(response => {
+                this.$modal.msgSuccess('删除成功');
+                this.getList();
+            });
+        });
+    }
+  }
+};
+</script>

+ 1 - 1
app/App.vue

@@ -30,7 +30,7 @@ button::after {
 /**挂载iconfont字体图标*/
 @font-face {
 	font-family: 'iconfont';
-	src: url('https://at.alicdn.com/t/c/font_4620946_zi17cneza5h.ttf?t=1721295443583') format('truetype');
+	src: url('https://at.alicdn.com/t/c/font_4620946_71l23z3aw5o.ttf?t=1721929654519') format('truetype');
 	/* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
 }
 .icon {

+ 14 - 0
app/common/common.scss

@@ -181,3 +181,17 @@
 		color: blue;
 	}
 }
+/**底部按钮操作******/
+.mfooter {
+	position: fixed;
+	width: 100%;
+	bottom: 30px;
+	text-align: center;
+	.btn {
+		border-radius: 35px;
+		width: 40%;
+		.icon {
+			padding-right: 5px;
+		}
+	}
+}

+ 14 - 0
app/pages.json

@@ -91,6 +91,20 @@
 			{
 				"navigationBarTitleText" : "医生介绍"
 			}
+		},
+		{
+			"path" : "pages/user/bind/index",
+			"style" : 
+			{
+				"navigationBarTitleText" : "我的就诊人"
+			}
+		},
+		{
+			"path" : "pages/user/bind/add",
+			"style" : 
+			{
+				"navigationBarTitleText" : "绑定就诊人"
+			}
 		}
 	],
 	"tabBar": {

+ 2 - 5
app/pages/department/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="msilde">
 		<view class="left">
-			<u-collapse accordion :value="list[0].deptId">
+			<u-collapse accordion >
 				<u-collapse-item :title="d.deptName" :name="d.deptId" v-for="(d, index) in list" :key="d.deptName">
 					<view :class="{ active: index == i.current }" v-for="(i, index) in d.children" :key="i.deptName" class="item" @click="selected(i, index)">{{ i.deptName }}</view>
 				</u-collapse-item>
@@ -21,7 +21,7 @@ export default {
 	data() {
 		return {
 			item: {},
-			list: [{ deptId: 0 }]
+			list: []
 		};
 	},
 	onLoad(e) {
@@ -33,9 +33,6 @@ export default {
 				url: '/app/department/list',
 				success: (res) => {
 					this.list = res.data.data;
-					if (this.list.length > 0 && this.list[0].children.length > 0) {
-						this.selected(this.list[0].children[0], 0);
-					}
 				}
 			});
 		},

+ 1 - 4
app/pages/doctor/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="msilde">
 		<view class="left">
-			<u-collapse accordion :value="list[0].deptId">
+			<u-collapse accordion >
 				<u-collapse-item :title="d.deptName" :name="d.deptId" v-for="(d, index) in list" :key="d.deptName">
 					<view :class="{ active: index == i.current }" v-for="(i, index) in d.children" :key="i.deptName" class="item" @click="selected(i, index)">{{ i.deptName }}</view>
 				</u-collapse-item>
@@ -40,9 +40,6 @@ export default {
 				url: '/app/department/list',
 				success: (res) => {
 					this.list = res.data.data;
-					if (this.list.length > 0 && this.list[0].children.length > 0) {
-						this.selected(this.list[0].children[0], 0);
-					}
 				}
 			});
 		},

+ 25 - 5
app/pages/follow/detail.vue

@@ -10,9 +10,9 @@
 				<text class="dx">({{ item.input }})</text>
 			</view>
 			<view class="mts">
-				<input v-if="item.input == '填空'" v-model="item.s_value" placeholder="请输入" />
-				<input v-if="item.input == '数字'" type="number" v-model="item.s_value" placeholder="请输入" :disabled="look ? true : false" />
-				<textarea v-if="item.input == '多行文本'" v-model="item.s_value" placeholder="请输入" />
+				<input v-if="item.input == '填空'" v-model="item.s_value" placeholder="请输入" :disabled="item.state != 0" />
+				<input v-if="item.input == '数字'" type="number" v-model="item.s_value" placeholder="请输入" :disabled="item.state != 0" />
+				<textarea v-if="item.input == '多行文本'" v-model="item.s_value" placeholder="请输入" :disabled="item.state != 0" />
 				<view class="ops" v-if="item.input == '单选' || item.input == '多选' || item.input == '判断'">
 					<view v-for="(op, i) in item.selects" :key="op.name">
 						<view class="op" :class="{ active: op.check }" @click="check(item, op)">{{ op.name }}</view>
@@ -21,7 +21,7 @@
 			</view>
 		</view>
 		<u-divider text="结束"></u-divider>
-		<button class="btn">立即提交</button>
+		<button class="btn" @click="add()" v-if="item.state == 0">立即提交</button>
 	</view>
 </template>
 
@@ -45,7 +45,7 @@ export default {
 	methods: {
 		//单选或多选
 		check(item, op) {
-			if (this.look) {
+			if (this.item.state != 0) {
 				return;
 			}
 			if (item.input == '单选' || item.input == '判断') {
@@ -54,6 +54,7 @@ export default {
 			} else {
 				op.check = !op.check;
 			}
+			item.s_value = op.check; //选中项
 			this.$forceUpdate();
 		},
 		add() {
@@ -69,6 +70,24 @@ export default {
 				uni.showModal({ content: this.verify.error, showCancel: false });
 				return;
 			}
+			let data = JSON.parse(JSON.stringify(this.item));
+			data.op = JSON.stringify(data.op);
+			this.http.request({
+				url: '/app/follow/push',
+				data: data,
+				method: 'POST',
+				success: (res) => {
+					uni.showModal({
+						title: '提示',
+						content: '感谢您的回访',
+						showCancel: false,
+						success: (res) => {
+							uni.$emit('follow');
+							uni.navigateBack();
+						}
+					});
+				}
+			});
 		}
 	}
 };
@@ -81,6 +100,7 @@ page {
 .title {
 	text-align: center;
 	font-weight: bold;
+	padding-bottom: 10px;
 }
 .item {
 	.mtt {

+ 3 - 0
app/pages/follow/index.vue

@@ -36,6 +36,9 @@ export default {
 	},
 	onLoad(e) {
 		this.getData();
+		uni.$on('follow', (res) => {
+			this.refresh();
+		});
 	},
 	methods: {
 		click(e) {

+ 179 - 28
app/pages/index/index.vue

@@ -1,36 +1,83 @@
 <template>
 	<view class="main">
-		<image src="https://axure-file.lanhuapp.com/md5__f93627286149f825890eb821ab5d5abb.png" mode="widthFix" class="banner"></image>
+		<image src="https://chenglantimes.com/prod-api/profile/upload/2024/07/26/1721928199437.jpg" mode="widthFix" class="banner"></image>
+		<!--通知公告-->
+		<view class="notice">
+			<u-notice-bar color="#545555" :text="noticeList" :step="true" direction="column" mode="link" bgColor="white" speed="300" url="/pages/notice/index"></u-notice-bar>
+		</view>
+
 		<view class="flow">
-			<view class="item" @click="go('/pages/introduction/index')">
+			<view class="item" @click="go('/pages/doctor/index')">
 				<view class="out">
-					<view class="int">
-						<view class="icon" style="color: rgb(72, 154, 253)">&#xe775;</view>
-						<view class="title">医院介绍</view>
+					<view class="int" style="height: 217px; background-color: #d9e8fd">
+						<view class="icon" style="color: #4687ed">&#xe62d;</view>
+						<view class="title">
+							<view>医生团队</view>
+							<view class="desc">权威团队服务</view>
+						</view>
 					</view>
 				</view>
 			</view>
 			<view class="item" @click="go('/pages/department/index')">
 				<view class="out">
-					<view class="int">
-						<view class="icon" style="color: rgb(72, 154, 253)">&#xe752;</view>
-						<view class="title">科室介绍</view>
+					<view class="int" style="height: 87px; background-color: #ddf8f3">
+						<view class="icon" style="color: #22b789">&#xe606;</view>
+						<view class="title">
+							<view>科室介绍</view>
+							<view class="desc">众多先进设备</view>
+						</view>
 					</view>
 				</view>
-			</view>
-			<view class="item" @click="go('/pages/doctor/index')">
 				<view class="out">
-					<view class="int">
-						<view class="icon" style="color: rgb(72, 154, 253)">&#xe6a3;</view>
-						<view class="title">医生介绍</view>
+					<view class="int" style="height: 87px; background-color: #fff3e3">
+						<view class="icon" style="color: #fe9b01">&#xe636;</view>
+						<view class="title"></view>
+						<view class="title">
+							<view>医院指南</view>
+							<view class="desc">医院简介</view>
+						</view>
 					</view>
 				</view>
 			</view>
-			<view class="item" @click="go('/pages/knowledge/index')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="color: rgb(72, 154, 253)">&#xe69a;</view>
-						<view class="title">健康知识</view>
+		</view>
+		<!--权威专家-->
+		<view class="bos">
+			<view class="gg">
+				<view class="title">权威专家</view>
+				<view class="bor"></view>
+				<view class="more" @click="go('/pages/news/index?type=新闻资讯')">
+					<text>更多</text>
+					<text class="icon">&#xe62b;</text>
+				</view>
+			</view>
+			<u-scroll-list :indicator="true" indicatorColor="#e0e0e0">
+				<view class="doctor">
+					<view class="item" v-for="(item, index) in doctorList" :key="index" @click="go('/pages/news/detail?id=' + item.id)">
+						<image :src="ip + item.avatar" mode="scaleToFill" class="avatar"></image>
+						<view class="title">{{ item.name }}</view>
+					</view>
+				</view>
+			</u-scroll-list>
+		</view>
+		<!--健康知识-->
+		<view class="bos">
+			<view class="gg">
+				<view class="title">健康知识</view>
+				<view class="bor"></view>
+				<view class="more" @click="go('/pages/news/index?type=新闻资讯')">
+					<text>更多</text>
+					<text class="icon">&#xe62b;</text>
+				</view>
+			</view>
+			<view class="knowledgeList">
+				<view class="item" v-for="(item, index) in knowledgeList" :key="index" @click="go('/pages/knowledge/detail?id=' + item.id)">
+					<view class="title omit">
+						<text class="icon" v-if="item.top === 1">&#xe61f;</text>
+						<text>{{ item.title }}</text>
+					</view>
+					<view class="desc">
+						<text>{{ item.type }}</text>
+						<text>{{ item.createTime.substring(5, 10) }}</text>
 					</view>
 				</view>
 			</view>
@@ -42,15 +89,36 @@ export default {
 	data() {
 		return {
 			ip: this.http.ip,
+			noticeList: ['医院开通线上小程序啦,快来体验吧', '首次使用如何绑定就诊卡'],
+			doctorList: [
+				{ name: '梁红斌', avatar: '/profile/upload/2024/07/23/blob_20240723162841A002.jpeg' },
+				{ name: '戴浩华', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
+				{ name: '罗肇林', avatar: '/profile/upload/2024/07/23/blob_20240723145549A005.jpeg' },
+				{ name: '覃勇军', avatar: '/profile/upload/2024/07/23/blob_20240723144505A002.jpeg' },
+				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
+				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
+				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' }
+			],
+			knowledgeList: [
+				{ title: '啊实打实', type: '阿松大', createTime: '' },
+				{ title: '啊实打实', type: '阿松大', createTime: '' },
+				{ title: '啊实打实', type: '阿松大', createTime: '' }
+			],
 			user: {}
 		};
 	},
-	onShow() {},
 	onLoad() {
 		this.getData();
 	},
 	methods: {
-		getData() {},
+		getData() {
+			this.http.request({
+				url: '/app/home/index',
+				success: (res) => {
+					this.knowledgeList = res.data.data.knowledgeList;
+				}
+			});
+		},
 		go(url) {
 			uni.navigateTo({ url: url });
 		}
@@ -59,13 +127,20 @@ export default {
 </script>
 
 <style lang="scss">
+page {
+	background-color: white;
+}
 .banner {
 	width: 100%;
 	border-radius: 7px;
-	margin-top: -10px;
+}
+.notice {
+	margin-top: 5px;
+	border-radius: 5px;
+	overflow: hidden;
 }
 .flow {
-	padding-top: 10px;
+	padding-top: 5px;
 	overflow: hidden;
 	margin-left: -5px;
 	margin-right: -5px;
@@ -82,19 +157,95 @@ export default {
 				overflow: hidden;
 				border-radius: 9px;
 				text-align: center;
+				position: relative;
 				.icon {
 					margin: 0 auto;
-					width: 40px;
-					height: 40px;
-					padding: 10px;
 					line-height: 39px;
 					color: $main-color;
-					box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
-					border-radius: 50%;
-					font-size: 27px;
+					font-size: 57px;
+					position: absolute;
+					right: 10px;
+					bottom: 20px;
 				}
 				.title {
 					padding-top: 8px;
+					float: left;
+					font-size: 18px;
+					text-align: left;
+					font-weight: bold;
+					.desc {
+						font-size: 14px;
+						padding-top: 5px;
+						color: $font-c;
+						font-weight: normal;
+					}
+				}
+			}
+		}
+	}
+}
+.bos {
+	background-color: white;
+	border-radius: 7px;
+	overflow: hidden;
+	padding: 12px 0px 0px 0px;
+	.gg {
+		font-weight: bold;
+		margin-bottom: 5px;
+		color: $font-c;
+		overflow: hidden;
+		.title {
+			margin-left: 10px;
+		}
+		.bor {
+			width: 5px;
+			height: 12px;
+			background-color: $main-color;
+			border-radius: 20px;
+			float: left;
+			margin-top: -16px;
+		}
+		.more {
+			float: right;
+			font-size: 14px;
+			font-weight: normal;
+			margin-top: -20px;
+		}
+	}
+	.doctor {
+		display: flex;
+		.item {
+			padding-top: 10px;
+			font-size: 15px;
+			width: 105px;
+			text-align: center;
+			image {
+				width: 80px;
+				height: 105px;
+				border-radius: 5px;
+			}
+			.title {
+				padding-top: 3px;
+				font-size: 14px;
+			}
+		}
+	}
+	.knowledgeList {
+		.item {
+			padding: 10px 0px 10px 0px;
+			border-bottom: 1px solid $line;
+			&:last-child {
+				border: 0px;
+			}
+			.title {
+				font-size: 15px;
+			}
+			.desc {
+				font-size: 14px;
+				padding-top: 5px;
+				color: #909090;
+				text {
+					padding-right: 25px;
 				}
 			}
 		}

+ 19 - 0
app/pages/user/bind/add.vue

@@ -0,0 +1,19 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			};
+		}
+	}
+</script>
+
+<style lang="scss">
+
+</style>

+ 83 - 0
app/pages/user/bind/index.vue

@@ -0,0 +1,83 @@
+<template>
+	<view class="main">
+		<view class="list">
+			<view class="item" v-for="(item, index) in list" :key="index" @click="go('/pages/knowledge/detail?id=' + item.id)">
+				<view class="title omit">
+					<text class="icon" v-if="item.top === 1">&#xe61f;</text>
+					<text>{{ item.title }}</text>
+				</view>
+				<view class="desc">
+					<text>{{ item.type }}</text>
+					<text>发布于 {{ item.createTime }}</text>
+				</view>
+			</view>
+			<u-empty v-if="list.length == 0" text="你还未绑定就诊人"></u-empty>
+		</view>
+		<view class="mfooter">
+			<button class="btn" @click="go('/pages/job/position/manage/full_time_push')">
+				<text class="icon">&#xe8d5;</text>
+				<text>去绑定</text>
+			</button>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			list: []
+		};
+	},
+	onLoad(e) {
+		this.getData();
+	},
+	methods: {
+		getData() {
+			this.http.request({
+				url: '/app/user/bind/list',
+				data: this.param,
+				loading: 'false',
+				success: (res) => {
+					this.list = res.data.data;
+				}
+			});
+		},
+		go(url) {
+			uni.navigateTo({ url: url });
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+.list {
+	padding: 10px 12px;
+	background-color: white;
+	margin: 10px;
+	border-radius: 10px;
+	.item {
+		border-radius: 5px;
+		padding: 13px 12px 13px 12px;
+		margin-bottom: 10px;
+		overflow: hidden;
+		border-bottom: 1px solid $line;
+		.title {
+			font-size: 15px;
+			font-weight: bold;
+			.icon {
+				color: orangered;
+				padding-right: 3px;
+			}
+		}
+		.desc {
+			font-size: 14px;
+			padding-top: 10px;
+			color: $font-c;
+			text {
+				padding-right: 30px;
+			}
+		}
+	}
+}
+</style>

+ 5 - 5
app/pages/user/index.vue

@@ -1,9 +1,9 @@
 <template>
 	<view class="main">
-		<view class="user" @click="go('/pages/user/info')">
+		<view class="user" @click="go('/pages/user/bind/index')">
 			<image :src="user.avatar ? ip + user.avatar : '../../static/favicon.png'" class="head"></image>
 			<view class="con" v-if="user.id">
-				<view class="nickName">{{ user.nickName ? user.nickName : '个人用户' }}</view>
+				<view class="nickName">{{ user.patientName ? user.patientName : '还未绑定就诊人' }}</view>
 				<view class="welcome">欢迎使用岑溪人民医院小程序</view>
 			</view>
 			<view class="con" v-else>
@@ -51,10 +51,10 @@ export default {
 		};
 	},
 	onShow() {
-		 		this.user = {
-			token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjMyZDkyOTYyLTBjNzQtNDJlOC05NzFhLWFkNWI1OTZlZTViYiJ9.pEPTm2QjTeorK22EnC8sqD1UhIRUUkIkfIaorvAH02vynrWwZXnLk4puHb3n-sru3-WuksQls-3pYaDKfiA_7A'
+		/* 		 		this.user = {
+			token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE3MTkwODMzLWNiNDgtNDkxMC1iZjE1LTEzNDYzMDNkZDI0YSJ9.AWgnb6GT20QIb8DxUwqt0LHaPmfb9WXKlCM1xm20AyOHpnCUtYdf1sCO47gReeIjVKm1MGBoTytUV5YxE5buew'
 		};
-		uni.setStorageSync('user', this.user);
+		uni.setStorageSync('user', this.user); */
 		if (this.hasLogin()) {
 			this.getUserInfo();
 		} else {

+ 1 - 0
app/uni_modules/uview-ui/components/u-empty/u-empty.vue

@@ -89,6 +89,7 @@ $u-empty-slot-margin-top: 20rpx !default;
 		justify-content: center;
 		align-items: center;
 		margin-top: -10px;
+		padding-bottom: 10px;
 	}
 }
 .u-slot-wrap {

+ 30 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_HomeController.java

@@ -0,0 +1,30 @@
+package com.ruoyi.web.work.api;
+
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.web.work.service.IKnowledgeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 知识库管理
+ *
+ * @author lsw
+ * @date 2024-07-10
+ */
+@RestController
+@RequestMapping("/app/home")
+public class Api_HomeController extends BaseController {
+    @Autowired
+    private IKnowledgeService knowledgeService;
+
+    @GetMapping("/index")
+    public AjaxResult index() {
+        AjaxResult result = new AjaxResult();
+        result.put("knowledgeList", knowledgeService.indexList());
+        return AjaxResult.success(result);
+    }
+
+}

+ 1002 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_MdmController.java

@@ -0,0 +1,1002 @@
+package com.ruoyi.web.work.api;
+
+import cn.hutool.json.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.ruoyi.common.annotation.Anonymous;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.entity.SysDept;
+import com.ruoyi.common.core.domain.entity.SysUser;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.system.service.ISysDeptService;
+import com.ruoyi.system.service.ISysUserService;
+import com.ruoyi.web.work.domain.DeptInfo;
+import com.ruoyi.web.work.domain.EmployeeInfo;
+import com.ruoyi.web.work.domain.WardInfo;
+import com.ruoyi.web.work.service.IDeptInfoService;
+import com.ruoyi.web.work.service.IEmployeeInfoService;
+import com.ruoyi.web.work.service.IWardInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.math.BigDecimal;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 回访模板管理
+ *
+ * @author lsw
+ * @date 2024-07-11
+ */
+@RestController
+@RequestMapping("/public")
+public class Api_MdmController {
+
+    @Autowired
+    private IWardInfoService wardInfoService;
+
+    @Autowired
+    private IEmployeeInfoService employeeInfoService;
+
+    @Autowired
+    private IDeptInfoService deptInfoService;
+
+    @Autowired
+    private ISysDeptService deptService;
+
+    @Autowired
+    private ISysUserService userService;
+
+    @Anonymous
+    @Log(title = "变更通知接收服务", businessType = BusinessType.INSERT)
+    @PostMapping("/acceptNotice")
+    public AjaxResult acceptNotice(@RequestHeader  Map<String,String> headMap,
+                                   @RequestBody  String requestBody,HttpServletResponse response) {
+        AjaxResult ajax = new AjaxResult();
+        String ackCode="300.1";
+        String ackMessage="接收失败";
+        boolean issuccess=false;
+        System.out.println("head: " + headMap.toString());
+        System.out.println("Request Body: " + requestBody);
+        //处理body数据
+        JSONObject jsonBodyObject = new JSONObject(requestBody);
+        JSONObject jsonRequest = new JSONObject(jsonBodyObject.get("Request"));
+        //处理Head数据
+        JSONObject jsonHead =new JSONObject(jsonRequest.get("Head"));
+        String version=jsonHead.get("Version").toString();
+        String orgId=jsonHead.get("OrgId").toString();
+        String appId=jsonHead.get("AppId").toString();
+        String recOrgId=jsonHead.get("RecOrgId").toString();
+        String recAppId=jsonHead.get("RecAppId").toString();
+        String messageId=jsonHead.get("MessageId").toString();
+        String trancode=jsonHead.get("TranCode").toString();
+        //处理Body数据
+        JSONObject jsonBody = new JSONObject(jsonRequest.get("Body"));
+        JSONObject jsonObject = new JSONObject(jsonBody.get("DataItem"));
+
+        if (trancode.equals("WardInfo")){
+            QueryWrapper<WardInfo> queryWrapper = new QueryWrapper<>();
+            String wardCode=jsonObject.get("wardCode").toString();
+            queryWrapper.eq("ward_code", wardCode);
+            int totalWardInfo =wardInfoService.count(queryWrapper);
+            issuccess=setWardInfo(totalWardInfo,jsonObject);
+        }else if(trancode.equals("EmployeeInfo")){
+            /*QueryWrapper<EmployeeInfo> queryWrapper = new QueryWrapper<>();
+            String employeeId=jsonObject.get("employeeId").toString();
+            queryWrapper.eq("employee_id", employeeId);
+            int totalWardInfo =employeeInfoService.count(queryWrapper);
+            issuccess=setEmployeeInfo(totalWardInfo,jsonObject);*/
+            QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
+            String employeeId=jsonObject.get("employeeId").toString();
+            queryWrapper.eq("employee_id", employeeId);
+            int totalWardInfo =userService.count(queryWrapper);
+            issuccess=setEmployeeInfo1(totalWardInfo,jsonObject);
+        }else if(trancode.equals("DeptInfo")){
+            /*QueryWrapper<DeptInfo> queryWrapper = new QueryWrapper<>();
+            String deptCode=jsonObject.get("deptCode").toString();
+            queryWrapper.eq("dept_code", deptCode);
+            int totalWardInfo =deptInfoService.count(queryWrapper);
+            issuccess=setDeptInfo(totalWardInfo,jsonObject);*/
+            QueryWrapper<SysDept> queryWrapper = new QueryWrapper<>();
+            String deptCode=jsonObject.get("deptCode").toString();
+            queryWrapper.eq("dept_code", deptCode);
+            int totalWardInfo =deptService.count(queryWrapper);
+            issuccess=setDeptInfo1(totalWardInfo,jsonObject);
+        }else{
+            ackCode="100.5";
+            ackMessage="参数错误";
+        }
+        if(issuccess){
+            ackCode="100.1";
+            ackMessage="接收成功";
+        }
+        //返回响应结果
+        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
+        String timestamp=dateFormat.format(new Date());
+        HashMap<String, Object> requestData=new HashMap<>();
+        HashMap<String, Object> headData=new HashMap<>();
+        headData.put("Version",version);
+        headData.put("AckCode",ackCode);
+        headData.put("AckMessage",ackMessage);
+        headData.put("ContentType","text/json");
+        headData.put("OrgId",orgId);
+        headData.put("AppId",appId);
+        headData.put("RecOrgId",recOrgId);
+        headData.put("RecAppId",recAppId);
+        headData.put("MessageId",messageId);
+        headData.put("Timestamp",timestamp);
+        requestData.put("Head",headData);
+        ajax.put("Request",requestData);
+        return ajax;
+    }
+
+    /*
+    * 添加或修改病区信息
+    * */
+    private boolean setWardInfo(int count,JSONObject jsonObject){
+        WardInfo wardInfo=new WardInfo();
+        wardInfo.setOrgCode(jsonObject.get("orgCode").toString());
+        wardInfo.setWardCode(jsonObject.get("wardCode").toString());
+        wardInfo.setWardName(jsonObject.get("wardName").toString());
+        wardInfo.setPy(jsonObject.get("py").toString());
+        wardInfo.setWb(jsonObject.get("wb").toString());
+        wardInfo.setInputCode(jsonObject.get("inputCode").toString());
+        String bedNumber=jsonObject.get("bedNumber").toString();
+        wardInfo.setBedNumber(Long.valueOf(bedNumber));
+        wardInfo.setWardTypeCode(jsonObject.get("wardTypeCode").toString());
+        wardInfo.setHomeBedSign(jsonObject.get("homeBedSign").toString());
+        wardInfo.setSpecialWardSign(jsonObject.get("specialWardSign").toString());
+        wardInfo.setMemo(jsonObject.get("memo").toString());
+        wardInfo.setValidStartDTime(jsonObject.get("validStartDTime").toString());
+        wardInfo.setValidEndDTime(jsonObject.get("validEndDTime").toString());
+        wardInfo.setActiveSign(jsonObject.get("activeSign").toString());
+        wardInfo.setVerNo(jsonObject.get("verNo").toString());
+        wardInfo.setOrderno(jsonObject.get("ORDERNO").toString());
+        boolean issuccess=false;
+        if(count>0){
+            //修改
+            wardInfo.setUpdateBy("admin");
+            wardInfo.setUpdateTime(new Date());
+            QueryWrapper<WardInfo> whereWrapper = new QueryWrapper<>();
+            whereWrapper.eq("ward_code", wardInfo.getWardCode());
+            boolean result = wardInfoService.update(wardInfo, whereWrapper);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }else{
+            //添加
+            wardInfo.setCreateBy("admin");
+            wardInfo.setCreateTime(new Date());
+            boolean result = wardInfoService.save(wardInfo);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }
+        return issuccess;
+    }
+
+    /*
+     * 添加或修改职工信息
+     * */
+    private boolean setEmployeeInfo(int count,JSONObject jsonObject){
+        EmployeeInfo employeeInfo=new EmployeeInfo();
+        employeeInfo.setOrgCode(jsonObject.get("orgCode").toString());
+        employeeInfo.setEmployeeId(jsonObject.get("employeeId").toString());
+        employeeInfo.setEmployeeName(jsonObject.get("employeeName").toString());
+        employeeInfo.setPy(jsonObject.get("py").toString());
+        employeeInfo.setWb(jsonObject.get("wb").toString());
+        employeeInfo.setInputCode(jsonObject.get("inputCode").toString());
+        if(jsonObject.get("genderCode") instanceof Number){
+            employeeInfo.setGenderCode(((Number) jsonObject.get("genderCode")).intValue());
+        }else {
+            employeeInfo.setGenderCode(0);
+        }
+        employeeInfo.setGenderName(jsonObject.get("genderName").toString());
+        employeeInfo.setBirthDate(jsonObject.get("birthDate").toString());
+        if(jsonObject.get("maritalStatusCode") instanceof Number){
+            employeeInfo.setMaritalStatusCode(((Number) jsonObject.get("maritalStatusCode")).intValue());
+        }else {
+            employeeInfo.setMaritalStatusCode(0);
+        }
+        if(jsonObject.get("IDTypeCode") instanceof Number){
+            employeeInfo.setIdTypeCode(((Number) jsonObject.get("IDTypeCode")).intValue());
+        }else {
+            employeeInfo.setIdTypeCode(0);
+        }
+        employeeInfo.setIdNo(jsonObject.get("IDNo").toString());
+        employeeInfo.setDeptCode(jsonObject.get("deptCode").toString());
+        employeeInfo.setDeptName(jsonObject.get("deptName").toString());
+        employeeInfo.setAdminDeptCode(jsonObject.get("adminDeptCode").toString());
+        employeeInfo.setAdminDeptName(jsonObject.get("adminDeptName").toString());
+        employeeInfo.setWardCode(jsonObject.get("wardCode").toString());
+        employeeInfo.setWardName(jsonObject.get("wardName").toString());
+        if(jsonObject.get("employeeTypeCode") instanceof Number){
+            employeeInfo.setEmployeeTypeCode(((Number) jsonObject.get("employeeTypeCode")).intValue());
+        }else {
+            employeeInfo.setEmployeeTypeCode(0);
+        }
+        if(jsonObject.get("techPositionCode") instanceof Number){
+            employeeInfo.setTechPositionCode(((Number) jsonObject.get("techPositionCode")).intValue());
+        }else {
+            employeeInfo.setTechPositionCode(0);
+        }
+        employeeInfo.setTechPositionName(jsonObject.get("techPositionName").toString());
+        employeeInfo.setTelephone(jsonObject.get("telephone").toString());
+        employeeInfo.setSupDoctorCode(jsonObject.get("supDoctorCode").toString());
+        employeeInfo.setSupDoctorName(jsonObject.get("supDoctorName").toString());
+        employeeInfo.setMedDocCode(jsonObject.get("medDocCode").toString());
+        employeeInfo.setDirDocSign(jsonObject.get("dirDocSign").toString());
+        employeeInfo.setPresRightSign(jsonObject.get("presRightSign").toString());
+        employeeInfo.setAnesPresRightSign(jsonObject.get("anesPresRightSign").toString());
+        employeeInfo.setSpecRegFee(jsonObject.get("specRegFee").toString());
+        if(jsonObject.get("limitNumber") instanceof Number){
+            employeeInfo.setLimitNumber(((Number) jsonObject.get("limitNumber")).intValue());
+        }else {
+            employeeInfo.setLimitNumber(0);
+        }
+        employeeInfo.setPresChapterNo(jsonObject.get("presChapterNo").toString());
+        employeeInfo.setMemo(jsonObject.get("memo").toString());
+        if(jsonObject.get("amLimitNo") instanceof Number){
+            employeeInfo.setAmLimitNo(((Number) jsonObject.get("amLimitNo")).intValue());
+        }else {
+            employeeInfo.setAmLimitNo(0);
+        }
+        if(jsonObject.get("pmLimitNo") instanceof Number){
+            employeeInfo.setPmLimitNo(((Number) jsonObject.get("pmLimitNo")).intValue());
+        }else {
+            employeeInfo.setPmLimitNo(0);
+        }
+        employeeInfo.setModifiedPresSign(jsonObject.get("modifiedPresSign").toString());
+        employeeInfo.setElecPresRight(jsonObject.get("elecPresRight").toString());
+        employeeInfo.setNoonLimitNo(jsonObject.get("noonLimitNo").toString());
+        employeeInfo.setEmergencyRegFee(jsonObject.get("emergencyRegFee").toString());
+        employeeInfo.setEmergencyMedFee(jsonObject.get("emergencyMedFee").toString());
+        employeeInfo.setEmergencyTreatFee(jsonObject.get("emergencyTreatFee").toString());
+        String degreeCode=jsonObject.get("degreeCode").toString();
+        if(degreeCode!=null&&degreeCode!=""&&!degreeCode.equals("null")){
+            employeeInfo.setDegreeCode(Long.valueOf(degreeCode));
+        }
+        employeeInfo.setPhotoUrl(jsonObject.get("photoUrl").toString());
+        employeeInfo.setSignatureGraph(jsonObject.get("signatureGraph").toString());
+        employeeInfo.setValidStartDTime(jsonObject.get("validStartDTime").toString());
+        employeeInfo.setValidEndDTime(jsonObject.get("validEndDTime").toString());
+        employeeInfo.setActiveSign(jsonObject.get("activeSign").toString());
+        employeeInfo.setVerNo(jsonObject.get("verNo").toString());
+        employeeInfo.setEmployeePassword(jsonObject.get("employeePassword").toString());
+        employeeInfo.setBmjb(jsonObject.get("bmjb").toString());
+        employeeInfo.setGwdm(jsonObject.get("gwdm").toString());
+        employeeInfo.setGwmc(jsonObject.get("gwmc").toString());
+        employeeInfo.setGhf(jsonObject.get("ghf").toString());
+        employeeInfo.setZlf(jsonObject.get("zlf").toString());
+        employeeInfo.setWzzxbz(jsonObject.get("wzzxbz").toString());
+        employeeInfo.setYsjb(jsonObject.get("ysjb").toString());
+        employeeInfo.setIsmsg(jsonObject.get("ismsg").toString());
+        employeeInfo.setSszcId(jsonObject.get("sszc_id").toString());
+        employeeInfo.setSszcMc(jsonObject.get("sszc_mc").toString());
+        employeeInfo.setCzry(jsonObject.get("czry").toString());
+        employeeInfo.setZxysdm(jsonObject.get("zxysdm").toString());
+        employeeInfo.setMzTfbz(jsonObject.get("mz_tfbz").toString());
+        employeeInfo.setSsfl(jsonObject.get("ssfl").toString());
+        employeeInfo.setZxksdm(jsonObject.get("zxksdm").toString());
+        employeeInfo.setIpaddress(jsonObject.get("ipaddress").toString());
+        employeeInfo.setSfyy(jsonObject.get("sfyy").toString());
+        employeeInfo.setYxj(jsonObject.get("yxj").toString());
+        employeeInfo.setIszkhs(jsonObject.get("iszkhs").toString());
+        employeeInfo.setZzghbz(jsonObject.get("zzghbz").toString());
+        employeeInfo.setSfxh(jsonObject.get("sfxh").toString());
+        employeeInfo.setTxbz(jsonObject.get("txbz").toString());
+        employeeInfo.setKsscfq(jsonObject.get("ksscfq").toString());
+        employeeInfo.setZyzz(jsonObject.get("zyzz").toString());
+        employeeInfo.setSjdpbbz(jsonObject.get("sjdpbbz").toString());
+        employeeInfo.setMxpbbz(jsonObject.get("mxpbbz").toString());
+        employeeInfo.setFzhxqz(jsonObject.get("fzhxqz").toString());
+        employeeInfo.setLsgbz(jsonObject.get("lsgbz").toString());
+        employeeInfo.setKzlywcfq(jsonObject.get("kzlywcfq").toString());
+        employeeInfo.setCwyyywcfq(jsonObject.get("cwyyywcfq").toString());
+        employeeInfo.setSqxtypbz(jsonObject.get("sqxtypbz").toString());
+        employeeInfo.setZkxtypbz(jsonObject.get("zkxtypbz").toString());
+        employeeInfo.setSsyzqx(jsonObject.get("ssyzqx").toString());
+        employeeInfo.setZgkh(jsonObject.get("zgkh").toString());
+        employeeInfo.setIsdbrqx(jsonObject.get("isdbrqx").toString());
+        employeeInfo.setJsry1(jsonObject.get("jsry1").toString());
+        employeeInfo.setZgjj(jsonObject.get("zgjj").toString());
+        employeeInfo.setJylcfq(jsonObject.get("jylcfq").toString());
+        employeeInfo.setJelcfq(jsonObject.get("jelcfq").toString());
+        employeeInfo.setJdlcfq(jsonObject.get("jdlcfq").toString());
+        employeeInfo.setBmcfzxysdm(jsonObject.get("bmcfzxysdm").toString());
+        employeeInfo.setJsypcfq(jsonObject.get("jsypcfq").toString());
+        employeeInfo.setXcfsyq(jsonObject.get("xcfsyq").toString());
+        employeeInfo.setFzyyspq(jsonObject.get("fzyyspq").toString());
+        employeeInfo.setSzyzq(jsonObject.get("szyzq").toString());
+        employeeInfo.setQkysq(jsonObject.get("qkysq").toString());
+        employeeInfo.setXgbjxhtyxq(jsonObject.get("xgbjxhtyxq").toString());
+        employeeInfo.setYzfsq(jsonObject.get("yzfsq").toString());
+        employeeInfo.setYzfscxq(jsonObject.get("yzfscxq").toString());
+        employeeInfo.setBlbjq(jsonObject.get("blbjq").toString());
+        employeeInfo.setHzq(jsonObject.get("hzq").toString());
+        employeeInfo.setGbys(jsonObject.get("gbys").toString());
+        employeeInfo.setZycfq(jsonObject.get("zycfq").toString());
+        employeeInfo.setMzcfq(jsonObject.get("mzcfq").toString());
+        employeeInfo.setFsypcfq(jsonObject.get("fsypcfq").toString());
+        employeeInfo.setJhsyypcfq(jsonObject.get("jhsyypcfq").toString());
+        employeeInfo.setCkfsgbqx(jsonObject.get("ckfsgbqx").toString());
+        employeeInfo.setPxyxj(jsonObject.get("pxyxj").toString());
+        employeeInfo.setGbysbz(jsonObject.get("gbysbz").toString());
+        employeeInfo.setMfhs(jsonObject.get("mfhs").toString());
+        employeeInfo.setXlMc(jsonObject.get("xl_mc").toString());
+        employeeInfo.setXwId(jsonObject.get("xw_id").toString());
+        employeeInfo.setXwMc(jsonObject.get("xw_mc").toString());
+        employeeInfo.setSfzzyy(jsonObject.get("sfzzyy").toString());
+        employeeInfo.setWjztxbz(jsonObject.get("wjztxbz").toString());
+        employeeInfo.setYbysbz(jsonObject.get("ybysbz").toString());
+        employeeInfo.setGjycfq(jsonObject.get("gjycfq").toString());
+        employeeInfo.setIsscpt(jsonObject.get("isscpt").toString());
+        employeeInfo.setDbcfq(jsonObject.get("dbcfq").toString());
+        employeeInfo.setRzrq(jsonObject.get("rzrq").toString());
+        employeeInfo.setLzrq(jsonObject.get("lzrq").toString());
+        employeeInfo.setKxgypzd(jsonObject.get("kxgypzd").toString());
+        if(jsonObject.get("bkxgypzd") instanceof Number){
+            employeeInfo.setBkxgypzd(((Number) jsonObject.get("bkxgypzd")).intValue());
+        }else {
+            employeeInfo.setBkxgypzd(0);
+        }
+        employeeInfo.setYszgzbm(jsonObject.get("yszgzbm").toString());
+        employeeInfo.setYszyzbm(jsonObject.get("yszyzbm").toString());
+        employeeInfo.setZwId(jsonObject.get("zw_id").toString());
+        employeeInfo.setZwMc(jsonObject.get("zw_mc").toString());
+        employeeInfo.setMdmphoto(jsonObject.get("mdmphoto").toString());
+        employeeInfo.setDlhsbz(jsonObject.get("dlhsbz").toString());
+        employeeInfo.setYszcbh(jsonObject.get("yszcbh").toString());
+        employeeInfo.setYszyfw(jsonObject.get("yszyfw").toString());
+        employeeInfo.setHszybh(jsonObject.get("hszybh").toString());
+        employeeInfo.setZgsc(jsonObject.get("zgsc").toString());
+        employeeInfo.setZglx(jsonObject.get("zglx").toString());
+        employeeInfo.setCfqz(jsonObject.get("cfqz").toString());
+        employeeInfo.setMzlycfqz(jsonObject.get("mzlycfqz").toString());
+        employeeInfo.setXycflrqz(jsonObject.get("xycflrqz").toString());
+        employeeInfo.setZycflrqz(jsonObject.get("zycflrqz").toString());
+        employeeInfo.setCycflrqz(jsonObject.get("cycflrqz").toString());
+        employeeInfo.setJslycfqz(jsonObject.get("jslycfqz").toString());
+        employeeInfo.setJdlycfqz(jsonObject.get("jdlycfqz").toString());
+        employeeInfo.setFzyyspqz(jsonObject.get("fzyyspqz").toString());
+        employeeInfo.setXcfsyqxz(jsonObject.get("xcfsyqxz").toString());
+        employeeInfo.setSzyzqxz(jsonObject.get("szyzqxz").toString());
+        employeeInfo.setQkysqxz(jsonObject.get("qkysqxz").toString());
+        employeeInfo.setXgbjxhtyxqxz(jsonObject.get("xgbjxhtyxqxz").toString());
+        employeeInfo.setYssfyyzfsqxz(jsonObject.get("yssfyyzfsqxz").toString());
+        employeeInfo.setXghqxzdbrsbqz(jsonObject.get("xghqxzdbrsbqz").toString());
+        employeeInfo.setFyxxdydcqz(jsonObject.get("fyxxdydcqz").toString());
+        employeeInfo.setDbybcfqz(jsonObject.get("dbybcfqz").toString());
+        employeeInfo.setJylyfqz(jsonObject.get("jylyfqz").toString());
+        employeeInfo.setGjycfqz(jsonObject.get("gjycfqz").toString());
+        employeeInfo.setZzrsyycfqz(jsonObject.get("zzrsyycfqz").toString());
+        employeeInfo.setCplyycfqz(jsonObject.get("cplyycfqz").toString());
+        employeeInfo.setTpsjsyycfqz(jsonObject.get("tpsjsyycfqz").toString());
+        employeeInfo.setXyzjyycfqz(jsonObject.get("xyzjyycfqz").toString());
+        employeeInfo.setYyjsyycfqz(jsonObject.get("yyjsyycfqz").toString());
+        employeeInfo.setMyzqyycfqz(jsonObject.get("myzqyycfqz").toString());
+        employeeInfo.setKzlywcfqz(jsonObject.get("kzlywcfqz").toString());
+        employeeInfo.setYlqtcfqz(jsonObject.get("ylqtcfqz").toString());
+        employeeInfo.setYzfscxqz(jsonObject.get("yzfscxqz").toString());
+        employeeInfo.setBlbjqz(jsonObject.get("blbjqz").toString());
+        employeeInfo.setHzqz(jsonObject.get("hzqz").toString());
+        employeeInfo.setBlzhcxdydcqz(jsonObject.get("blzhcxdydcqz").toString());
+        employeeInfo.setEmrblcxqz(jsonObject.get("emrblcxqz").toString());
+        employeeInfo.setBltjqz(jsonObject.get("bltjqz").toString());
+        employeeInfo.setCsqz(jsonObject.get("csqz").toString());
+        employeeInfo.setKsscfqz(jsonObject.get("ksscfqz").toString());
+        employeeInfo.setDbrqxz(jsonObject.get("dbrqxz").toString());
+        employeeInfo.setCwyyycfqz(jsonObject.get("cwyyycfqz").toString());
+        employeeInfo.setJelycfqz(jsonObject.get("jelycfqz").toString());
+        employeeInfo.setMzcfqz(jsonObject.get("mzcfqz").toString());
+        employeeInfo.setZycfqz(jsonObject.get("zycfqz").toString());
+        employeeInfo.setFsypcfqz(jsonObject.get("fsypcfqz").toString());
+        employeeInfo.setCkfsgbqz(jsonObject.get("ckfsgbqz").toString());
+        employeeInfo.setSfnkssyzz(jsonObject.get("sfnkssyzz").toString());
+        employeeInfo.setJhsyypcfqz(jsonObject.get("jhsyypcfqz").toString());
+        employeeInfo.setZlxmcfqz(jsonObject.get("zlxmcfqz").toString());
+        employeeInfo.setTbcfq(jsonObject.get("tbcfq").toString());
+        employeeInfo.setYjkscxq(jsonObject.get("yjkscxq").toString());
+        employeeInfo.setEjkscxq(jsonObject.get("ejkscxq").toString());
+        employeeInfo.setYwsyq(jsonObject.get("ywsyq").toString());
+        employeeInfo.setYbcfq(jsonObject.get("ybcfq").toString());
+        employeeInfo.setYydxyqcfq(jsonObject.get("yydxyqcfq").toString());
+        employeeInfo.setYlqtlcfq(jsonObject.get("ylqtlcfq").toString());
+        employeeInfo.setHzyqq(jsonObject.get("hzyqq").toString());
+        employeeInfo.setHzchq(jsonObject.get("hzchq").toString());
+        employeeInfo.setSqyxqx(jsonObject.get("sqyxqx").toString());
+        employeeInfo.setKsxdfwhqx(jsonObject.get("ksxdfwhqx").toString());
+        employeeInfo.setQyxdfwhqx(jsonObject.get("qyxdfwhqx").toString());
+        employeeInfo.setQygmxxzfqx(jsonObject.get("qygmxxzfqx").toString());
+        employeeInfo.setBkysdmjsjdxgqx(jsonObject.get("bkysdmjsjdxgqx").toString());
+        employeeInfo.setQyysdmjsjdxgqx(jsonObject.get("qyysdmjsjdxgqx").toString());
+        employeeInfo.setBmfglqx(jsonObject.get("bmfglqx").toString());
+        employeeInfo.setKszpglwhqx(jsonObject.get("kszpglwhqx").toString());
+        employeeInfo.setQyzpglwhqx(jsonObject.get("qyzpglwhqx").toString());
+        employeeInfo.setQydzblmbbjq(jsonObject.get("qydzblmbbjq").toString());
+        employeeInfo.setDzysbz(jsonObject.get("dzysbz").toString());
+        employeeInfo.setKzrshqx(jsonObject.get("kzrshqx").toString());
+        employeeInfo.setKfcfq(jsonObject.get("kfcfq").toString());
+        boolean issuccess=false;
+        if(count>0){
+            //修改
+            employeeInfo.setUpdateBy("admin");
+            employeeInfo.setUpdateTime(new Date());
+            QueryWrapper<EmployeeInfo> whereWrapper = new QueryWrapper<>();
+            whereWrapper.eq("employee_id", employeeInfo.getEmployeeId());
+            boolean result = employeeInfoService.update(employeeInfo, whereWrapper);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }else{
+            //添加
+            employeeInfo.setCreateBy("admin");
+            employeeInfo.setCreateTime(new Date());
+            boolean result = employeeInfoService.save(employeeInfo);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }
+        return issuccess;
+    }
+
+    /*
+     * 添加或修改职工信息sysuser
+     * */
+    private boolean setEmployeeInfo1(int count,JSONObject jsonObject){
+        //查找所属部门
+        QueryWrapper<SysDept> queryWrapper = new QueryWrapper<>();
+        String deptCode=jsonObject.get("deptCode").toString();
+        queryWrapper.eq("dept_code", deptCode);
+        SysDept sysDept1 =deptService.getOne(queryWrapper);
+        Long deptId=0L;
+        if(sysDept1!=null){
+            deptId=sysDept1.getDeptId();
+        }
+        //组装职工数据dept_id
+        SysUser employeeInfo=new SysUser();
+        employeeInfo.setDeptId(deptId);
+        employeeInfo.setPhonenumber(jsonObject.get("telephone").toString());
+        employeeInfo.setOrgCode(jsonObject.get("orgCode").toString());
+        employeeInfo.setEmployeeId(jsonObject.get("employeeId").toString());
+        employeeInfo.setEmployeeName(jsonObject.get("employeeName").toString());
+        employeeInfo.setPy(jsonObject.get("py").toString());
+        employeeInfo.setWb(jsonObject.get("wb").toString());
+        employeeInfo.setInputCode(jsonObject.get("inputCode").toString());
+        if(jsonObject.get("genderCode") instanceof Number){
+            employeeInfo.setGenderCode(((Number) jsonObject.get("genderCode")).intValue());
+        }else {
+            employeeInfo.setGenderCode(0);
+        }
+        employeeInfo.setGenderName(jsonObject.get("genderName").toString());
+        employeeInfo.setBirthDate(jsonObject.get("birthDate").toString());
+        if(jsonObject.get("maritalStatusCode") instanceof Number){
+            employeeInfo.setMaritalStatusCode(((Number) jsonObject.get("maritalStatusCode")).intValue());
+        }else {
+            employeeInfo.setMaritalStatusCode(0);
+        }
+        if(jsonObject.get("idTypeCode") instanceof Number){
+            employeeInfo.setIdTypeCode(((Number) jsonObject.get("idTypeCode")).intValue());
+        }else {
+            employeeInfo.setIdTypeCode(0);
+        }
+        employeeInfo.setIdNo(jsonObject.get("IDNo").toString());
+        employeeInfo.setDeptCode(jsonObject.get("deptCode").toString());
+        employeeInfo.setDeptName(jsonObject.get("deptName").toString());
+        employeeInfo.setAdminDeptCode(jsonObject.get("adminDeptCode").toString());
+        employeeInfo.setAdminDeptName(jsonObject.get("adminDeptName").toString());
+        employeeInfo.setWardCode(jsonObject.get("wardCode").toString());
+        employeeInfo.setWardName(jsonObject.get("wardName").toString());
+        if(jsonObject.get("employeeTypeCode") instanceof Number){
+            employeeInfo.setEmployeeTypeCode(((Number) jsonObject.get("employeeTypeCode")).intValue());
+        }else {
+            employeeInfo.setEmployeeTypeCode(0);
+        }
+        if(jsonObject.get("techPositionCode") instanceof Number){
+            employeeInfo.setTechPositionCode(((Number) jsonObject.get("techPositionCode")).intValue());
+        }else {
+            employeeInfo.setTechPositionCode(0);
+        }
+        employeeInfo.setTechPositionName(jsonObject.get("techPositionName").toString());
+        employeeInfo.setTelephone(jsonObject.get("telephone").toString());
+        employeeInfo.setSupDoctorCode(jsonObject.get("supDoctorCode").toString());
+        employeeInfo.setSupDoctorName(jsonObject.get("supDoctorName").toString());
+        employeeInfo.setMedDocCode(jsonObject.get("medDocCode").toString());
+        employeeInfo.setDirDocSign(jsonObject.get("dirDocSign").toString());
+        employeeInfo.setPresRightSign(jsonObject.get("presRightSign").toString());
+        employeeInfo.setAnesPresRightSign(jsonObject.get("anesPresRightSign").toString());
+        employeeInfo.setSpecRegFee(jsonObject.get("specRegFee").toString());
+        if(jsonObject.get("limitNumber") instanceof Number){
+            employeeInfo.setLimitNumber(((Number) jsonObject.get("limitNumber")).intValue());
+        }else {
+            employeeInfo.setLimitNumber(0);
+        }
+        employeeInfo.setPresChapterNo(jsonObject.get("presChapterNo").toString());
+        employeeInfo.setMemo(jsonObject.get("memo").toString());
+        if(jsonObject.get("amLimitNo") instanceof Number){
+            employeeInfo.setAmLimitNo(((Number) jsonObject.get("amLimitNo")).intValue());
+        }else {
+            employeeInfo.setAmLimitNo(0);
+        }
+        if(jsonObject.get("pmLimitNo") instanceof Number){
+            employeeInfo.setPmLimitNo(((Number) jsonObject.get("pmLimitNo")).intValue());
+        }else {
+            employeeInfo.setPmLimitNo(0);
+        }
+        employeeInfo.setModifiedPresSign(jsonObject.get("modifiedPresSign").toString());
+        employeeInfo.setElecPresRight(jsonObject.get("elecPresRight").toString());
+        employeeInfo.setNoonLimitNo(jsonObject.get("noonLimitNo").toString());
+        employeeInfo.setEmergencyRegFee(jsonObject.get("emergencyRegFee").toString());
+        employeeInfo.setEmergencyMedFee(jsonObject.get("emergencyMedFee").toString());
+        employeeInfo.setEmergencyTreatFee(jsonObject.get("emergencyTreatFee").toString());
+        String degreeCode=jsonObject.get("degreeCode").toString();
+        if(degreeCode!=null&&degreeCode!=""&&!degreeCode.equals("null")){
+            employeeInfo.setDegreeCode(Long.valueOf(degreeCode));
+        }
+        employeeInfo.setPhotoUrl(jsonObject.get("photoUrl").toString());
+        employeeInfo.setSignatureGraph(jsonObject.get("signatureGraph").toString());
+        employeeInfo.setValidStartDTime(jsonObject.get("validStartDTime").toString());
+        employeeInfo.setValidEndDTime(jsonObject.get("validEndDTime").toString());
+        employeeInfo.setActiveSign(jsonObject.get("activeSign").toString());
+        employeeInfo.setVerNo(jsonObject.get("verNo").toString());
+        employeeInfo.setEmployeePassword(jsonObject.get("employeePassword").toString());
+        employeeInfo.setBmjb(jsonObject.get("bmjb").toString());
+        employeeInfo.setGwdm(jsonObject.get("gwdm").toString());
+        employeeInfo.setGwmc(jsonObject.get("gwmc").toString());
+        employeeInfo.setGhf(jsonObject.get("ghf").toString());
+        employeeInfo.setZlf(jsonObject.get("zlf").toString());
+        employeeInfo.setWzzxbz(jsonObject.get("wzzxbz").toString());
+        employeeInfo.setYsjb(jsonObject.get("ysjb").toString());
+        employeeInfo.setIsmsg(jsonObject.get("ismsg").toString());
+        employeeInfo.setSszcId(jsonObject.get("sszc_id").toString());
+        employeeInfo.setSszcMc(jsonObject.get("sszc_mc").toString());
+        employeeInfo.setCzry(jsonObject.get("czry").toString());
+        employeeInfo.setZxysdm(jsonObject.get("zxysdm").toString());
+        employeeInfo.setMzTfbz(jsonObject.get("mz_tfbz").toString());
+        employeeInfo.setSsfl(jsonObject.get("ssfl").toString());
+        employeeInfo.setZxksdm(jsonObject.get("zxksdm").toString());
+        employeeInfo.setIpaddress(jsonObject.get("ipaddress").toString());
+        employeeInfo.setSfyy(jsonObject.get("sfyy").toString());
+        employeeInfo.setYxj(jsonObject.get("yxj").toString());
+        employeeInfo.setIszkhs(jsonObject.get("iszkhs").toString());
+        employeeInfo.setZzghbz(jsonObject.get("zzghbz").toString());
+        employeeInfo.setSfxh(jsonObject.get("sfxh").toString());
+        employeeInfo.setTxbz(jsonObject.get("txbz").toString());
+        employeeInfo.setKsscfq(jsonObject.get("ksscfq").toString());
+        employeeInfo.setZyzz(jsonObject.get("zyzz").toString());
+        employeeInfo.setSjdpbbz(jsonObject.get("sjdpbbz").toString());
+        employeeInfo.setMxpbbz(jsonObject.get("mxpbbz").toString());
+        employeeInfo.setFzhxqz(jsonObject.get("fzhxqz").toString());
+        employeeInfo.setLsgbz(jsonObject.get("lsgbz").toString());
+        employeeInfo.setKzlywcfq(jsonObject.get("kzlywcfq").toString());
+        employeeInfo.setCwyyywcfq(jsonObject.get("cwyyywcfq").toString());
+        employeeInfo.setSqxtypbz(jsonObject.get("sqxtypbz").toString());
+        employeeInfo.setZkxtypbz(jsonObject.get("zkxtypbz").toString());
+        employeeInfo.setSsyzqx(jsonObject.get("ssyzqx").toString());
+        employeeInfo.setZgkh(jsonObject.get("zgkh").toString());
+        employeeInfo.setIsdbrqx(jsonObject.get("isdbrqx").toString());
+        employeeInfo.setJsry1(jsonObject.get("jsry1").toString());
+        employeeInfo.setZgjj(jsonObject.get("zgjj").toString());
+        employeeInfo.setJylcfq(jsonObject.get("jylcfq").toString());
+        employeeInfo.setJelcfq(jsonObject.get("jelcfq").toString());
+        employeeInfo.setJdlcfq(jsonObject.get("jdlcfq").toString());
+        employeeInfo.setBmcfzxysdm(jsonObject.get("bmcfzxysdm").toString());
+        employeeInfo.setJsypcfq(jsonObject.get("jsypcfq").toString());
+        employeeInfo.setXcfsyq(jsonObject.get("xcfsyq").toString());
+        employeeInfo.setFzyyspq(jsonObject.get("fzyyspq").toString());
+        employeeInfo.setSzyzq(jsonObject.get("szyzq").toString());
+        employeeInfo.setQkysq(jsonObject.get("qkysq").toString());
+        employeeInfo.setXgbjxhtyxq(jsonObject.get("xgbjxhtyxq").toString());
+        employeeInfo.setYzfsq(jsonObject.get("yzfsq").toString());
+        employeeInfo.setYzfscxq(jsonObject.get("yzfscxq").toString());
+        employeeInfo.setBlbjq(jsonObject.get("blbjq").toString());
+        employeeInfo.setHzq(jsonObject.get("hzq").toString());
+        employeeInfo.setGbys(jsonObject.get("gbys").toString());
+        employeeInfo.setZycfq(jsonObject.get("zycfq").toString());
+        employeeInfo.setMzcfq(jsonObject.get("mzcfq").toString());
+        employeeInfo.setFsypcfq(jsonObject.get("fsypcfq").toString());
+        employeeInfo.setJhsyypcfq(jsonObject.get("jhsyypcfq").toString());
+        employeeInfo.setCkfsgbqx(jsonObject.get("ckfsgbqx").toString());
+        employeeInfo.setPxyxj(jsonObject.get("pxyxj").toString());
+        employeeInfo.setGbysbz(jsonObject.get("gbysbz").toString());
+        employeeInfo.setMfhs(jsonObject.get("mfhs").toString());
+        employeeInfo.setXlMc(jsonObject.get("xl_mc").toString());
+        employeeInfo.setXwId(jsonObject.get("xw_id").toString());
+        employeeInfo.setXwMc(jsonObject.get("xw_mc").toString());
+        employeeInfo.setSfzzyy(jsonObject.get("sfzzyy").toString());
+        employeeInfo.setWjztxbz(jsonObject.get("wjztxbz").toString());
+        employeeInfo.setYbysbz(jsonObject.get("ybysbz").toString());
+        employeeInfo.setGjycfq(jsonObject.get("gjycfq").toString());
+        employeeInfo.setIsscpt(jsonObject.get("isscpt").toString());
+        employeeInfo.setDbcfq(jsonObject.get("dbcfq").toString());
+        employeeInfo.setRzrq(jsonObject.get("rzrq").toString());
+        employeeInfo.setLzrq(jsonObject.get("lzrq").toString());
+        employeeInfo.setKxgypzd(jsonObject.get("kxgypzd").toString());
+        if(jsonObject.get("bkxgypzd") instanceof Number){
+            employeeInfo.setBkxgypzd(((Number) jsonObject.get("bkxgypzd")).intValue());
+        }else {
+            employeeInfo.setBkxgypzd(0);
+        }
+        employeeInfo.setYszgzbm(jsonObject.get("yszgzbm").toString());
+        employeeInfo.setYszyzbm(jsonObject.get("yszyzbm").toString());
+        employeeInfo.setZwId(jsonObject.get("zw_id").toString());
+        employeeInfo.setZwMc(jsonObject.get("zw_mc").toString());
+        employeeInfo.setMdmphoto(jsonObject.get("mdmphoto").toString());
+        employeeInfo.setDlhsbz(jsonObject.get("dlhsbz").toString());
+        employeeInfo.setYszcbh(jsonObject.get("yszcbh").toString());
+        employeeInfo.setYszyfw(jsonObject.get("yszyfw").toString());
+        employeeInfo.setHszybh(jsonObject.get("hszybh").toString());
+        employeeInfo.setZgsc(jsonObject.get("zgsc").toString());
+        employeeInfo.setZglx(jsonObject.get("zglx").toString());
+        employeeInfo.setCfqz(jsonObject.get("cfqz").toString());
+        employeeInfo.setMzlycfqz(jsonObject.get("mzlycfqz").toString());
+        employeeInfo.setXycflrqz(jsonObject.get("xycflrqz").toString());
+        employeeInfo.setZycflrqz(jsonObject.get("zycflrqz").toString());
+        employeeInfo.setCycflrqz(jsonObject.get("cycflrqz").toString());
+        employeeInfo.setJslycfqz(jsonObject.get("jslycfqz").toString());
+        employeeInfo.setJdlycfqz(jsonObject.get("jdlycfqz").toString());
+        employeeInfo.setFzyyspqz(jsonObject.get("fzyyspqz").toString());
+        employeeInfo.setXcfsyqxz(jsonObject.get("xcfsyqxz").toString());
+        employeeInfo.setSzyzqxz(jsonObject.get("szyzqxz").toString());
+        employeeInfo.setQkysqxz(jsonObject.get("qkysqxz").toString());
+        employeeInfo.setXgbjxhtyxqxz(jsonObject.get("xgbjxhtyxqxz").toString());
+        employeeInfo.setYssfyyzfsqxz(jsonObject.get("yssfyyzfsqxz").toString());
+        employeeInfo.setXghqxzdbrsbqz(jsonObject.get("xghqxzdbrsbqz").toString());
+        employeeInfo.setFyxxdydcqz(jsonObject.get("fyxxdydcqz").toString());
+        employeeInfo.setDbybcfqz(jsonObject.get("dbybcfqz").toString());
+        employeeInfo.setJylyfqz(jsonObject.get("jylyfqz").toString());
+        employeeInfo.setGjycfqz(jsonObject.get("gjycfqz").toString());
+        employeeInfo.setZzrsyycfqz(jsonObject.get("zzrsyycfqz").toString());
+        employeeInfo.setCplyycfqz(jsonObject.get("cplyycfqz").toString());
+        employeeInfo.setTpsjsyycfqz(jsonObject.get("tpsjsyycfqz").toString());
+        employeeInfo.setXyzjyycfqz(jsonObject.get("xyzjyycfqz").toString());
+        employeeInfo.setYyjsyycfqz(jsonObject.get("yyjsyycfqz").toString());
+        employeeInfo.setMyzqyycfqz(jsonObject.get("myzqyycfqz").toString());
+        employeeInfo.setKzlywcfqz(jsonObject.get("kzlywcfqz").toString());
+        employeeInfo.setYlqtcfqz(jsonObject.get("ylqtcfqz").toString());
+        employeeInfo.setYzfscxqz(jsonObject.get("yzfscxqz").toString());
+        employeeInfo.setBlbjqz(jsonObject.get("blbjqz").toString());
+        employeeInfo.setHzqz(jsonObject.get("hzqz").toString());
+        employeeInfo.setBlzhcxdydcqz(jsonObject.get("blzhcxdydcqz").toString());
+        employeeInfo.setEmrblcxqz(jsonObject.get("emrblcxqz").toString());
+        employeeInfo.setBltjqz(jsonObject.get("bltjqz").toString());
+        employeeInfo.setCsqz(jsonObject.get("csqz").toString());
+        employeeInfo.setKsscfqz(jsonObject.get("ksscfqz").toString());
+        employeeInfo.setDbrqxz(jsonObject.get("dbrqxz").toString());
+        employeeInfo.setCwyyycfqz(jsonObject.get("cwyyycfqz").toString());
+        employeeInfo.setJelycfqz(jsonObject.get("jelycfqz").toString());
+        employeeInfo.setMzcfqz(jsonObject.get("mzcfqz").toString());
+        employeeInfo.setZycfqz(jsonObject.get("zycfqz").toString());
+        employeeInfo.setFsypcfqz(jsonObject.get("fsypcfqz").toString());
+        employeeInfo.setCkfsgbqz(jsonObject.get("ckfsgbqz").toString());
+        employeeInfo.setSfnkssyzz(jsonObject.get("sfnkssyzz").toString());
+        employeeInfo.setJhsyypcfqz(jsonObject.get("jhsyypcfqz").toString());
+        employeeInfo.setZlxmcfqz(jsonObject.get("zlxmcfqz").toString());
+        employeeInfo.setTbcfq(jsonObject.get("tbcfq").toString());
+        employeeInfo.setYjkscxq(jsonObject.get("yjkscxq").toString());
+        employeeInfo.setEjkscxq(jsonObject.get("ejkscxq").toString());
+        employeeInfo.setYwsyq(jsonObject.get("ywsyq").toString());
+        employeeInfo.setYbcfq(jsonObject.get("ybcfq").toString());
+        employeeInfo.setYydxyqcfq(jsonObject.get("yydxyqcfq").toString());
+        employeeInfo.setYlqtlcfq(jsonObject.get("ylqtlcfq").toString());
+        employeeInfo.setHzyqq(jsonObject.get("hzyqq").toString());
+        employeeInfo.setHzchq(jsonObject.get("hzchq").toString());
+        employeeInfo.setSqyxqx(jsonObject.get("sqyxqx").toString());
+        employeeInfo.setKsxdfwhqx(jsonObject.get("ksxdfwhqx").toString());
+        employeeInfo.setQyxdfwhqx(jsonObject.get("qyxdfwhqx").toString());
+        employeeInfo.setQygmxxzfqx(jsonObject.get("qygmxxzfqx").toString());
+        employeeInfo.setBkysdmjsjdxgqx(jsonObject.get("bkysdmjsjdxgqx").toString());
+        employeeInfo.setQyysdmjsjdxgqx(jsonObject.get("qyysdmjsjdxgqx").toString());
+        employeeInfo.setBmfglqx(jsonObject.get("bmfglqx").toString());
+        employeeInfo.setKszpglwhqx(jsonObject.get("kszpglwhqx").toString());
+        employeeInfo.setQyzpglwhqx(jsonObject.get("qyzpglwhqx").toString());
+        employeeInfo.setQydzblmbbjq(jsonObject.get("qydzblmbbjq").toString());
+        employeeInfo.setDzysbz(jsonObject.get("dzysbz").toString());
+        employeeInfo.setKzrshqx(jsonObject.get("kzrshqx").toString());
+        employeeInfo.setKfcfq(jsonObject.get("kfcfq").toString());
+        boolean issuccess=false;
+        if(count>0){
+            //修改
+            employeeInfo.setUpdateBy("admin");
+            employeeInfo.setUpdateTime(new Date());
+            QueryWrapper<SysUser> whereWrapper = new QueryWrapper<>();
+            whereWrapper.eq("employee_id", employeeInfo.getEmployeeId());
+            boolean result = userService.update(employeeInfo, whereWrapper);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }else{
+            //添加
+            employeeInfo.setUserName(jsonObject.get("employeeId").toString());
+            employeeInfo.setNickName(jsonObject.get("employeeName").toString());
+            employeeInfo.setPassword(SecurityUtils.encryptPassword("123456"));
+            employeeInfo.setStatus("0");
+            employeeInfo.setDelFlag("0");
+            employeeInfo.setCreateBy("admin");
+            employeeInfo.setCreateTime(new Date());
+            boolean result = userService.save(employeeInfo);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }
+        return issuccess;
+    }
+
+    /*
+     * 添加或修改科室信息
+     * */
+    private boolean setDeptInfo(int count, JSONObject jsonObject){
+        DeptInfo deptInfo=new DeptInfo();
+        deptInfo.setOrgCode(jsonObject.get("orgCode").toString());
+        deptInfo.setDeptCode(jsonObject.get("deptCode").toString());
+        deptInfo.setDeptName(jsonObject.get("deptName").toString());
+        deptInfo.setPy(jsonObject.get("py").toString());
+        deptInfo.setWb(jsonObject.get("wb").toString());
+        deptInfo.setInputCode(jsonObject.get("inputCode").toString());
+        deptInfo.setDeptCodeOne(jsonObject.get("deptCodeOne").toString());
+        deptInfo.setDeptNameOne(jsonObject.get("deptNameOne").toString());
+        deptInfo.setDeptCodeTwo(jsonObject.get("deptCodeTwo").toString());
+        deptInfo.setDeptNameTwo(jsonObject.get("deptNameTwo").toString());
+        deptInfo.setMedDeptCode(jsonObject.get("medDeptCode").toString());
+        deptInfo.setMedDeptName(jsonObject.get("medDeptName").toString());
+        deptInfo.setAccountDeptCode(jsonObject.get("accountDeptCode").toString());
+        deptInfo.setAccountDeptName(jsonObject.get("accountDeptName").toString());
+        deptInfo.setDeptTypeCode(new BigDecimal(jsonObject.get("deptTypeCode").toString()));
+        deptInfo.setDeptAddr(jsonObject.get("deptAddr").toString());
+        String depositWarLine=jsonObject.get("depositWarLine").toString();
+        deptInfo.setDepositWarLine(new BigDecimal(depositWarLine));
+        deptInfo.setErSign(jsonObject.get("ERSign").toString());
+        deptInfo.setSpecialtySign(jsonObject.get("specialtySign").toString());
+        deptInfo.setChildSign(jsonObject.get("childSign").toString());
+        deptInfo.setRupplyRoomSign(jsonObject.get("rupplyRoomSign").toString());
+        deptInfo.setChineseMedSign(jsonObject.get("chineseMedSign").toString());
+        deptInfo.setOweCtrlSign(jsonObject.get("oweCtrlSign").toString());
+        deptInfo.setDeptSign(jsonObject.get("deptSign").toString());
+        if(jsonObject.get("limitNo") instanceof Number){
+            deptInfo.setLimitNo(((Number) jsonObject.get("limitNo")).intValue());
+        }else {
+            deptInfo.setLimitNo(0);
+        }
+        if(jsonObject.get("chiefDoctNo") instanceof Number){
+            deptInfo.setChiefDoctNo(((Number) jsonObject.get("chiefDoctNo")).intValue());
+        }else {
+            deptInfo.setChiefDoctNo(0);
+        }
+        if(jsonObject.get("resiDoctNo") instanceof Number){
+            deptInfo.setResiDoctNo(((Number) jsonObject.get("resiDoctNo")).intValue());
+        }else {
+            deptInfo.setResiDoctNo(0);
+        }
+        if(jsonObject.get("atndDoctNo") instanceof Number){
+            deptInfo.setAtndDoctNo(((Number) jsonObject.get("atndDoctNo")).intValue());
+        }else {
+            deptInfo.setAtndDoctNo(0);
+        }
+        if(jsonObject.get("nursNo") instanceof Number){
+            deptInfo.setNursNo(((Number) jsonObject.get("nursNo")).intValue());
+        }else {
+            deptInfo.setNursNo(0);
+        }
+        if(jsonObject.get("assessedBedsNo") instanceof Number){
+            deptInfo.setAssessedBedsNo(((Number) jsonObject.get("assessedBedsNo")).intValue());
+        }else {
+            deptInfo.setAssessedBedsNo(0);
+        }
+        deptInfo.setDepositBndonLine(new BigDecimal(jsonObject.get("depositBndonLine").toString()));
+        if(jsonObject.containsKey("tcmEmrSign")){
+            deptInfo.setTcmEmrSign(jsonObject.get("tcmEmrSign").toString());
+        }
+        deptInfo.setNurseStationIp(jsonObject.get("nurseStationIP").toString());
+        if(jsonObject.get("authorizeBeds") instanceof Number){
+            deptInfo.setAuthorizeBeds(((Number) jsonObject.get("authorizeBeds")).intValue());
+        }else {
+            deptInfo.setAuthorizeBeds(0);
+        }
+        if(jsonObject.get("authorizeHomeBeds") instanceof Number){
+            deptInfo.setAuthorizeHomeBeds(((Number) jsonObject.get("authorizeHomeBeds")).intValue());
+        }else {
+            deptInfo.setAuthorizeHomeBeds(0);
+        }
+        deptInfo.setConfirmDeptSign(jsonObject.get("confirmDeptSign").toString());
+        deptInfo.setSubmitDeptCode(jsonObject.get("submitDeptCode").toString());
+        deptInfo.setSubmitDeptName(jsonObject.get("submitDeptName").toString());
+        deptInfo.setSelfRegisterSign(jsonObject.get("selfRegisterSign").toString());
+        deptInfo.setPharmSign(jsonObject.get("pharmSign").toString());
+        deptInfo.setSpecDiseaseSign(jsonObject.get("specDiseaseSign").toString());
+        deptInfo.setDeptIp(jsonObject.get("deptIP").toString());
+        deptInfo.setCorrespondingDeptCode(jsonObject.get("correspondingDeptCode").toString());
+        deptInfo.setCorrespondingDeptName(jsonObject.get("correspondingDeptName").toString());
+        deptInfo.setGenerPracStationSign(jsonObject.get("generPracStationSign").toString());
+        deptInfo.setTriagePrefix(jsonObject.get("triagePrefix").toString());
+        deptInfo.setAljkSign(jsonObject.get("aljkSign").toString());
+        deptInfo.setDeptLocation(jsonObject.get("deptLocation").toString());
+        deptInfo.setDeptLocation2(jsonObject.get("deptLocation2").toString());
+        deptInfo.setDeptLocation3(jsonObject.get("deptLocation3").toString());
+        deptInfo.setDeptLocation4(jsonObject.get("deptLocation4").toString());
+        deptInfo.setSpecialistSign(jsonObject.get("specialistSign").toString());
+        deptInfo.setApntSign(jsonObject.get("apntSign").toString());
+        deptInfo.setMemo(jsonObject.get("memo").toString());
+        deptInfo.setValidStartDTime(jsonObject.get("validStartDTime").toString());
+        deptInfo.setValidEndDTime(jsonObject.get("validEndDTime").toString());
+        deptInfo.setActiveSign(jsonObject.get("activeSign").toString());
+        deptInfo.setVerNo(jsonObject.get("verNo").toString());
+        deptInfo.setOrderno(jsonObject.get("ORDERNO").toString());
+        deptInfo.setYjbj(jsonObject.get("YJBJ").toString());
+        deptInfo.setZzms(jsonObject.get("ZZMS").toString());
+        boolean issuccess=false;
+        if(count>0){
+            deptInfo.setUpdateBy("admin");
+            deptInfo.setUpdateTime(new Date());
+            //修改
+            QueryWrapper<DeptInfo> whereWrapper = new QueryWrapper<>();
+            whereWrapper.eq("dept_code", deptInfo.getDeptCode());
+            boolean result = deptInfoService.update(deptInfo, whereWrapper);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }else{
+            //添加
+            deptInfo.setCreateBy("admin");
+            deptInfo.setCreateTime(new Date());
+            boolean result = deptInfoService.save(deptInfo);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }
+        return issuccess;
+    }
+
+    /*
+     * 添加或修改科室信息SysDept
+     * */
+    private boolean setDeptInfo1(int count, JSONObject jsonObject){
+        SysDept deptInfo=new SysDept();
+        deptInfo.setOrgCode(jsonObject.get("orgCode").toString());
+        deptInfo.setDeptCode(jsonObject.get("deptCode").toString());
+        deptInfo.setDeptName(jsonObject.get("deptName").toString());
+        deptInfo.setPy(jsonObject.get("py").toString());
+        deptInfo.setWb(jsonObject.get("wb").toString());
+        deptInfo.setInputCode(jsonObject.get("inputCode").toString());
+        deptInfo.setDeptCodeOne(jsonObject.get("deptCodeOne").toString());
+        deptInfo.setDeptNameOne(jsonObject.get("deptNameOne").toString());
+        deptInfo.setDeptCodeTwo(jsonObject.get("deptCodeTwo").toString());
+        deptInfo.setDeptNameTwo(jsonObject.get("deptNameTwo").toString());
+        deptInfo.setMedDeptCode(jsonObject.get("medDeptCode").toString());
+        deptInfo.setMedDeptName(jsonObject.get("medDeptName").toString());
+        deptInfo.setAccountDeptCode(jsonObject.get("accountDeptCode").toString());
+        deptInfo.setAccountDeptName(jsonObject.get("accountDeptName").toString());
+        String deptTypeCode=jsonObject.get("deptTypeCode").toString();
+        deptInfo.setDeptTypeCode(Long.valueOf(deptTypeCode));
+        deptInfo.setDeptAddr(jsonObject.get("deptAddr").toString());
+        String depositWarLine=jsonObject.get("depositWarLine").toString();
+        deptInfo.setDepositWarLine(new BigDecimal(depositWarLine));
+        deptInfo.setErSign(jsonObject.get("ERSign").toString());
+        deptInfo.setSpecialtySign(jsonObject.get("specialtySign").toString());
+        deptInfo.setChildSign(jsonObject.get("childSign").toString());
+        deptInfo.setRupplyRoomSign(jsonObject.get("rupplyRoomSign").toString());
+        deptInfo.setChineseMedSign(jsonObject.get("chineseMedSign").toString());
+        deptInfo.setOweCtrlSign(jsonObject.get("oweCtrlSign").toString());
+        deptInfo.setDeptSign(jsonObject.get("deptSign").toString());
+        if(jsonObject.get("limitNo") instanceof Number){
+            deptInfo.setLimitNo(((Number) jsonObject.get("limitNo")).intValue());
+        }else {
+            deptInfo.setLimitNo(0);
+        }
+        if(jsonObject.get("chiefDoctNo") instanceof Number){
+            deptInfo.setChiefDoctNo(((Number) jsonObject.get("chiefDoctNo")).intValue());
+        }else {
+            deptInfo.setChiefDoctNo(0);
+        }
+        if(jsonObject.get("resiDoctNo") instanceof Number){
+            deptInfo.setResiDoctNo(((Number) jsonObject.get("resiDoctNo")).intValue());
+        }else {
+            deptInfo.setResiDoctNo(0);
+        }
+        if(jsonObject.get("atndDoctNo") instanceof Number){
+            deptInfo.setAtndDoctNo(((Number) jsonObject.get("atndDoctNo")).intValue());
+        }else {
+            deptInfo.setAtndDoctNo(0);
+        }
+        if(jsonObject.get("nursNo") instanceof Number){
+            deptInfo.setNursNo(((Number) jsonObject.get("nursNo")).intValue());
+        }else {
+            deptInfo.setNursNo(0);
+        }
+        if(jsonObject.get("assessedBedsNo") instanceof Number){
+            deptInfo.setAssessedBedsNo(((Number) jsonObject.get("assessedBedsNo")).intValue());
+        }else {
+            deptInfo.setAssessedBedsNo(0);
+        }
+        deptInfo.setDepositBndonLine(new BigDecimal(jsonObject.get("depositBndonLine").toString()));
+        if(jsonObject.containsKey("tcmEmrSign")){
+            deptInfo.setTcmEmrSign(jsonObject.get("tcmEmrSign").toString());
+        }
+        deptInfo.setNurseStationIp(jsonObject.get("nurseStationIP").toString());
+        if(jsonObject.get("authorizeBeds") instanceof Number){
+            deptInfo.setAuthorizeBeds(((Number) jsonObject.get("authorizeBeds")).intValue());
+        }else {
+            deptInfo.setAuthorizeBeds(0);
+        }
+        if(jsonObject.get("authorizeHomeBeds") instanceof Number){
+            deptInfo.setAuthorizeHomeBeds(((Number) jsonObject.get("authorizeHomeBeds")).intValue());
+        }else {
+            deptInfo.setAuthorizeHomeBeds(0);
+        }
+        deptInfo.setConfirmDeptSign(jsonObject.get("confirmDeptSign").toString());
+        deptInfo.setSubmitDeptCode(jsonObject.get("submitDeptCode").toString());
+        deptInfo.setSubmitDeptName(jsonObject.get("submitDeptName").toString());
+        deptInfo.setSelfRegisterSign(jsonObject.get("selfRegisterSign").toString());
+        deptInfo.setPharmSign(jsonObject.get("pharmSign").toString());
+        deptInfo.setSpecDiseaseSign(jsonObject.get("specDiseaseSign").toString());
+        deptInfo.setDeptIp(jsonObject.get("deptIP").toString());
+        deptInfo.setCorrespondingDeptCode(jsonObject.get("correspondingDeptCode").toString());
+        deptInfo.setCorrespondingDeptName(jsonObject.get("correspondingDeptName").toString());
+        deptInfo.setGenerPracStationSign(jsonObject.get("generPracStationSign").toString());
+        deptInfo.setTriagePrefix(jsonObject.get("triagePrefix").toString());
+        deptInfo.setAljkSign(jsonObject.get("aljkSign").toString());
+        deptInfo.setDeptLocation(jsonObject.get("deptLocation").toString());
+        deptInfo.setDeptLocation2(jsonObject.get("deptLocation2").toString());
+        deptInfo.setDeptLocation3(jsonObject.get("deptLocation3").toString());
+        deptInfo.setDeptLocation4(jsonObject.get("deptLocation4").toString());
+        deptInfo.setSpecialistSign(jsonObject.get("specialistSign").toString());
+        deptInfo.setApntSign(jsonObject.get("apntSign").toString());
+        deptInfo.setMemo(jsonObject.get("memo").toString());
+        deptInfo.setValidStartDTime(jsonObject.get("validStartDTime").toString());
+        deptInfo.setValidEndDTime(jsonObject.get("validEndDTime").toString());
+        deptInfo.setActiveSign(jsonObject.get("activeSign").toString());
+        deptInfo.setVerNo(jsonObject.get("verNo").toString());
+        deptInfo.setOrderno(jsonObject.get("ORDERNO").toString());
+        deptInfo.setYjbj(jsonObject.get("YJBJ").toString());
+        deptInfo.setZzms(jsonObject.get("ZZMS").toString());
+        boolean issuccess=false;
+        if(count>0){
+            deptInfo.setUpdateBy("admin");
+            deptInfo.setUpdateTime(new Date());
+            //修改
+            QueryWrapper<SysDept> whereWrapper = new QueryWrapper<>();
+            whereWrapper.eq("dept_code", deptInfo.getDeptCode());
+            boolean result = deptService.update(deptInfo, whereWrapper);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }else{
+            //添加
+            deptInfo.setParentId(0L);
+            deptInfo.setAncestors("0");
+            deptInfo.setStatus("0");
+            deptInfo.setDelFlag("0");
+            deptInfo.setCreateBy("admin");
+            deptInfo.setCreateTime(new Date());
+            boolean result = deptService.save(deptInfo);
+            if (result) {
+                issuccess=true;
+            } else {
+                issuccess=false;
+            }
+        }
+        return issuccess;
+    }
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_UserController.java

@@ -2,8 +2,10 @@ package com.ruoyi.web.work.api;
 
 import com.ruoyi.common.core.domain.AjaxResult;
 import com.ruoyi.web.work.api.config.BaseController;
+import com.ruoyi.web.work.domain.BindUser;
 import com.ruoyi.web.work.domain.dto.LoginDto;
 import com.ruoyi.web.work.domain.dto.UserEditDto;
+import com.ruoyi.web.work.service.IBindUserService;
 import com.ruoyi.web.work.service.IUserService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -12,6 +14,7 @@ import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
 import java.rmi.ServerException;
+import java.util.List;
 
 @RestController
 @RequestMapping("/app/user")
@@ -21,12 +24,22 @@ public class Api_UserController extends BaseController {
     @Autowired
     IUserService userService;
 
+    @Autowired
+    IBindUserService bindUserService;
+
     @ApiOperation(value = "微信登录")
     @PostMapping("/login")
     public AjaxResult login(@Validated @RequestBody LoginDto dto) throws ServerException {
         return userService.login(dto);
     }
 
+    @GetMapping("/bind/list")
+    public AjaxResult list(BindUser bindUser) {
+        bindUser.setUserId(getUser().getId());
+        List<BindUser> list = bindUserService.selectList(bindUser);
+        return AjaxResult.success(list);
+    }
+
     @GetMapping("/info")
     public AjaxResult info() {
         return userService.info();

+ 69 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/DeptInfoController.java

@@ -0,0 +1,69 @@
+package com.ruoyi.web.work.controller;
+
+import java.util.Arrays;
+import java.util.List;
+
+import com.ruoyi.common.annotation.Anonymous;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.web.work.domain.DeptInfo;
+import com.ruoyi.web.work.service.IDeptInfoService;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 科室信息
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Anonymous
+@RestController
+@RequestMapping("/work/dept_info")
+public class DeptInfoController extends BaseController {
+    @Autowired
+    private IDeptInfoService deptInfoService;
+
+    //@PreAuthorize("@ss.hasPermi('work:dept_info:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DeptInfo deptInfo){
+        startPage();
+        List<DeptInfo> list = deptInfoService.selectList(deptInfo);
+        return getDataTable(list);
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:dept_info:query')")
+    @GetMapping(value = "/detail/{id}")
+    public AjaxResult detail(@PathVariable("id") Long id){
+        return AjaxResult.success(deptInfoService.getById(id));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:dept_info:add')")
+    @Log(title = "科室信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@RequestBody DeptInfo deptInfo){
+        return toAjax(deptInfoService.save(deptInfo));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:dept_info:edit')")
+    @Log(title = "科室信息", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    public AjaxResult edit(@RequestBody DeptInfo deptInfo){
+        return toAjax(deptInfoService.updateById(deptInfo));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:dept_info:remove')")
+    @Log(title = "科室信息", businessType = BusinessType.DELETE)
+    @GetMapping("/remove/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids){
+        return toAjax(deptInfoService.removeByIds(Arrays.asList(ids)));
+    }
+}

+ 69 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/EmployeeInfoController.java

@@ -0,0 +1,69 @@
+package com.ruoyi.web.work.controller;
+
+import java.util.Arrays;
+import java.util.List;
+
+import com.ruoyi.common.annotation.Anonymous;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.web.work.domain.EmployeeInfo;
+import com.ruoyi.web.work.service.IEmployeeInfoService;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 职工信息
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Anonymous
+@RestController
+@RequestMapping("/work/employee")
+public class EmployeeInfoController extends BaseController {
+    @Autowired
+    private IEmployeeInfoService employeeInfoService;
+
+    //@PreAuthorize("@ss.hasPermi('work:employee:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(EmployeeInfo employeeInfo){
+        startPage();
+        List<EmployeeInfo> list = employeeInfoService.selectList(employeeInfo);
+        return getDataTable(list);
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:employee:query')")
+    @GetMapping(value = "/detail/{id}")
+    public AjaxResult detail(@PathVariable("id") Long id){
+        return AjaxResult.success(employeeInfoService.getById(id));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:employee:add')")
+    @Log(title = "职工信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@RequestBody EmployeeInfo employeeInfo){
+        return toAjax(employeeInfoService.save(employeeInfo));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:employee:edit')")
+    @Log(title = "职工信息", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    public AjaxResult edit(@RequestBody EmployeeInfo employeeInfo){
+        return toAjax(employeeInfoService.updateById(employeeInfo));
+    }
+
+    //@PreAuthorize("@ss.hasPermi('work:employee:remove')")
+    @Log(title = "职工信息", businessType = BusinessType.DELETE)
+    @GetMapping("/remove/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids){
+        return toAjax(employeeInfoService.removeByIds(Arrays.asList(ids)));
+    }
+}

+ 69 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/WardInfoController.java

@@ -0,0 +1,69 @@
+package com.ruoyi.web.work.controller;
+
+import java.util.Arrays;
+import java.util.List;
+
+import com.ruoyi.common.annotation.Anonymous;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.web.work.domain.WardInfo;
+import com.ruoyi.web.work.service.IWardInfoService;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 病区信息
+ * @author zeng
+ * @date 2024-07-18
+ */
+
+@RestController
+@RequestMapping("/work/ward")
+public class WardInfoController extends BaseController {
+    @Autowired
+    private IWardInfoService wardInfoService;
+
+    @PreAuthorize("@ss.hasPermi('work:ward:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(WardInfo wardInfo){
+        startPage();
+        List<WardInfo> list = wardInfoService.selectList(wardInfo);
+        return getDataTable(list);
+    }
+
+    @PreAuthorize("@ss.hasPermi('work:ward:query')")
+    @GetMapping(value = "/detail/{id}")
+    public AjaxResult detail(@PathVariable("id") Long id){
+        return AjaxResult.success(wardInfoService.getById(id));
+    }
+
+    @PreAuthorize("@ss.hasPermi('work:ward:add')")
+    @Log(title = "病区信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@RequestBody WardInfo wardInfo){
+        return toAjax(wardInfoService.save(wardInfo));
+    }
+
+    @PreAuthorize("@ss.hasPermi('work:ward:edit')")
+    @Log(title = "病区信息", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    public AjaxResult edit(@RequestBody WardInfo wardInfo){
+        return toAjax(wardInfoService.updateById(wardInfo));
+    }
+
+    @PreAuthorize("@ss.hasPermi('work:ward:remove')")
+    @Log(title = "病区信息", businessType = BusinessType.DELETE)
+    @GetMapping("/remove/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids){
+        return toAjax(wardInfoService.removeByIds(Arrays.asList(ids)));
+    }
+}

+ 46 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/BindUser.java

@@ -0,0 +1,46 @@
+package com.ruoyi.web.work.domain;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.util.Date;
+/**
+ * @author lsw
+ * @date 2024-07-26
+ */
+@Data
+@TableName(value = "tb_bind_user")
+@Accessors(chain = true)
+public class BindUser{
+    private static final long serialVersionUID = 1L;
+
+    private Long id;
+
+    @ApiModelProperty(value = "患者id")
+    private Long patientId;
+
+    @ApiModelProperty(value = "小程序id")
+    private Long userId;
+
+    @TableField(fill = FieldFill.INSERT)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    @ApiModelProperty(value = "患者姓名")
+    @TableField(exist = false)
+    private String patientName;
+
+    @ApiModelProperty(value = "患者手机号")
+    @TableField(exist = false)
+    private String phone;
+
+    @ApiModelProperty(value = "患者身份证")
+    @TableField(exist = false)
+    private String sfzh;
+
+}

+ 222 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/DeptInfo.java

@@ -0,0 +1,222 @@
+package com.ruoyi.web.work.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.experimental.Accessors;
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Data
+@TableName(value = "tb_dept_info")
+@Accessors(chain = true)
+public class DeptInfo{
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "医疗机构ID")
+    private String orgCode;
+
+    @ApiModelProperty(value = "科室代码")
+    private String deptCode;
+
+    @ApiModelProperty(value = "科室名称")
+    private String deptName;
+
+    @ApiModelProperty(value = "拼音码")
+    private String py;
+
+    @ApiModelProperty(value = "五笔码")
+    private String wb;
+
+    @ApiModelProperty(value = "助记码")
+    private String inputCode;
+
+    @ApiModelProperty(value = "一级科室代码")
+    private String deptCodeOne;
+
+    @ApiModelProperty(value = "一级科室名称")
+    private String deptNameOne;
+
+    @ApiModelProperty(value = "二级科室代码")
+    private String deptCodeTwo;
+
+    @ApiModelProperty(value = "二级科室名称")
+    private String deptNameTwo;
+
+    @ApiModelProperty(value = "医保科室代码")
+    private String medDeptCode;
+
+    @ApiModelProperty(value = "医保科室名称")
+    private String medDeptName;
+
+    @ApiModelProperty(value = "核算科室代码")
+    private String accountDeptCode;
+
+    @ApiModelProperty(value = "核算科室名称")
+    private String accountDeptName;
+
+    @ApiModelProperty(value = "科室类别代码")
+    private BigDecimal deptTypeCode;
+
+    @ApiModelProperty(value = "科室地址")
+    private String deptAddr;
+
+    @ApiModelProperty(value = "押金警示线")
+    private BigDecimal depositWarLine;
+
+    @ApiModelProperty(value = "门急诊标志:1:门诊,2:急诊,3:家床,4:住院")
+    private String erSign;
+
+    @ApiModelProperty(value = "专科标志:0:否,1:是")
+    private String specialtySign;
+
+    @ApiModelProperty(value = "儿科标志:0:否,1:是")
+    private String childSign;
+
+    @ApiModelProperty(value = "供应室标志:0:否,1:是")
+    private String rupplyRoomSign;
+
+    @ApiModelProperty(value = "中医科室标志:0:否,1:是")
+    private String chineseMedSign;
+
+    @ApiModelProperty(value = "医技确费欠费控制标志:0:否,1:是")
+    private String oweCtrlSign;
+
+    @ApiModelProperty(value = "科室标志:0:否,1:是")
+    private String deptSign;
+
+    @ApiModelProperty(value = "限号数")
+    private Integer limitNo;
+
+    @ApiModelProperty(value = "主任医师数")
+    private Integer chiefDoctNo;
+
+    @ApiModelProperty(value = "住院医师数")
+    private Integer resiDoctNo;
+
+    @ApiModelProperty(value = "主治医师数")
+    private Integer atndDoctNo;
+
+    @ApiModelProperty(value = "护士数")
+    private Integer nursNo;
+
+    @ApiModelProperty(value = "考核床位数")
+    private Integer assessedBedsNo;
+
+    @ApiModelProperty(value = "押金停药线")
+    private BigDecimal depositBndonLine;
+
+    @ApiModelProperty(value = "使作中医病历标志:0:不使用,1:使用")
+    private String tcmEmrSign;
+
+    @ApiModelProperty(value = "科室中护士站的IP")
+    private String nurseStationIp;
+
+    @ApiModelProperty(value = "核定床位数")
+    private Integer authorizeBeds;
+
+    @ApiModelProperty(value = "核定家床数")
+    private Integer authorizeHomeBeds;
+
+    @ApiModelProperty(value = "确认科室标志:0:不是确认科室,1:是确认科室")
+    private String confirmDeptSign;
+
+    @ApiModelProperty(value = "提交科室代码")
+    private String submitDeptCode;
+
+    @ApiModelProperty(value = "提交科室名称")
+    private String submitDeptName;
+
+    @ApiModelProperty(value = "自助挂号标志:0:不可以自助挂号,1:可以自助挂号")
+    private String selfRegisterSign;
+
+    @ApiModelProperty(value = "药房标志:0:不是药房,1:是药房")
+    private String pharmSign;
+
+    @ApiModelProperty(value = "专病标志:0:非专病,1:专病")
+    private String specDiseaseSign;
+
+    @ApiModelProperty(value = "医生登录的科室及诊间的IP地址")
+    private String deptIp;
+
+    @ApiModelProperty(value = "对应科室代码")
+    private String correspondingDeptCode;
+
+    @ApiModelProperty(value = "对应科室名称")
+    private String correspondingDeptName;
+
+    @ApiModelProperty(value = "使用全科医生站标志:0:不使用,1:使用")
+    private String generPracStationSign;
+
+    @ApiModelProperty(value = "分诊号序前缀")
+    private String triagePrefix;
+
+    @ApiModelProperty(value = "科室使用阿里健康:0:不使用,1:使用")
+    private String aljkSign;
+
+    @ApiModelProperty(value = "科室地理位置")
+    private String deptLocation;
+
+    @ApiModelProperty(value = "科室地理位置2")
+    private String deptLocation2;
+
+    @ApiModelProperty(value = "科室地理位置3")
+    private String deptLocation3;
+
+    @ApiModelProperty(value = "科室地理位置4")
+    private String deptLocation4;
+
+    @ApiModelProperty(value = "专病专家标志:0:否,1:是")
+    private String specialistSign;
+
+    @ApiModelProperty(value = "预约标志:0:不预约,1:预约")
+    private String apntSign;
+
+    @ApiModelProperty(value = "备注")
+    private String memo;
+
+    @ApiModelProperty(value = "有效开始日期时间")
+    private String validStartDTime;
+
+    @ApiModelProperty(value = "有效结束日期时间")
+    private String validEndDTime;
+
+    @ApiModelProperty(value = "有效标志:0:无效,1:有效")
+    private String activeSign;
+
+    @ApiModelProperty(value = "版本号")
+    private String verNo;
+
+    @ApiModelProperty(value = "科室排序序号")
+    private String orderno;
+
+    @ApiModelProperty(value = "押金停药线")
+    private String yjbj;
+
+    @ApiModelProperty(value = "转诊描述")
+    private String zzms;
+
+    @TableField(fill = FieldFill.INSERT)
+    private String createBy;
+
+    @TableField(fill = FieldFill.INSERT)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    @TableField(fill = FieldFill.UPDATE)
+    private String updateBy;
+
+    @TableField(fill = FieldFill.UPDATE)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    private Long id;
+
+
+}

+ 632 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/EmployeeInfo.java

@@ -0,0 +1,632 @@
+package com.ruoyi.web.work.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.experimental.Accessors;
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Data
+@TableName(value = "tb_employee_info")
+@Accessors(chain = true)
+public class EmployeeInfo{
+    private static final long serialVersionUID = 1L;
+
+    private Long id;
+
+    @ApiModelProperty(value = "医疗机构ID")
+    private String orgCode;
+
+    @ApiModelProperty(value = "职工代码")
+    private String employeeId;
+
+    @ApiModelProperty(value = "职工姓名")
+    private String employeeName;
+
+    @ApiModelProperty(value = "拼音码")
+    private String py;
+
+    @ApiModelProperty(value = "五笔码")
+    private String wb;
+
+    @ApiModelProperty(value = "助记码")
+    private String inputCode;
+
+    @ApiModelProperty(value = "性别代码")
+    private Integer genderCode;
+
+    @ApiModelProperty(value = "性别名称")
+    private String genderName;
+
+    @ApiModelProperty(value = "出生日期")
+    private String birthDate;
+
+    @ApiModelProperty(value = "婚姻状况代码")
+    private Integer maritalStatusCode;
+
+    @ApiModelProperty(value = "身份证件类别代码")
+    private Integer idTypeCode;
+
+    @ApiModelProperty(value = "身份证件号码")
+    private String idNo;
+
+    @ApiModelProperty(value = "科室代码")
+    private String deptCode;
+
+    @ApiModelProperty(value = "科室名称")
+    private String deptName;
+
+    @ApiModelProperty(value = "行政科室代码")
+    private String adminDeptCode;
+
+    @ApiModelProperty(value = "行政科室名称")
+    private String adminDeptName;
+
+    @ApiModelProperty(value = "病区代码")
+    private String wardCode;
+
+    @ApiModelProperty(value = "病区名称")
+    private String wardName;
+
+    @ApiModelProperty(value = "职工类别:0:普通医生,1:专家医生,2:护士,3:麻醉师,4:其他,5:进修医师,6:规陪医师,7:研究生")
+    private Integer employeeTypeCode;
+
+    @ApiModelProperty(value = "专业技术职务代码")
+    private Integer techPositionCode;
+
+    @ApiModelProperty(value = "专业技术职务名称")
+    private String techPositionName;
+
+    @ApiModelProperty(value = "电话号码")
+    private String telephone;
+
+    @ApiModelProperty(value = "上级医师工号")
+    private String supDoctorCode;
+
+    @ApiModelProperty(value = "上级医师姓名")
+    private String supDoctorName;
+
+    @ApiModelProperty(value = "医保医师代码")
+    private String medDocCode;
+
+    @ApiModelProperty(value = "科主任标志:0:否,1:是")
+    private String dirDocSign;
+
+    @ApiModelProperty(value = "是否有处方权")
+    private String presRightSign;
+
+    @ApiModelProperty(value = "是否有麻醉处方权")
+    private String anesPresRightSign;
+
+    @ApiModelProperty(value = "特殊挂号费")
+    private String specRegFee;
+
+    @ApiModelProperty(value = "限号数")
+    private Integer limitNumber;
+
+    @ApiModelProperty(value = "处方章号")
+    private String presChapterNo;
+
+    @ApiModelProperty(value = "备注")
+    private String memo;
+
+    @ApiModelProperty(value = "上午限号数")
+    private Integer amLimitNo;
+
+    @ApiModelProperty(value = "下午限号数")
+    private Integer pmLimitNo;
+
+    @ApiModelProperty(value = "处方是否可以被别人修改")
+    private String modifiedPresSign;
+
+    @ApiModelProperty(value = "是否有电子处方录入权")
+    private String elecPresRight;
+
+    @ApiModelProperty(value = "中午限号数")
+    private String noonLimitNo;
+
+    @ApiModelProperty(value = "急诊挂号费")
+    private String emergencyRegFee;
+
+    @ApiModelProperty(value = "急诊诊疗费")
+    private String emergencyMedFee;
+
+    @ApiModelProperty(value = "急诊治疗费")
+    private String emergencyTreatFee;
+
+    @ApiModelProperty(value = "学历代码")
+    private Long degreeCode;
+
+    @ApiModelProperty(value = "照片路径")
+    private String photoUrl;
+
+    @ApiModelProperty(value = "签名图片")
+    private String signatureGraph;
+
+    @ApiModelProperty(value = "有效开始日期时间")
+    private String validStartDTime;
+
+    @ApiModelProperty(value = "有效结束日期时间")
+    private String validEndDTime;
+
+    @ApiModelProperty(value = "有效标志")
+    private String activeSign;
+
+    @ApiModelProperty(value = "版本号")
+    private String verNo;
+
+    @ApiModelProperty(value = "密码")
+    private String employeePassword;
+
+    @ApiModelProperty(value = "保密级别")
+    private String bmjb;
+
+    @ApiModelProperty(value = "岗位代码")
+    private String gwdm;
+
+    @ApiModelProperty(value = "岗位名称")
+    private String gwmc;
+
+    @ApiModelProperty(value = "挂号费代码")
+    private String ghf;
+
+    @ApiModelProperty(value = "诊疗费代码")
+    private String zlf;
+
+    @ApiModelProperty(value = "物资专项/劳保标志")
+    private String wzzxbz;
+
+    @ApiModelProperty(value = "医生级别")
+    private String ysjb;
+
+    @ApiModelProperty(value = "能否发送消息")
+    private String ismsg;
+
+    @ApiModelProperty(value = "手术职称编码")
+    private String sszcId;
+
+    @ApiModelProperty(value = "手术职称名称")
+    private String sszcMc;
+
+    @ApiModelProperty(value = "设置人员")
+    private String czry;
+
+    @ApiModelProperty(value = "中心医师代码")
+    private String zxysdm;
+
+    @ApiModelProperty(value = "门诊是否能退别人的收费项目标志")
+    private String mzTfbz;
+
+    @ApiModelProperty(value = "职工所属组分类")
+    private String ssfl;
+
+    @ApiModelProperty(value = "中心科室代码")
+    private String zxksdm;
+
+    @ApiModelProperty(value = "IP地址")
+    private String ipaddress;
+
+    @ApiModelProperty(value = "是否预约")
+    private String sfyy;
+
+    @ApiModelProperty(value = "优先权")
+    private String yxj;
+
+    @ApiModelProperty(value = "是否质控护士")
+    private String iszkhs;
+
+    @ApiModelProperty(value = "自助挂号标志")
+    private String zzghbz;
+
+    @ApiModelProperty(value = "是否限号")
+    private String sfxh;
+
+    @ApiModelProperty(value = "特需出诊标志")
+    private String txbz;
+
+    @ApiModelProperty(value = "抗生素处方权")
+    private String ksscfq;
+
+    @ApiModelProperty(value = "中医资质")
+    private String zyzz;
+
+    @ApiModelProperty(value = "是否使用时间段排班")
+    private String sjdpbbz;
+
+    @ApiModelProperty(value = "是否使用号序明细标志")
+    private String mxpbbz;
+
+    @ApiModelProperty(value = "分诊号序前缀")
+    private String fzhxqz;
+
+    @ApiModelProperty(value = "是否为临时工")
+    private String lsgbz;
+
+    @ApiModelProperty(value = "抗生素处方权")
+    private String kzlywcfq;
+
+    @ApiModelProperty(value = "肠外营养药物处方权")
+    private String cwyyywcfq;
+
+    @ApiModelProperty(value = "社区标志")
+    private String sqxtypbz;
+
+    @ApiModelProperty(value = "专科标志")
+    private String zkxtypbz;
+
+    @ApiModelProperty(value = "是否能开手术医嘱")
+    private String ssyzqx;
+
+    @ApiModelProperty(value = "职工卡号")
+    private String zgkh;
+
+    @ApiModelProperty(value = "是否担保人权限")
+    private String isdbrqx;
+
+    @ApiModelProperty(value = "介绍人员")
+    private String jsry1;
+
+    @ApiModelProperty(value = "职工简介")
+    private String zgjj;
+
+    @ApiModelProperty(value = "精一药品处方权")
+    private String jylcfq;
+
+    @ApiModelProperty(value = "精二药品处方权")
+    private String jelcfq;
+
+    @ApiModelProperty(value = "精神药品处方权")
+    private String jdlcfq;
+
+    @ApiModelProperty(value = "保密处方中心医师代码")
+    private String bmcfzxysdm;
+
+    @ApiModelProperty(value = "精神药品处方权")
+    private String jsypcfq;
+
+    @ApiModelProperty(value = "小处方使用权")
+    private String xcfsyq;
+
+    @ApiModelProperty(value = "辅助用药审批权")
+    private String fzyyspq;
+
+    @ApiModelProperty(value = "术中医嘱权")
+    private String szyzq;
+
+    @ApiModelProperty(value = "全科医生权限")
+    private String qkysq;
+
+    @ApiModelProperty(value = "修改报警线和停药线权限")
+    private String xgbjxhtyxq;
+
+    @ApiModelProperty(value = "医嘱发送权")
+    private String yzfsq;
+
+    @ApiModelProperty(value = "医生医嘱发送后撤销权限")
+    private String yzfscxq;
+
+    @ApiModelProperty(value = "病历编辑权")
+    private String blbjq;
+
+    @ApiModelProperty(value = "会诊权")
+    private String hzq;
+
+    @ApiModelProperty(value = "干保医生")
+    private String gbys;
+
+    @ApiModelProperty(value = "住院处方权")
+    private String zycfq;
+
+    @ApiModelProperty(value = "门诊处方权")
+    private String mzcfq;
+
+    @ApiModelProperty(value = "放射药品处方权")
+    private String fsypcfq;
+
+    @ApiModelProperty(value = "计划生育药品处方权")
+    private String jhsyypcfq;
+
+    @ApiModelProperty(value = "是否有副省级查看权限")
+    private String ckfsgbqx;
+
+    @ApiModelProperty(value = "排序优先级")
+    private String pxyxj;
+
+    @ApiModelProperty(value = "干保医生标志")
+    private String gbysbz;
+
+    @ApiModelProperty(value = "免费号数")
+    private String mfhs;
+
+    @ApiModelProperty(value = "学历名称")
+    private String xlMc;
+
+    @ApiModelProperty(value = "学位代码")
+    private String xwId;
+
+    @ApiModelProperty(value = "学位名称")
+    private String xwMc;
+
+    @ApiModelProperty(value = "是否自助预约")
+    private String sfzzyy;
+
+    @ApiModelProperty(value = "危急值提醒标志")
+    private String wjztxbz;
+
+    @ApiModelProperty(value = "医保医生标志")
+    private String ybysbz;
+
+    @ApiModelProperty(value = "高价药处方权")
+    private String gjycfq;
+
+    @ApiModelProperty(value = "上传平台标志")
+    private String isscpt;
+
+    @ApiModelProperty(value = "大病处方权")
+    private String dbcfq;
+
+    @ApiModelProperty(value = "入职日期")
+    private String rzrq;
+
+    @ApiModelProperty(value = "离职日期")
+    private String lzrq;
+
+    @ApiModelProperty(value = "可修改药品字典")
+    private String kxgypzd;
+
+    @ApiModelProperty(value = "不可修改药品字典")
+    private Integer bkxgypzd;
+
+    @ApiModelProperty(value = "医师资格证编码")
+    private String yszgzbm;
+
+    @ApiModelProperty(value = "医师执业证编码")
+    private String yszyzbm;
+
+    @ApiModelProperty(value = "职位id")
+    private String zwId;
+
+    @ApiModelProperty(value = "职位名称")
+    private String zwMc;
+
+    @ApiModelProperty(value = "主数据照片")
+    private String mdmphoto;
+
+    @ApiModelProperty(value = "独立核算标志")
+    private String dlhsbz;
+
+    @ApiModelProperty(value = "医生注册编号")
+    private String yszcbh;
+
+    @ApiModelProperty(value = "医生执业范围")
+    private String yszyfw;
+
+    @ApiModelProperty(value = "护士执业证书编号")
+    private String hszybh;
+
+    @ApiModelProperty(value = "职工擅长")
+    private String zgsc;
+
+    @ApiModelProperty(value = "职工类型")
+    private String zglx;
+
+    @ApiModelProperty(value = "处方权证")
+    private String cfqz;
+
+    @ApiModelProperty(value = "麻醉类药处方权")
+    private String mzlycfqz;
+
+    @ApiModelProperty(value = "西药处方录入权")
+    private String xycflrqz;
+
+    @ApiModelProperty(value = "中药处方录入权")
+    private String zycflrqz;
+
+    @ApiModelProperty(value = "草药处方录入权")
+    private String cycflrqz;
+
+    @ApiModelProperty(value = "精神类药处方权")
+    private String jslycfqz;
+
+    @ApiModelProperty(value = "剧毒类药处方权")
+    private String jdlycfqz;
+
+    @ApiModelProperty(value = "辅助用药审批权")
+    private String fzyyspqz;
+
+    @ApiModelProperty(value = "小处方使用权限")
+    private String xcfsyqxz;
+
+    @ApiModelProperty(value = "术中医嘱权限")
+    private String szyzqxz;
+
+    @ApiModelProperty(value = "全科医生权限")
+    private String qkysqxz;
+
+    @ApiModelProperty(value = "修改报警线和停药线权限")
+    private String xgbjxhtyxqxz;
+
+    @ApiModelProperty(value = "医生是否有医嘱发送权限")
+    private String yssfyyzfsqxz;
+
+    @ApiModelProperty(value = "修改或取消重点病人上报权")
+    private String xghqxzdbrsbqz;
+
+    @ApiModelProperty(value = "患者信息中费用信息的打印和导出权限")
+    private String fyxxdydcqz;
+
+    @ApiModelProperty(value = "大病医保:Y=BDM=73")
+    private String dbybcfqz;
+
+    @ApiModelProperty(value = "精一类药处方权")
+    private String jylyfqz;
+
+    @ApiModelProperty(value = "高价药处方权")
+    private String gjycfqz;
+
+    @ApiModelProperty(value = "终止妊娠用药处方权")
+    private String zzrsyycfqz;
+
+    @ApiModelProperty(value = "促排卵用药处方权")
+    private String cplyycfqz;
+
+    @ApiModelProperty(value = "糖皮试激素用药处方权")
+    private String tpsjsyycfqz;
+
+    @ApiModelProperty(value = "血液制剂用药处方权")
+    private String xyzjyycfqz;
+
+    @ApiModelProperty(value = "营养精神用药处方权")
+    private String yyjsyycfqz;
+
+    @ApiModelProperty(value = "免疫增强用药处方权")
+    private String myzqyycfqz;
+
+    @ApiModelProperty(value = "抗肿瘤药物处方权")
+    private String kzlywcfqz;
+
+    @ApiModelProperty(value = "预留其他处方权")
+    private String ylqtcfqz;
+
+    @ApiModelProperty(value = "医生医嘱发送后撤销权限")
+    private String yzfscxqz;
+
+    @ApiModelProperty(value = "病历编辑权")
+    private String blbjqz;
+
+    @ApiModelProperty(value = "会诊权")
+    private String hzqz;
+
+    @ApiModelProperty(value = "病历综合查询中打印和导出Excel权限")
+    private String blzhcxdydcqz;
+
+    @ApiModelProperty(value = "EMR病历撤销权")
+    private String emrblcxqz;
+
+    @ApiModelProperty(value = "病历提交权")
+    private String bltjqz;
+
+    @ApiModelProperty(value = "测试****权限")
+    private String csqz;
+
+    @ApiModelProperty(value = "抗生素处方权")
+    private String ksscfqz;
+
+    @ApiModelProperty(value = "担保人权限")
+    private String dbrqxz;
+
+    @ApiModelProperty(value = "肠外营养药处方权")
+    private String cwyyycfqz;
+
+    @ApiModelProperty(value = "精二类药处方权")
+    private String jelycfqz;
+
+    @ApiModelProperty(value = "门诊处方权")
+    private String mzcfqz;
+
+    @ApiModelProperty(value = "住院处方权")
+    private String zycfqz;
+
+    @ApiModelProperty(value = "放射药品处方权")
+    private String fsypcfqz;
+
+    @ApiModelProperty(value = "查看副省干部权限")
+    private String ckfsgbqz;
+
+    @ApiModelProperty(value = "是否能开手术医嘱")
+    private String sfnkssyzz;
+
+    @ApiModelProperty(value = "计划生育药品处方权")
+    private String jhsyypcfqz;
+
+    @ApiModelProperty(value = "治疗项目处方权")
+    private String zlxmcfqz;
+
+    @ApiModelProperty(value = "特病处方权")
+    private String tbcfq;
+
+    @ApiModelProperty(value = "一级科室查询权")
+    private String yjkscxq;
+
+    @ApiModelProperty(value = "二级科室查询权")
+    private String ejkscxq;
+
+    @ApiModelProperty(value = "药物实验权")
+    private String ywsyq;
+
+    @ApiModelProperty(value = "一般处方权")
+    private String ybcfq;
+
+    @ApiModelProperty(value = "医用毒性药品处方权")
+    private String yydxyqcfq;
+
+    @ApiModelProperty(value = "预留其他类处方权")
+    private String ylqtlcfq;
+
+    @ApiModelProperty(value = "会诊邀请权")
+    private String hzyqq;
+
+    @ApiModelProperty(value = "会诊参会权")
+    private String hzchq;
+
+    @ApiModelProperty(value = "申请用血权限")
+    private String sqyxqx;
+
+    @ApiModelProperty(value = "科室协定方维护权限")
+    private String ksxdfwhqx;
+
+    @ApiModelProperty(value = "全院协定方维护权限")
+    private String qyxdfwhqx;
+
+    @ApiModelProperty(value = "全院过敏信息作废权限")
+    private String qygmxxzfqx;
+
+    @ApiModelProperty(value = "本科医生毒麻精神建档修改权限")
+    private String bkysdmjsjdxgqx;
+
+    @ApiModelProperty(value = "全院医生毒麻精神建档修改权限")
+    private String qyysdmjsjdxgqx;
+
+    @ApiModelProperty(value = "保密方管理权限")
+    private String bmfglqx;
+
+    @ApiModelProperty(value = "科室照片管理维护权限")
+    private String kszpglwhqx;
+
+    @ApiModelProperty(value = "全院照片管理维护权限")
+    private String qyzpglwhqx;
+
+    @ApiModelProperty(value = "全院电子病历模板编辑权")
+    private String qydzblmbbjq;
+
+    @ApiModelProperty(value = "带组医生标志")
+    private String dzysbz;
+
+    @ApiModelProperty(value = "科主任审核权限")
+    private String kzrshqx;
+
+    @ApiModelProperty(value = "康复处方权")
+    private String kfcfq;
+
+    @TableField(fill = FieldFill.INSERT)
+    private String createBy;
+
+    @TableField(fill = FieldFill.INSERT)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    @TableField(fill = FieldFill.UPDATE)
+    private String updateBy;
+
+    @TableField(fill = FieldFill.UPDATE)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+
+}

+ 6 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/User.java

@@ -24,6 +24,12 @@ public class User{
     @ApiModelProperty(value = "微信id")
     private String openId;
 
+    @ApiModelProperty(value = "当前患者id")
+    private Long patientId;
+
+    @ApiModelProperty(value = "当前患者姓名")
+    private String patientName;
+
     @ApiModelProperty(value = "状态:0=正常,1=停用")
     private Integer state;
 

+ 86 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/WardInfo.java

@@ -0,0 +1,86 @@
+package com.ruoyi.web.work.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.experimental.Accessors;
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Data
+@TableName(value = "tb_ward_info")
+@Accessors(chain = true)
+public class WardInfo{
+    private static final long serialVersionUID = 1L;
+
+    private Long id;
+
+    @ApiModelProperty(value = "医疗机构ID")
+    private String orgCode;
+
+    @ApiModelProperty(value = "病区代码")
+    private String wardCode;
+
+    @ApiModelProperty(value = "病区名称")
+    private String wardName;
+
+    @ApiModelProperty(value = "拼音码")
+    private String py;
+
+    @ApiModelProperty(value = "五笔码")
+    private String wb;
+
+    @ApiModelProperty(value = "助记码")
+    private String inputCode;
+
+    @ApiModelProperty(value = "床位数量")
+    private Long bedNumber;
+
+    @ApiModelProperty(value = "病区类别")
+    private String wardTypeCode;
+
+    @ApiModelProperty(value = "家床标志")
+    private String homeBedSign;
+
+    @ApiModelProperty(value = "特殊病区标志")
+    private String specialWardSign;
+
+    @ApiModelProperty(value = "备注")
+    private String memo;
+
+    @ApiModelProperty(value = "有效开始日期时间")
+    private String validStartDTime;
+
+    @ApiModelProperty(value = "有效结束日期时间")
+    private String validEndDTime;
+
+    @ApiModelProperty(value = "有效标志")
+    private String activeSign;
+
+    @ApiModelProperty(value = "版本号")
+    private String verNo;
+
+    @ApiModelProperty(value = "病区排序序号")
+    private String orderno;
+
+    @TableField(fill = FieldFill.INSERT)
+    private String createBy;
+
+    @TableField(fill = FieldFill.INSERT)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    @TableField(fill = FieldFill.UPDATE)
+    private String updateBy;
+
+    @TableField(fill = FieldFill.UPDATE)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/BindUserMapper.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.mapper;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.BindUser;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @author lsw
+ * @date 2024-07-26
+ */
+public interface BindUserMapper extends BaseMapper<BindUser> {
+    List<BindUser> selectList(BindUser bindUser);
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/DeptInfoMapper.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.mapper;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.DeptInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface DeptInfoMapper extends BaseMapper<DeptInfo> {
+    List<DeptInfo> selectList(DeptInfo deptInfo);
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/EmployeeInfoMapper.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.mapper;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.EmployeeInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface EmployeeInfoMapper extends BaseMapper<EmployeeInfo> {
+    List<EmployeeInfo> selectList(EmployeeInfo employeeInfo);
+}

+ 5 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/KnowledgeMapper.java

@@ -1,8 +1,9 @@
 package com.ruoyi.web.work.mapper;
 
-import java.util.List;
-import com.ruoyi.web.work.domain.Knowledge;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ruoyi.web.work.domain.Knowledge;
+
+import java.util.List;
 
 /**
  * @author lsw
@@ -10,4 +11,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  */
 public interface KnowledgeMapper extends BaseMapper<Knowledge> {
     List<Knowledge> selectList(Knowledge knowledge);
+
+    List<Knowledge> indexList();
 }

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/WardInfoMapper.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.mapper;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.WardInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface WardInfoMapper extends BaseMapper<WardInfo> {
+    List<WardInfo> selectList(WardInfo wardInfo);
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IBindUserService.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.service;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.BindUser;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @author lsw
+ * @date 2024-07-26
+ */
+public interface IBindUserService extends IService<BindUser>{
+    List<BindUser> selectList(BindUser bindUser);
+}

+ 14 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IDeptInfoService.java

@@ -0,0 +1,14 @@
+package com.ruoyi.web.work.service;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.DeptInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface IDeptInfoService extends IService<DeptInfo>{
+    List<DeptInfo> selectList(DeptInfo deptInfo);
+
+}

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IEmployeeInfoService.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.service;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.EmployeeInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface IEmployeeInfoService extends IService<EmployeeInfo>{
+    List<EmployeeInfo> selectList(EmployeeInfo employeeInfo);
+}

+ 2 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IKnowledgeService.java

@@ -11,6 +11,8 @@ import java.util.List;
  * @date 2024-07-10
  */
 public interface IKnowledgeService extends IService<Knowledge> {
+    List<Knowledge> indexList();
+
     List<Knowledge> selectList(Knowledge knowledge);
 
     /**

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IWardInfoService.java

@@ -0,0 +1,13 @@
+package com.ruoyi.web.work.service;
+
+import java.util.List;
+import com.ruoyi.web.work.domain.WardInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+public interface IWardInfoService extends IService<WardInfo>{
+    List<WardInfo> selectList(WardInfo wardInfo);
+}

+ 24 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/BindUserServiceImpl.java

@@ -0,0 +1,24 @@
+package com.ruoyi.web.work.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.web.work.mapper.BindUserMapper;
+import com.ruoyi.web.work.domain.BindUser;
+import com.ruoyi.web.work.service.IBindUserService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @author lsw
+ * @date 2024-07-26
+ */
+@Service
+public class BindUserServiceImpl extends ServiceImpl<BindUserMapper, BindUser> implements IBindUserService {
+    @Autowired
+    private BindUserMapper bindUserMapper;
+
+    @Override
+    public List<BindUser> selectList(BindUser bindUser) {
+        return bindUserMapper.selectList(bindUser);
+    }
+}

+ 26 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/DeptInfoServiceImpl.java

@@ -0,0 +1,26 @@
+package com.ruoyi.web.work.service.impl;
+
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.web.work.mapper.DeptInfoMapper;
+import com.ruoyi.web.work.domain.DeptInfo;
+import com.ruoyi.web.work.service.IDeptInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ *
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Service
+public class DeptInfoServiceImpl extends ServiceImpl<DeptInfoMapper, DeptInfo> implements IDeptInfoService {
+    @Autowired
+    private DeptInfoMapper deptInfoMapper;
+
+    @Override
+    public List<DeptInfo> selectList(DeptInfo deptInfo) {
+        return deptInfoMapper.selectList(deptInfo);
+    }
+}

+ 24 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/EmployeeInfoServiceImpl.java

@@ -0,0 +1,24 @@
+package com.ruoyi.web.work.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.web.work.mapper.EmployeeInfoMapper;
+import com.ruoyi.web.work.domain.EmployeeInfo;
+import com.ruoyi.web.work.service.IEmployeeInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Service
+public class EmployeeInfoServiceImpl extends ServiceImpl<EmployeeInfoMapper, EmployeeInfo> implements IEmployeeInfoService {
+    @Autowired
+    private EmployeeInfoMapper employeeInfoMapper;
+
+    @Override
+    public List<EmployeeInfo> selectList(EmployeeInfo employeeInfo) {
+        return employeeInfoMapper.selectList(employeeInfo);
+    }
+}

+ 5 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/KnowledgeServiceImpl.java

@@ -20,6 +20,11 @@ public class KnowledgeServiceImpl extends ServiceImpl<KnowledgeMapper, Knowledge
     private KnowledgeMapper knowledgeMapper;
 
     @Override
+    public List<Knowledge> indexList() {
+        return knowledgeMapper.indexList();
+    }
+
+    @Override
     public List<Knowledge> selectList(Knowledge knowledge) {
         knowledge.setState(0);
         return knowledgeMapper.selectList(knowledge);

+ 24 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/WardInfoServiceImpl.java

@@ -0,0 +1,24 @@
+package com.ruoyi.web.work.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.web.work.mapper.WardInfoMapper;
+import com.ruoyi.web.work.domain.WardInfo;
+import com.ruoyi.web.work.service.IWardInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @author zeng
+ * @date 2024-07-18
+ */
+@Service
+public class WardInfoServiceImpl extends ServiceImpl<WardInfoMapper, WardInfo> implements IWardInfoService {
+    @Autowired
+    private WardInfoMapper wardInfoMapper;
+
+    @Override
+    public List<WardInfo> selectList(WardInfo wardInfo) {
+        return wardInfoMapper.selectList(wardInfo);
+    }
+}

+ 22 - 0
ruoyi-admin/src/main/resources/mapper/work/BindUserMapper.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.web.work.mapper.BindUserMapper">
+    
+    <select id="selectList" resultType="com.ruoyi.web.work.domain.BindUser">
+        SELECT
+        u.*,
+        p.NAME AS patientName,
+        p.phone,
+        p.sfzh
+        FROM
+        tb_bind_user u
+        LEFT JOIN tb_patient p ON p.id = u.patient_id
+        <where>  
+            <if test="patientId != null "> and u.patient_id = #{patientId}</if>
+            <if test="userId != null "> and u.user_id = #{userId}</if>
+        </where>
+    </select>
+
+</mapper>

+ 74 - 0
ruoyi-admin/src/main/resources/mapper/work/DeptInfoMapper.xml

@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.web.work.mapper.DeptInfoMapper">
+    
+    <select id="selectList" resultType="com.ruoyi.web.work.domain.DeptInfo">
+        select * from tb_dept_info
+        <where>  
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="deptCode != null  and deptCode != ''"> and dept_code = #{deptCode}</if>
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
+            <if test="py != null  and py != ''"> and py = #{py}</if>
+            <if test="wb != null  and wb != ''"> and wb = #{wb}</if>
+            <if test="inputCode != null  and inputCode != ''"> and input_code = #{inputCode}</if>
+            <if test="deptCodeOne != null  and deptCodeOne != ''"> and dept_code_one = #{deptCodeOne}</if>
+            <if test="deptNameOne != null  and deptNameOne != ''"> and dept_name_one = #{deptNameOne}</if>
+            <if test="deptCodeTwo != null  and deptCodeTwo != ''"> and dept_code_two = #{deptCodeTwo}</if>
+            <if test="deptNameTwo != null  and deptNameTwo != ''"> and dept_name_two = #{deptNameTwo}</if>
+            <if test="medDeptCode != null  and medDeptCode != ''"> and med_dept_code = #{medDeptCode}</if>
+            <if test="medDeptName != null  and medDeptName != ''"> and med_dept_name like concat('%', #{medDeptName}, '%')</if>
+            <if test="accountDeptCode != null  and accountDeptCode != ''"> and account_dept_code = #{accountDeptCode}</if>
+            <if test="accountDeptName != null  and accountDeptName != ''"> and account_dept_name like concat('%', #{accountDeptName}, '%')</if>
+            <if test="deptTypeCode != null "> and dept_type_code = #{deptTypeCode}</if>
+            <if test="deptAddr != null  and deptAddr != ''"> and dept_addr = #{deptAddr}</if>
+            <if test="depositWarLine != null "> and deposit_war_line = #{depositWarLine}</if>
+            <if test="erSign != null  and erSign != ''"> and er_sign = #{erSign}</if>
+            <if test="specialtySign != null  and specialtySign != ''"> and specialty_sign = #{specialtySign}</if>
+            <if test="childSign != null  and childSign != ''"> and child_sign = #{childSign}</if>
+            <if test="rupplyRoomSign != null  and rupplyRoomSign != ''"> and rupply_room_sign = #{rupplyRoomSign}</if>
+            <if test="chineseMedSign != null  and chineseMedSign != ''"> and chinese_med_sign = #{chineseMedSign}</if>
+            <if test="oweCtrlSign != null  and oweCtrlSign != ''"> and owe_ctrl_sign = #{oweCtrlSign}</if>
+            <if test="deptSign != null  and deptSign != ''"> and dept_sign = #{deptSign}</if>
+            <if test="limitNo != null "> and limit_no = #{limitNo}</if>
+            <if test="chiefDoctNo != null "> and chief_doct_no = #{chiefDoctNo}</if>
+            <if test="resiDoctNo != null "> and resi_doct_no = #{resiDoctNo}</if>
+            <if test="atndDoctNo != null "> and atnd_doct_no = #{atndDoctNo}</if>
+            <if test="nursNo != null "> and nurs_no = #{nursNo}</if>
+            <if test="assessedBedsNo != null "> and assessed_beds_no = #{assessedBedsNo}</if>
+            <if test="depositBndonLine != null "> and deposit_bndon_line = #{depositBndonLine}</if>
+            <if test="tcmEmrSign != null  and tcmEmrSign != ''"> and tcm_emr_sign = #{tcmEmrSign}</if>
+            <if test="nurseStationIp != null  and nurseStationIp != ''"> and nurse_station_ip = #{nurseStationIp}</if>
+            <if test="authorizeBeds != null "> and authorize_beds = #{authorizeBeds}</if>
+            <if test="authorizeHomeBeds != null "> and authorize_home_beds = #{authorizeHomeBeds}</if>
+            <if test="confirmDeptSign != null  and confirmDeptSign != ''"> and confirm_dept_sign = #{confirmDeptSign}</if>
+            <if test="submitDeptCode != null  and submitDeptCode != ''"> and submit_dept_code = #{submitDeptCode}</if>
+            <if test="submitDeptName != null  and submitDeptName != ''"> and submit_dept_name like concat('%', #{submitDeptName}, '%')</if>
+            <if test="selfRegisterSign != null  and selfRegisterSign != ''"> and self_register_sign = #{selfRegisterSign}</if>
+            <if test="pharmSign != null  and pharmSign != ''"> and pharm_sign = #{pharmSign}</if>
+            <if test="specDiseaseSign != null  and specDiseaseSign != ''"> and spec_disease_sign = #{specDiseaseSign}</if>
+            <if test="deptIp != null  and deptIp != ''"> and dept_ip = #{deptIp}</if>
+            <if test="correspondingDeptCode != null  and correspondingDeptCode != ''"> and corresponding_dept_code = #{correspondingDeptCode}</if>
+            <if test="correspondingDeptName != null  and correspondingDeptName != ''"> and corresponding_dept_name like concat('%', #{correspondingDeptName}, '%')</if>
+            <if test="generPracStationSign != null  and generPracStationSign != ''"> and gener_prac_station_sign = #{generPracStationSign}</if>
+            <if test="triagePrefix != null  and triagePrefix != ''"> and triage_prefix = #{triagePrefix}</if>
+            <if test="aljkSign != null  and aljkSign != ''"> and aljk_sign = #{aljkSign}</if>
+            <if test="deptLocation != null  and deptLocation != ''"> and dept_location = #{deptLocation}</if>
+            <if test="deptLocation2 != null  and deptLocation2 != ''"> and dept_location2 = #{deptLocation2}</if>
+            <if test="deptLocation3 != null  and deptLocation3 != ''"> and dept_location3 = #{deptLocation3}</if>
+            <if test="deptLocation4 != null  and deptLocation4 != ''"> and dept_location4 = #{deptLocation4}</if>
+            <if test="specialistSign != null  and specialistSign != ''"> and specialist_sign = #{specialistSign}</if>
+            <if test="apntSign != null  and apntSign != ''"> and apnt_sign = #{apntSign}</if>
+            <if test="memo != null  and memo != ''"> and memo = #{memo}</if>
+            <if test="validStartDTime != null  and validStartDTime != ''"> and valid_start_d_time = #{validStartDTime}</if>
+            <if test="validEndDTime != null  and validEndDTime != ''"> and valid_end_d_time = #{validEndDTime}</if>
+            <if test="activeSign != null  and activeSign != ''"> and active_sign = #{activeSign}</if>
+            <if test="verNo != null  and verNo != ''"> and ver_no = #{verNo}</if>
+            <if test="orderno != null  and orderno != ''"> and orderno = #{orderno}</if>
+            <if test="yjbj != null  and yjbj != ''"> and yjbj = #{yjbj}</if>
+            <if test="zzms != null  and zzms != ''"> and zzms = #{zzms}</if>
+        </where>
+    </select>
+
+</mapper>

+ 207 - 0
ruoyi-admin/src/main/resources/mapper/work/EmployeeInfoMapper.xml

@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.web.work.mapper.EmployeeInfoMapper">
+    
+    <select id="selectList" resultType="com.ruoyi.web.work.domain.EmployeeInfo">
+        select * from tb_employee_info
+        <where>  
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="employeeId != null  and employeeId != ''"> and employee_id = #{employeeId}</if>
+            <if test="employeeName != null  and employeeName != ''"> and employee_name like concat('%', #{employeeName}, '%')</if>
+            <if test="py != null  and py != ''"> and py = #{py}</if>
+            <if test="wb != null  and wb != ''"> and wb = #{wb}</if>
+            <if test="inputCode != null  and inputCode != ''"> and input_code = #{inputCode}</if>
+            <if test="idTypeCode != null "> and id_type_code = #{idTypeCode}</if>
+            <if test="idNo != null  and idNo != ''"> and id_no = #{idNo}</if>
+            <if test="deptCode != null  and deptCode != ''"> and dept_code = #{deptCode}</if>
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
+            <if test="adminDeptCode != null  and adminDeptCode != ''"> and admin_dept_code = #{adminDeptCode}</if>
+            <if test="adminDeptName != null  and adminDeptName != ''"> and admin_dept_name like concat('%', #{adminDeptName}, '%')</if>
+            <if test="wardCode != null  and wardCode != ''"> and ward_code = #{wardCode}</if>
+            <if test="wardName != null  and wardName != ''"> and ward_name like concat('%', #{wardName}, '%')</if>
+            <if test="employeeTypeCode != null "> and employee_type_code = #{employeeTypeCode}</if>
+            <if test="techPositionCode != null "> and tech_position_code = #{techPositionCode}</if>
+            <if test="techPositionName != null  and techPositionName != ''"> and tech_position_name like concat('%', #{techPositionName}, '%')</if>
+            <if test="telephone != null  and telephone != ''"> and telephone = #{telephone}</if>
+            <if test="supDoctorCode != null  and supDoctorCode != ''"> and sup_doctor_code = #{supDoctorCode}</if>
+            <if test="supDoctorName != null  and supDoctorName != ''"> and sup_doctor_name like concat('%', #{supDoctorName}, '%')</if>
+            <if test="medDocCode != null  and medDocCode != ''"> and med_doc_code = #{medDocCode}</if>
+            <if test="dirDocSign != null  and dirDocSign != ''"> and dir_doc_sign = #{dirDocSign}</if>
+            <if test="presRightSign != null  and presRightSign != ''"> and pres_right_sign = #{presRightSign}</if>
+            <if test="anesPresRightSign != null  and anesPresRightSign != ''"> and anes_pres_right_sign = #{anesPresRightSign}</if>
+            <if test="specRegFee != null  and specRegFee != ''"> and spec_reg_fee = #{specRegFee}</if>
+            <if test="limitNumber != null "> and limit_number = #{limitNumber}</if>
+            <if test="presChapterNo != null  and presChapterNo != ''"> and pres_chapter_no = #{presChapterNo}</if>
+            <if test="memo != null  and memo != ''"> and memo = #{memo}</if>
+            <if test="amLimitNo != null "> and am_limit_no = #{amLimitNo}</if>
+            <if test="pmLimitNo != null "> and pm_limit_no = #{pmLimitNo}</if>
+            <if test="modifiedPresSign != null  and modifiedPresSign != ''"> and modified_pres_sign = #{modifiedPresSign}</if>
+            <if test="elecPresRight != null  and elecPresRight != ''"> and elec_pres_right = #{elecPresRight}</if>
+            <if test="noonLimitNo != null  and noonLimitNo != ''"> and noon_limit_no = #{noonLimitNo}</if>
+            <if test="emergencyRegFee != null  and emergencyRegFee != ''"> and emergency_reg_fee = #{emergencyRegFee}</if>
+            <if test="emergencyMedFee != null  and emergencyMedFee != ''"> and emergency_med_fee = #{emergencyMedFee}</if>
+            <if test="emergencyTreatFee != null  and emergencyTreatFee != ''"> and emergency_treat_fee = #{emergencyTreatFee}</if>
+            <if test="degreeCode != null "> and degree_code = #{degreeCode}</if>
+            <if test="photoUrl != null  and photoUrl != ''"> and photo_url = #{photoUrl}</if>
+            <if test="signatureGraph != null  and signatureGraph != ''"> and signature_graph = #{signatureGraph}</if>
+            <if test="validStartDTime != null  and validStartDTime != ''"> and valid_start_d_time = #{validStartDTime}</if>
+            <if test="validEndDTime != null  and validEndDTime != ''"> and valid_end_d_time = #{validEndDTime}</if>
+            <if test="activeSign != null  and activeSign != ''"> and active_sign = #{activeSign}</if>
+            <if test="verNo != null  and verNo != ''"> and ver_no = #{verNo}</if>
+            <if test="employeePassword != null  and employeePassword != ''"> and employee_password = #{employeePassword}</if>
+            <if test="bmjb != null  and bmjb != ''"> and bmjb = #{bmjb}</if>
+            <if test="gwdm != null  and gwdm != ''"> and gwdm = #{gwdm}</if>
+            <if test="gwmc != null  and gwmc != ''"> and gwmc = #{gwmc}</if>
+            <if test="ghf != null  and ghf != ''"> and ghf = #{ghf}</if>
+            <if test="zlf != null  and zlf != ''"> and zlf = #{zlf}</if>
+            <if test="wzzxbz != null  and wzzxbz != ''"> and wzzxbz = #{wzzxbz}</if>
+            <if test="ysjb != null  and ysjb != ''"> and ysjb = #{ysjb}</if>
+            <if test="ismsg != null  and ismsg != ''"> and ismsg = #{ismsg}</if>
+            <if test="sszcId != null  and sszcId != ''"> and sszc_id = #{sszcId}</if>
+            <if test="sszcMc != null  and sszcMc != ''"> and sszc_mc = #{sszcMc}</if>
+            <if test="czry != null  and czry != ''"> and czry = #{czry}</if>
+            <if test="zxysdm != null  and zxysdm != ''"> and zxysdm = #{zxysdm}</if>
+            <if test="mzTfbz != null  and mzTfbz != ''"> and mz_tfbz = #{mzTfbz}</if>
+            <if test="ssfl != null  and ssfl != ''"> and ssfl = #{ssfl}</if>
+            <if test="zxksdm != null  and zxksdm != ''"> and zxksdm = #{zxksdm}</if>
+            <if test="ipaddress != null  and ipaddress != ''"> and ipaddress = #{ipaddress}</if>
+            <if test="sfyy != null  and sfyy != ''"> and sfyy = #{sfyy}</if>
+            <if test="yxj != null  and yxj != ''"> and yxj = #{yxj}</if>
+            <if test="iszkhs != null  and iszkhs != ''"> and iszkhs = #{iszkhs}</if>
+            <if test="zzghbz != null  and zzghbz != ''"> and zzghbz = #{zzghbz}</if>
+            <if test="sfxh != null  and sfxh != ''"> and sfxh = #{sfxh}</if>
+            <if test="txbz != null  and txbz != ''"> and txbz = #{txbz}</if>
+            <if test="ksscfq != null  and ksscfq != ''"> and ksscfq = #{ksscfq}</if>
+            <if test="zyzz != null  and zyzz != ''"> and zyzz = #{zyzz}</if>
+            <if test="sjdpbbz != null  and sjdpbbz != ''"> and sjdpbbz = #{sjdpbbz}</if>
+            <if test="mxpbbz != null  and mxpbbz != ''"> and mxpbbz = #{mxpbbz}</if>
+            <if test="fzhxqz != null  and fzhxqz != ''"> and fzhxqz = #{fzhxqz}</if>
+            <if test="lsgbz != null  and lsgbz != ''"> and lsgbz = #{lsgbz}</if>
+            <if test="kzlywcfq != null  and kzlywcfq != ''"> and kzlywcfq = #{kzlywcfq}</if>
+            <if test="cwyyywcfq != null  and cwyyywcfq != ''"> and cwyyywcfq = #{cwyyywcfq}</if>
+            <if test="sqxtypbz != null  and sqxtypbz != ''"> and sqxtypbz = #{sqxtypbz}</if>
+            <if test="zkxtypbz != null  and zkxtypbz != ''"> and zkxtypbz = #{zkxtypbz}</if>
+            <if test="ssyzqx != null  and ssyzqx != ''"> and ssyzqx = #{ssyzqx}</if>
+            <if test="zgkh != null  and zgkh != ''"> and zgkh = #{zgkh}</if>
+            <if test="isdbrqx != null  and isdbrqx != ''"> and isdbrqx = #{isdbrqx}</if>
+            <if test="jsry1 != null  and jsry1 != ''"> and jsry1 = #{jsry1}</if>
+            <if test="zgjj != null  and zgjj != ''"> and zgjj = #{zgjj}</if>
+            <if test="jylcfq != null  and jylcfq != ''"> and jylcfq = #{jylcfq}</if>
+            <if test="jelcfq != null  and jelcfq != ''"> and jelcfq = #{jelcfq}</if>
+            <if test="jdlcfq != null  and jdlcfq != ''"> and jdlcfq = #{jdlcfq}</if>
+            <if test="bmcfzxysdm != null  and bmcfzxysdm != ''"> and bmcfzxysdm = #{bmcfzxysdm}</if>
+            <if test="jsypcfq != null  and jsypcfq != ''"> and jsypcfq = #{jsypcfq}</if>
+            <if test="xcfsyq != null  and xcfsyq != ''"> and xcfsyq = #{xcfsyq}</if>
+            <if test="fzyyspq != null  and fzyyspq != ''"> and fzyyspq = #{fzyyspq}</if>
+            <if test="szyzq != null  and szyzq != ''"> and szyzq = #{szyzq}</if>
+            <if test="qkysq != null  and qkysq != ''"> and qkysq = #{qkysq}</if>
+            <if test="xgbjxhtyxq != null  and xgbjxhtyxq != ''"> and xgbjxhtyxq = #{xgbjxhtyxq}</if>
+            <if test="yzfsq != null  and yzfsq != ''"> and yzfsq = #{yzfsq}</if>
+            <if test="yzfscxq != null  and yzfscxq != ''"> and yzfscxq = #{yzfscxq}</if>
+            <if test="blbjq != null  and blbjq != ''"> and blbjq = #{blbjq}</if>
+            <if test="hzq != null  and hzq != ''"> and hzq = #{hzq}</if>
+            <if test="gbys != null  and gbys != ''"> and gbys = #{gbys}</if>
+            <if test="zycfq != null  and zycfq != ''"> and zycfq = #{zycfq}</if>
+            <if test="mzcfq != null  and mzcfq != ''"> and mzcfq = #{mzcfq}</if>
+            <if test="fsypcfq != null  and fsypcfq != ''"> and fsypcfq = #{fsypcfq}</if>
+            <if test="jhsyypcfq != null  and jhsyypcfq != ''"> and jhsyypcfq = #{jhsyypcfq}</if>
+            <if test="ckfsgbqx != null  and ckfsgbqx != ''"> and ckfsgbqx = #{ckfsgbqx}</if>
+            <if test="pxyxj != null  and pxyxj != ''"> and pxyxj = #{pxyxj}</if>
+            <if test="gbysbz != null  and gbysbz != ''"> and gbysbz = #{gbysbz}</if>
+            <if test="mfhs != null  and mfhs != ''"> and mfhs = #{mfhs}</if>
+            <if test="xlMc != null  and xlMc != ''"> and xl_mc = #{xlMc}</if>
+            <if test="xwId != null  and xwId != ''"> and xw_id = #{xwId}</if>
+            <if test="xwMc != null  and xwMc != ''"> and xw_mc = #{xwMc}</if>
+            <if test="sfzzyy != null  and sfzzyy != ''"> and sfzzyy = #{sfzzyy}</if>
+            <if test="wjztxbz != null  and wjztxbz != ''"> and wjztxbz = #{wjztxbz}</if>
+            <if test="ybysbz != null  and ybysbz != ''"> and ybysbz = #{ybysbz}</if>
+            <if test="gjycfq != null  and gjycfq != ''"> and gjycfq = #{gjycfq}</if>
+            <if test="isscpt != null  and isscpt != ''"> and isscpt = #{isscpt}</if>
+            <if test="dbcfq != null  and dbcfq != ''"> and dbcfq = #{dbcfq}</if>
+            <if test="rzrq != null  and rzrq != ''"> and rzrq = #{rzrq}</if>
+            <if test="lzrq != null  and lzrq != ''"> and lzrq = #{lzrq}</if>
+            <if test="kxgypzd != null  and kxgypzd != ''"> and kxgypzd = #{kxgypzd}</if>
+            <if test="bkxgypzd != null "> and bkxgypzd = #{bkxgypzd}</if>
+            <if test="yszgzbm != null  and yszgzbm != ''"> and yszgzbm = #{yszgzbm}</if>
+            <if test="yszyzbm != null  and yszyzbm != ''"> and yszyzbm = #{yszyzbm}</if>
+            <if test="zwId != null  and zwId != ''"> and zw_id = #{zwId}</if>
+            <if test="zwMc != null  and zwMc != ''"> and zw_mc = #{zwMc}</if>
+            <if test="mdmphoto != null  and mdmphoto != ''"> and mdmphoto = #{mdmphoto}</if>
+            <if test="dlhsbz != null  and dlhsbz != ''"> and dlhsbz = #{dlhsbz}</if>
+            <if test="yszcbh != null  and yszcbh != ''"> and yszcbh = #{yszcbh}</if>
+            <if test="yszyfw != null  and yszyfw != ''"> and yszyfw = #{yszyfw}</if>
+            <if test="hszybh != null  and hszybh != ''"> and hszybh = #{hszybh}</if>
+            <if test="zgsc != null  and zgsc != ''"> and zgsc = #{zgsc}</if>
+            <if test="zglx != null  and zglx != ''"> and zglx = #{zglx}</if>
+            <if test="cfqz != null  and cfqz != ''"> and cfqz = #{cfqz}</if>
+            <if test="mzlycfqz != null  and mzlycfqz != ''"> and mzlycfqz = #{mzlycfqz}</if>
+            <if test="xycflrqz != null  and xycflrqz != ''"> and xycflrqz = #{xycflrqz}</if>
+            <if test="zycflrqz != null  and zycflrqz != ''"> and zycflrqz = #{zycflrqz}</if>
+            <if test="cycflrqz != null  and cycflrqz != ''"> and cycflrqz = #{cycflrqz}</if>
+            <if test="jslycfqz != null  and jslycfqz != ''"> and jslycfqz = #{jslycfqz}</if>
+            <if test="jdlycfqz != null  and jdlycfqz != ''"> and jdlycfqz = #{jdlycfqz}</if>
+            <if test="fzyyspqz != null  and fzyyspqz != ''"> and fzyyspqz = #{fzyyspqz}</if>
+            <if test="xcfsyqxz != null  and xcfsyqxz != ''"> and xcfsyqxz = #{xcfsyqxz}</if>
+            <if test="szyzqxz != null  and szyzqxz != ''"> and szyzqxz = #{szyzqxz}</if>
+            <if test="qkysqxz != null  and qkysqxz != ''"> and qkysqxz = #{qkysqxz}</if>
+            <if test="xgbjxhtyxqxz != null  and xgbjxhtyxqxz != ''"> and xgbjxhtyxqxz = #{xgbjxhtyxqxz}</if>
+            <if test="yssfyyzfsqxz != null  and yssfyyzfsqxz != ''"> and yssfyyzfsqxz = #{yssfyyzfsqxz}</if>
+            <if test="xghqxzdbrsbqz != null  and xghqxzdbrsbqz != ''"> and xghqxzdbrsbqz = #{xghqxzdbrsbqz}</if>
+            <if test="fyxxdydcqz != null  and fyxxdydcqz != ''"> and fyxxdydcqz = #{fyxxdydcqz}</if>
+            <if test="dbybcfqz != null  and dbybcfqz != ''"> and dbybcfqz = #{dbybcfqz}</if>
+            <if test="jylyfqz != null  and jylyfqz != ''"> and jylyfqz = #{jylyfqz}</if>
+            <if test="gjycfqz != null  and gjycfqz != ''"> and gjycfqz = #{gjycfqz}</if>
+            <if test="zzrsyycfqz != null  and zzrsyycfqz != ''"> and zzrsyycfqz = #{zzrsyycfqz}</if>
+            <if test="cplyycfqz != null  and cplyycfqz != ''"> and cplyycfqz = #{cplyycfqz}</if>
+            <if test="tpsjsyycfqz != null  and tpsjsyycfqz != ''"> and tpsjsyycfqz = #{tpsjsyycfqz}</if>
+            <if test="xyzjyycfqz != null  and xyzjyycfqz != ''"> and xyzjyycfqz = #{xyzjyycfqz}</if>
+            <if test="yyjsyycfqz != null  and yyjsyycfqz != ''"> and yyjsyycfqz = #{yyjsyycfqz}</if>
+            <if test="myzqyycfqz != null  and myzqyycfqz != ''"> and myzqyycfqz = #{myzqyycfqz}</if>
+            <if test="kzlywcfqz != null  and kzlywcfqz != ''"> and kzlywcfqz = #{kzlywcfqz}</if>
+            <if test="ylqtcfqz != null  and ylqtcfqz != ''"> and ylqtcfqz = #{ylqtcfqz}</if>
+            <if test="yzfscxqz != null  and yzfscxqz != ''"> and yzfscxqz = #{yzfscxqz}</if>
+            <if test="blbjqz != null  and blbjqz != ''"> and blbjqz = #{blbjqz}</if>
+            <if test="hzqz != null  and hzqz != ''"> and hzqz = #{hzqz}</if>
+            <if test="blzhcxdydcqz != null  and blzhcxdydcqz != ''"> and blzhcxdydcqz = #{blzhcxdydcqz}</if>
+            <if test="emrblcxqz != null  and emrblcxqz != ''"> and emrblcxqz = #{emrblcxqz}</if>
+            <if test="bltjqz != null  and bltjqz != ''"> and bltjqz = #{bltjqz}</if>
+            <if test="csqz != null  and csqz != ''"> and csqz = #{csqz}</if>
+            <if test="ksscfqz != null  and ksscfqz != ''"> and ksscfqz = #{ksscfqz}</if>
+            <if test="dbrqxz != null  and dbrqxz != ''"> and dbrqxz = #{dbrqxz}</if>
+            <if test="cwyyycfqz != null  and cwyyycfqz != ''"> and cwyyycfqz = #{cwyyycfqz}</if>
+            <if test="jelycfqz != null  and jelycfqz != ''"> and jelycfqz = #{jelycfqz}</if>
+            <if test="mzcfqz != null  and mzcfqz != ''"> and mzcfqz = #{mzcfqz}</if>
+            <if test="zycfqz != null  and zycfqz != ''"> and zycfqz = #{zycfqz}</if>
+            <if test="fsypcfqz != null  and fsypcfqz != ''"> and fsypcfqz = #{fsypcfqz}</if>
+            <if test="ckfsgbqz != null  and ckfsgbqz != ''"> and ckfsgbqz = #{ckfsgbqz}</if>
+            <if test="sfnkssyzz != null  and sfnkssyzz != ''"> and sfnkssyzz = #{sfnkssyzz}</if>
+            <if test="jhsyypcfqz != null  and jhsyypcfqz != ''"> and jhsyypcfqz = #{jhsyypcfqz}</if>
+            <if test="zlxmcfqz != null  and zlxmcfqz != ''"> and zlxmcfqz = #{zlxmcfqz}</if>
+            <if test="tbcfq != null  and tbcfq != ''"> and tbcfq = #{tbcfq}</if>
+            <if test="yjkscxq != null  and yjkscxq != ''"> and yjkscxq = #{yjkscxq}</if>
+            <if test="ejkscxq != null  and ejkscxq != ''"> and ejkscxq = #{ejkscxq}</if>
+            <if test="ywsyq != null  and ywsyq != ''"> and ywsyq = #{ywsyq}</if>
+            <if test="ybcfq != null  and ybcfq != ''"> and ybcfq = #{ybcfq}</if>
+            <if test="yydxyqcfq != null  and yydxyqcfq != ''"> and yydxyqcfq = #{yydxyqcfq}</if>
+            <if test="ylqtlcfq != null  and ylqtlcfq != ''"> and ylqtlcfq = #{ylqtlcfq}</if>
+            <if test="hzyqq != null  and hzyqq != ''"> and hzyqq = #{hzyqq}</if>
+            <if test="hzchq != null  and hzchq != ''"> and hzchq = #{hzchq}</if>
+            <if test="sqyxqx != null  and sqyxqx != ''"> and sqyxqx = #{sqyxqx}</if>
+            <if test="ksxdfwhqx != null  and ksxdfwhqx != ''"> and ksxdfwhqx = #{ksxdfwhqx}</if>
+            <if test="qyxdfwhqx != null  and qyxdfwhqx != ''"> and qyxdfwhqx = #{qyxdfwhqx}</if>
+            <if test="qygmxxzfqx != null  and qygmxxzfqx != ''"> and qygmxxzfqx = #{qygmxxzfqx}</if>
+            <if test="bkysdmjsjdxgqx != null  and bkysdmjsjdxgqx != ''"> and bkysdmjsjdxgqx = #{bkysdmjsjdxgqx}</if>
+            <if test="qyysdmjsjdxgqx != null  and qyysdmjsjdxgqx != ''"> and qyysdmjsjdxgqx = #{qyysdmjsjdxgqx}</if>
+            <if test="bmfglqx != null  and bmfglqx != ''"> and bmfglqx = #{bmfglqx}</if>
+            <if test="kszpglwhqx != null  and kszpglwhqx != ''"> and kszpglwhqx = #{kszpglwhqx}</if>
+            <if test="qyzpglwhqx != null  and qyzpglwhqx != ''"> and qyzpglwhqx = #{qyzpglwhqx}</if>
+            <if test="qydzblmbbjq != null  and qydzblmbbjq != ''"> and qydzblmbbjq = #{qydzblmbbjq}</if>
+            <if test="dzysbz != null  and dzysbz != ''"> and dzysbz = #{dzysbz}</if>
+            <if test="kzrshqx != null  and kzrshqx != ''"> and kzrshqx = #{kzrshqx}</if>
+            <if test="kfcfq != null  and kfcfq != ''"> and kfcfq = #{kfcfq}</if>
+        </where>
+    </select>
+
+</mapper>

+ 4 - 0
ruoyi-admin/src/main/resources/mapper/work/KnowledgeMapper.xml

@@ -19,4 +19,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
     </select>
 
+    <select id="indexList" resultType="com.ruoyi.web.work.domain.Knowledge">
+        SELECT id, title,type,create_time FROM tb_knowledge WHERE state=0 ORDER BY id DESC LIMIT 5
+    </select>
+
 </mapper>

+ 23 - 0
ruoyi-admin/src/main/resources/mapper/work/WardInfoMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.web.work.mapper.WardInfoMapper">
+    
+    <select id="selectList" resultType="com.ruoyi.web.work.domain.WardInfo">
+        select * from tb_ward_info
+        <where>  
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="wardCode != null  and wardCode != ''"> and ward_code = #{wardCode}</if>
+            <if test="wardName != null  and wardName != ''"> and ward_name like concat('%', #{wardName}, '%')</if>
+            <if test="py != null  and py != ''"> and py = #{py}</if>
+            <if test="wb != null  and wb != ''"> and wb = #{wb}</if>
+            <if test="inputCode != null  and inputCode != ''"> and input_code = #{inputCode}</if>
+            <if test="validEndDTime != null  and validEndDTime != ''"> and valid_end_d_time = #{validEndDTime}</if>
+            <if test="activeSign != null  and activeSign != ''"> and active_sign = #{activeSign}</if>
+            <if test="verNo != null  and verNo != ''"> and ver_no = #{verNo}</if>
+            <if test="orderno != null  and orderno != ''"> and orderno = #{orderno}</if>
+        </where>
+    </select>
+
+</mapper>

+ 199 - 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java

@@ -119,4 +119,203 @@ public class SysUser extends BaseEntity {
         return userId != null && 1L == userId;
     }
 
+    private String orgCode;
+    private String employeeId;
+    private String employeeName;
+    private String py;
+    private String wb;
+    private String inputCode;
+    private Integer genderCode;
+    private String genderName;
+    private String birthDate;
+    private Integer maritalStatusCode;
+    private Integer idTypeCode;
+    private String idNo;
+    private String deptCode;
+    private String deptName;
+    private String adminDeptCode;
+    private String adminDeptName;
+    private String wardCode;
+    private String wardName;
+    private Integer employeeTypeCode;
+    private Integer techPositionCode;
+    private String techPositionName;
+    private String telephone;
+    private String supDoctorCode;
+    private String supDoctorName;
+    private String medDocCode;
+    private String dirDocSign;
+    private String presRightSign;
+    private String anesPresRightSign;
+    private String specRegFee;
+    private Integer limitNumber;
+    private String presChapterNo;
+    private String memo;
+    private Integer amLimitNo;
+    private Integer pmLimitNo;
+    private String modifiedPresSign;
+    private String elecPresRight;
+    private String noonLimitNo;
+    private String emergencyRegFee;
+    private String emergencyMedFee;
+    private String emergencyTreatFee;
+    private Long degreeCode;
+    private String photoUrl;
+    private String signatureGraph;
+    private String validStartDTime;
+    private String validEndDTime;
+    private String activeSign;
+    private String verNo;
+    private String employeePassword;
+    private String bmjb;
+    private String gwdm;
+    private String gwmc;
+    private String ghf;
+    private String zlf;
+    private String wzzxbz;
+    private String ysjb;
+    private String ismsg;
+    private String sszcId;
+    private String sszcMc;
+    private String czry;
+    private String zxysdm;
+    private String mzTfbz;
+    private String ssfl;
+    private String zxksdm;
+    private String ipaddress;
+    private String sfyy;
+    private String yxj;
+    private String iszkhs;
+    private String zzghbz;
+    private String sfxh;
+    private String txbz;
+    private String ksscfq;
+    private String zyzz;
+    private String sjdpbbz;
+    private String mxpbbz;
+    private String fzhxqz;
+    private String lsgbz;
+    private String kzlywcfq;
+    private String cwyyywcfq;
+    private String sqxtypbz;
+    private String zkxtypbz;
+    private String ssyzqx;
+    private String zgkh;
+    private String isdbrqx;
+    private String jsry1;
+    private String zgjj;
+    private String jylcfq;
+    private String jelcfq;
+    private String jdlcfq;
+    private String bmcfzxysdm;
+    private String jsypcfq;
+    private String xcfsyq;
+    private String fzyyspq;
+    private String szyzq;
+    private String qkysq;
+    private String xgbjxhtyxq;
+    private String yzfsq;
+    private String yzfscxq;
+    private String blbjq;
+    private String hzq;
+    private String gbys;
+    private String zycfq;
+    private String mzcfq;
+    private String fsypcfq;
+    private String jhsyypcfq;
+    private String ckfsgbqx;
+    private String pxyxj;
+    private String gbysbz;
+    private String mfhs;
+    private String xlMc;
+    private String xwId;
+    private String xwMc;
+    private String sfzzyy;
+    private String wjztxbz;
+    private String ybysbz;
+    private String gjycfq;
+    private String isscpt;
+    private String dbcfq;
+    private String rzrq;
+    private String lzrq;
+    private String kxgypzd;
+    private Integer bkxgypzd;
+    private String yszgzbm;
+    private String yszyzbm;
+    private String zwId;
+    private String zwMc;
+    private String mdmphoto;
+    private String dlhsbz;
+    private String yszcbh;
+    private String yszyfw;
+    private String hszybh;
+    private String zgsc;
+    private String zglx;
+    private String cfqz;
+    private String mzlycfqz;
+    private String xycflrqz;
+    private String zycflrqz;
+    private String cycflrqz;
+    private String jslycfqz;
+    private String jdlycfqz;
+    private String fzyyspqz;
+    private String xcfsyqxz;
+    private String szyzqxz;
+    private String qkysqxz;
+    private String xgbjxhtyxqxz;
+    private String yssfyyzfsqxz;
+    private String xghqxzdbrsbqz;
+    private String fyxxdydcqz;
+    private String dbybcfqz;
+    private String jylyfqz;
+    private String gjycfqz;
+    private String zzrsyycfqz;
+    private String cplyycfqz;
+    private String tpsjsyycfqz;
+    private String xyzjyycfqz;
+    private String yyjsyycfqz;
+    private String myzqyycfqz;
+    private String kzlywcfqz;
+    private String ylqtcfqz;
+    private String yzfscxqz;
+    private String blbjqz;
+    private String hzqz;
+    private String blzhcxdydcqz;
+    private String emrblcxqz;
+    private String bltjqz;
+    private String csqz;
+    private String ksscfqz;
+    private String dbrqxz;
+    private String cwyyycfqz;
+    private String jelycfqz;
+    private String mzcfqz;
+    private String zycfqz;
+    private String fsypcfqz;
+    private String ckfsgbqz;
+    private String sfnkssyzz;
+    private String jhsyypcfqz;
+    private String zlxmcfqz;
+    private String tbcfq;
+    private String yjkscxq;
+    private String ejkscxq;
+    private String ywsyq;
+    private String ybcfq;
+    private String yydxyqcfq;
+    private String ylqtlcfq;
+    private String hzyqq;
+    private String hzchq;
+    private String sqyxqx;
+    private String ksxdfwhqx;
+    private String qyxdfwhqx;
+    private String qygmxxzfqx;
+    private String bkysdmjsjdxgqx;
+    private String qyysdmjsjdxgqx;
+    private String bmfglqx;
+    private String kszpglwhqx;
+    private String qyzpglwhqx;
+    private String qydzblmbbjq;
+    private String dzysbz;
+    private String kzrshqx;
+    private String kfcfq;
+
 }