Browse Source

feat:新增小程序随访

lsw 9 months ago
parent
commit
2f29ab2c8f

+ 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_0x1eyrovrdgh.ttf?t=1721014628890') format('truetype');
+	src: url('https://at.alicdn.com/t/c/font_4620946_tkp8n5lag3a.ttf?t=1721203311581') format('truetype');
 	/* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
 }
 .icon {

+ 50 - 0
app/common/common.scss

@@ -117,3 +117,53 @@
 		}
 	}
 }
+/*****设置**********/
+.cmd {
+	margin-top: 15px;
+	border-radius: 5px;
+	overflow: hidden;
+	.s_item {
+		padding: 10px;
+		background-color: white;
+		color: $font-c;
+		overflow: hidden;
+		border-bottom: 1px solid #f0f2f7;
+		.ic {
+			display: block;
+			float: left;
+			width: 27px;
+			height: 27px;
+			font-size: 25px;
+			box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+			text-align: center;
+			padding: 7px;
+			border-radius: 50%;
+			margin-right: 13px;
+			line-height: 29px;
+		}
+		.title {
+			color: #545555;
+			padding-top: 11px;
+			float: left;
+		}
+		.arrow {
+			font-size: 20px;
+			float: right;
+			color: #9a9a9a;
+			margin-top: 10px;
+		}
+	}
+}
+.xy {
+	color: $font-c;
+	padding-top: 15px;
+	font-size: 14px;
+	.checkbox {
+		float: left;
+		font-size: 14px;
+		margin-top: 1px;
+	}
+	.a {
+		color: blue;
+	}
+}

+ 14 - 0
app/pages.json

@@ -41,6 +41,20 @@
 			{
 				"navigationBarTitleText" : "医生介绍"
 			}
+		},
+		{
+			"path" : "pages/follow/detail",
+			"style" : 
+			{
+				"navigationBarTitleText" : "随访详情"
+			}
+		},
+		{
+			"path" : "pages/user/login",
+			"style" : 
+			{
+				"navigationBarTitleText" : "用户登录"
+			}
 		}
 	],
 	"tabBar": {

+ 87 - 0
app/pages/follow/detail.vue

@@ -0,0 +1,87 @@
+<template>
+	<view class="main">
+		<view class="content">
+			<view class="title">{{ item.title }}</view>
+			<view class="desc">
+				<text class="time">发布于:{{ item.createTime }}</text>
+				<button class="fx" open-type="share">
+					<text class="icon">&#xe637;</text>
+					<text>分享</text>
+				</button>
+			</view>
+			<view class="con">
+				<u-divider :dot="true"></u-divider>
+				<u-parse :content="item.content"></u-parse>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			item: {}
+		};
+	},
+	onLoad(e) {
+		this.http.request({
+			url: '/app/knowledge/detail/' + e.id,
+			success: (res) => {
+				this.item = res.data.data;
+				this.item.content = res.data.data.content.replace(new RegExp('/profile/upload/', 'g'), this.http.ip + '/profile/upload/');
+			}
+		});
+	},
+	methods: {},
+	//分享
+	onShareAppMessage: function (res) {
+		return {
+			title: this.item.title,
+			path: '/pages/knowledge/detail?id=' + this.item.id,
+			success: (res) => {},
+			fail: (res) => {}
+		};
+	}
+};
+</script>
+
+<style lang="scss">
+.main {
+	padding: 0px 10px 10px 10px;
+}
+.content {
+	padding: 15px;
+	background-color: white;
+	border-radius: 8px;
+	.title {
+		font-size: 18px;
+	}
+	.desc {
+		padding-top: 15px;
+		font-size: 13px;
+		color: #7c8388;
+		.time {
+			padding-right: 25px;
+		}
+		.fx {
+			background-color: white;
+			float: right;
+			font-size: 15px;
+			margin-right: -14px;
+			margin-top: -13px;
+			color: $main-color;
+			.icon {
+				padding-right: 3px;
+			}
+		}
+	}
+	.con {
+		font-size: 14px;
+		line-height: 23px;
+		image {
+			border-radius: 5px !important;
+		}
+	}
+}
+</style>

+ 8 - 289
app/pages/user/index.vue

@@ -4,259 +4,21 @@
 			<image :src="user.avatar ? ip + user.avatar : '../../static/favicon.png'" class="head"></image>
 			<view class="con" v-if="user.id">
 				<view class="nickName">{{ user.type == 0 ? '个人用户' : '企业用户' }}</view>
-				<view class="welcome">
-					<text class="icon" v-if="user.isAuthentication == 0">&#xec72;</text>
-					<text class="icon" v-else>&#xe607;</text>
-					<text>{{ user.isAuthentication == 0 ? '未实名,点击去认证' : '已实名认证' }}</text>
-				</view>
+				<view class="welcome">欢迎使用岑溪人民医院小程序</view>
 			</view>
 			<view class="con" v-else>
 				<view class="nickName">你还没登录</view>
-				<view class="welcome">欢迎使用爱就业咨询服务平台</view>
+				<view class="welcome">欢迎使用岑溪人民医院小程序</view>
 			</view>
 			<view class="icon edit">&#xe62b;</view>
 		</view>
-		<!--企业用户-->
-		<view class="rows" v-if="user.type == 1">
-			<view class="row">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.receiveResume || 0 }}</view>
-						<view class="desc">收到简历</view>
-					</view>
-				</view>
-			</view>
-			<view class="row">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.inviteUser || 0 }}</view>
-						<view class="desc">面试邀请</view>
-					</view>
-				</view>
-			</view>
-			<view class="row" @click="go('/pages/user/money/index')">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.money || 0 }}</view>
-						<view class="desc">账户余额</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<!--个人用户-->
-		<view class="rows" v-else>
-			<view class="row">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.fullTime || 0 }}</view>
-						<view class="desc">全职投递</view>
-					</view>
-				</view>
-			</view>
-			<view class="row">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.partTime || 0 }}</view>
-						<view class="desc">兼职投递</view>
-					</view>
-				</view>
-			</view>
-			<view class="row" @click="go('/pages/user/money/index')">
-				<view class="out">
-					<view class="int">
-						<view class="num">{{ user.money || 0 }}</view>
-						<view class="desc">账户余额</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<!--招聘服务-->
-		<view v-if="user.type == 1">
-			<view class="mtt">招聘服务</view>
-			<view class="menu">
-				<view class="cd" @click="go('/pages/job/position/manage/full_time')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #ff9800">&#xe602;</view>
-							<view class="title">发布职位</view>
-						</view>
-					</view>
-				</view>
-				<view class="cd" @click="go('/pages/user/resume/deliver/receive/index')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #4caf50">&#xe627;</view>
-							<view class="title">收到简历</view>
-							<view class="bage" v-if="user.noReadResume > 0">{{ user.noReadResume > 99 ? '99+' : user.noReadResume }}</view>
-						</view>
-					</view>
-				</view>
-				<view class="cd" @click="go('/pages/user/enterprise/index')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #03a9f4">&#xe646;</view>
-							<view class="title">企业信息</view>
-							<view class="bage" v-if="user.id && !user.enterprise">去认证</view>
-						</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<!--求职服务-->
-		<view v-else>
-			<view class="mtt">求职服务</view>
-			<view class="menu">
-				<view class="cd" @click="go('/pages/user/resume/index')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #3f51b5">&#xe606;</view>
-							<view class="title">我的简历</view>
-							<view class="bage" v-if="user.id && !user.resume">待完善</view>
-						</view>
-					</view>
-				</view>
-				<view class="cd" @click="go('/pages/user/resume/deliver/invite')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #4caf50">&#xe605;</view>
-							<view class="title">面试邀约</view>
-							<view class="bage" v-if="user.fullTimeAccept > 0">{{ user.fullTimeAccept > 99 ? '99+' : user.fullTimeAccept }}</view>
-						</view>
-					</view>
-				</view>
-				<view class="cd" @click="go('/pages/user/resume/deliver/list')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #607d8b">&#xe652;</view>
-							<view class="title">投递历史</view>
-						</view>
-					</view>
-				</view>
-				<view class="cd" @click="go('/pages/job/position/favorite')">
-					<view class="out">
-						<view class="int">
-							<view class="icon" style="background-color: #ff9800">&#xe626;</view>
-							<view class="title">我的收藏</view>
-						</view>
-					</view>
-				</view>
+		<view class="cmd">
+			<view class="s_item" @click="go('/pages/help/my')">
+				<text class="icon ic" style="color: #f44336">&#xe60b;</text>
+				<text class="title">我的回访</text>
+				<text class="icon arrow">&#xe62b;</text>
 			</view>
 		</view>
-		<view class="mtt">兼职服务</view>
-		<view class="menu">
-			<view class="cd" @click="go('/pages/job/position/manage/part_time')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #F44336">&#xe62a;</view>
-						<view class="title">发布兼职</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/user/resume/application/receive/index')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #03a9f4">&#xe627;</view>
-						<view class="title">收到报名</view>
-						<view class="bage" v-if="user.noReadApplication > 0">{{ user.noReadApplication > 99 ? '99+' : user.noReadApplication }}</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/user/resume/deliver/list?type=1')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #4CAF50">&#xe652;</view>
-						<view class="title">我的报名</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/user/resume/application/invite?type=1')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #607D8B">&#xe60e;</view>
-						<view class="title">兼职邀约</view>
-						<view class="bage" v-if="user.partTimeAccept > 0">{{ user.partTimeAccept > 99 ? '99+' : user.partTimeAccept }}</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/user/resume/application/task_to_do?role=0')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #00BCD4">&#xe63e;</view>
-						<view class="title">甲方任务</view>
-						<view class="bage" v-if="user.completeApplication > 0">进行中</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/user/resume/application/task_to_do?role=1')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #795548">&#xe600;</view>
-						<view class="title">乙方任务</view>
-						<view class="bage" v-if="user.completeIng > 0">进行中</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<view class="mtt">更多功能</view>
-		<view class="menu">
-			<view class="cd" @click="go('/pages/statement/index/index')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #03a9f4">&#xe63c;</view>
-						<view class="title">结算广场</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd">
-				<view class="out">
-					<button class="int share" open-type="feedback" hover-class="none">
-						<view class="icon" style="background-color: #ffc107">&#xe648;</view>
-						<view class="title">建议反馈</view>
-					</button>
-				</view>
-			</view>
-			<view class="cd">
-				<view class="out">
-					<button class="int share" open-type="share" hover-class="none">
-						<view class="icon" style="background-color: #ff5722">&#xe637;</view>
-						<view class="title">分享应用</view>
-					</button>
-				</view>
-			</view>
-			<view class="cd">
-				<view class="out">
-					<button class="int share" open-type="contact" hover-class="none">
-						<view class="icon" style="background-color: #8bc34a">&#xe632;</view>
-						<view class="title">联系客服</view>
-					</button>
-				</view>
-			</view>
-			<view class="cd" @click="show = true">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #607d8b">&#xe6ee;</view>
-						<view class="title">切换角色</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/notice/detail?id=28')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #4581fb">&#xe634;</view>
-						<view class="title">关于我们</view>
-					</view>
-				</view>
-			</view>
-			<view class="cd" @click="go('/pages/other/setting')">
-				<view class="out">
-					<view class="int">
-						<view class="icon" style="background-color: #9e9e9e">&#xe63a;</view>
-						<view class="title">设置</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<u-action-sheet round="20" :actions="type" @select="selectClick" cancelText="取消" :show="show" @close="show = false"></u-action-sheet>
 	</view>
 </template>
 <script>
@@ -273,7 +35,7 @@ export default {
 		};
 	},
 	onShow() {
-/* 		this.user = {
+		/* 		this.user = {
 			token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdhZGY4MzFmLWE0NjQtNGY5YS04YTY5LWMzM2QyNDU2MzI2ZSJ9.EPHElRmlVoFTfT4OxHNpvIC7bDKc1gKpNiO1u_dBOerYh5JFIuSrSkgp0PtQ0kOhO9iuvU0dttEGbsgofdrcpQ'
 		};
 		uni.setStorageSync('user', this.user); */
@@ -299,25 +61,6 @@ export default {
 				}
 			});
 		},
-		//切换角色
-		selectClick(e) {
-			uni.showModal({
-				title: '提示',
-				content: e.value == 0 ? '确定切换到个人用户?' : '确定切换到企业用户?',
-				success: (res) => {
-					if (res.confirm) {
-						this.http.request({
-							url: '/app/user/choice',
-							data: { type: e.value },
-							method: 'POST',
-							success: (res) => {
-								this.getUserInfo();
-							}
-						});
-					}
-				}
-			});
-		},
 		go(url) {
 			if (this.hasLogin()) {
 				uni.navigateTo({ url: url });
@@ -368,29 +111,5 @@ export default {
 			margin-top: 14px;
 		}
 	}
-	.rows {
-		overflow: hidden;
-		margin-top: 10px;
-		.row {
-			float: left;
-			width: 33%;
-			text-align: center;
-			.out {
-				.int {
-					padding: 5px;
-					.num {
-						font-weight: bold;
-					}
-					.desc {
-						padding-top: 5px;
-						font-size: 14px;
-					}
-				}
-			}
-		}
-	}
-	.mtt {
-		margin-top: 10px;
-	}
 }
 </style>

+ 39 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_FollowTemplateController.java

@@ -0,0 +1,39 @@
+package com.ruoyi.web.work.api;
+
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.web.work.domain.FollowTemplate;
+import com.ruoyi.web.work.service.IFollowTemplateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 回访模板管理
+ *
+ * @author lsw
+ * @date 2024-07-11
+ */
+@RestController
+@RequestMapping("/app/follow/template")
+public class Api_FollowTemplateController extends BaseController {
+    @Autowired
+    private IFollowTemplateService followTemplateService;
+
+    @GetMapping("/list")
+    public TableDataInfo list(FollowTemplate followTemplate) {
+        startPage();
+        List<FollowTemplate> list = followTemplateService.selectList(followTemplate);
+        return getDataTable(list);
+    }
+
+    @GetMapping(value = "/detail/{id}")
+    public AjaxResult detail(@PathVariable("id") Long id) {
+        return AjaxResult.success(followTemplateService.getById(id));
+    }
+}

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

@@ -0,0 +1,29 @@
+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.dto.LoginDto;
+import com.ruoyi.web.work.service.IUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.rmi.ServerException;
+
+@RestController
+@RequestMapping("/app/user")
+public class Api_UserController extends BaseController {
+
+    @Autowired
+    IUserService userService;
+
+    @PostMapping("/login")
+    public AjaxResult login(@Validated @RequestBody LoginDto dto) throws ServerException {
+        return userService.login(dto);
+    }
+
+}
+

+ 12 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/domain/dto/LoginDto.java

@@ -0,0 +1,12 @@
+package com.ruoyi.web.work.domain.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+@Data
+public class LoginDto {
+
+    @NotBlank(message = "参数不能为空")
+    private String code;
+}

+ 6 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/UserMapper.java

@@ -1,8 +1,10 @@
 package com.ruoyi.web.work.mapper;
 
-import java.util.List;
-import com.ruoyi.web.work.domain.User;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ruoyi.web.work.domain.User;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
 
 /**
  * @author lsw
@@ -10,4 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  */
 public interface UserMapper extends BaseMapper<User> {
     List<User> selectList(User user);
+
+    User selectByOpenId(@Param("openId") String openId);
 }

+ 15 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/IUserService.java

@@ -1,13 +1,25 @@
 package com.ruoyi.web.work.service;
 
-import java.util.List;
-import com.ruoyi.web.work.domain.User;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.web.work.domain.User;
+import com.ruoyi.web.work.domain.dto.LoginDto;
+
+import java.rmi.ServerException;
+import java.util.List;
 
 /**
  * @author lsw
- * @date 2024-07-16
+ * @date 2024-07-16LoginDto
  */
 public interface IUserService extends IService<User>{
     List<User> selectList(User user);
+
+    /**
+     * 微信登陆
+     *
+     * @param dto
+     * @return
+     */
+    AjaxResult login(LoginDto dto) throws ServerException;
 }

+ 46 - 5
ruoyi-admin/src/main/java/com/ruoyi/web/work/service/impl/UserServiceImpl.java

@@ -1,12 +1,22 @@
 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.UserMapper;
+import com.alibaba.fastjson2.JSON;
+import com.alibaba.fastjson2.JSONObject;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.utils.StringUtils;
+import com.ruoyi.common.utils.http.HttpUtils;
+import com.ruoyi.web.work.api.config.TokenServices;
 import com.ruoyi.web.work.domain.User;
+import com.ruoyi.web.work.domain.dto.LoginDto;
+import com.ruoyi.web.work.mapper.UserMapper;
 import com.ruoyi.web.work.service.IUserService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.env.Environment;
+import org.springframework.stereotype.Service;
+
+import java.rmi.ServerException;
+import java.util.List;
 
 /**
  * @author lsw
@@ -17,8 +27,39 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
     @Autowired
     private UserMapper userMapper;
 
+    @Autowired
+    private TokenServices tokenService;
+
+    @Autowired
+    private Environment env;
+
     @Override
     public List<User> selectList(User user) {
         return userMapper.selectList(user);
     }
+
+    @Override
+    public AjaxResult login(LoginDto dto) throws ServerException {
+        JSONObject res = JSON.parseObject(HttpUtils.sendGet("https://api.weixin.qq.com/sns/jscode2session?appid=" + env.getProperty("wx.appid") + "&secret=" + env.getProperty("wx.appSecret") + "&js_code=" + dto.getCode() + "&grant_type=authorization_code", null));
+        if (StringUtils.isNotEmpty(res.getString("errmsg"))) {
+            return AjaxResult.error("获取openid失败");
+        }
+        User user = userMapper.selectByOpenId(res.getString("openid"));
+        if (user == null) {
+            user = new User();
+            user.setOpenId(res.getString("openid"));
+            user.setState(0);
+            if (!save(user)) {
+                throw new ServerException("登录失败,请联系管理员");
+            }
+            return AjaxResult.success(new AjaxResult().put("token", tokenService.createToken(user)));
+        }
+        if (user.getState() == 1) {
+            return AjaxResult.error(403, "你的账号被锁定,请联系管理员");
+        }
+        if (!updateById(user)) {
+            throw new ServerException("登录失败,请联系管理员");
+        }
+        return AjaxResult.success(new AjaxResult().put("token", tokenService.createToken(user)));
+    }
 }

+ 4 - 19
ruoyi-admin/src/main/resources/mapper/work/UserMapper.xml

@@ -10,27 +10,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="openId != null  and openId != ''"> and open_id = #{openId}</if>
             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
             <if test="avatar != null  and avatar != ''"> and avatar = #{avatar}</if>
-            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
-            <if test="idCard != null  and idCard != ''"> and id_card = #{idCard}</if>
-            <if test="sex != null  and sex != ''"> and sex = #{sex}</if>
-            <if test="address != null  and address != ''"> and address = #{address}</if>
-            <if test="nationality != null  and nationality != ''"> and nationality = #{nationality}</if>
-            <if test="birth != null  and birth != ''"> and birth = #{birth}</if>
-            <if test="endDate != null  and endDate != ''"> and end_date = #{endDate}</if>
-            <if test="bankName != null  and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if>
-            <if test="bankAccount != null  and bankAccount != ''"> and bank_account = #{bankAccount}</if>
-            <if test="alipay != null  and alipay != ''"> and alipay = #{alipay}</if>
-            <if test="p1 != null  and p1 != ''"> and p1 = #{p1}</if>
-            <if test="p2 != null  and p2 != ''"> and p2 = #{p2}</if>
-            <if test="type != null "> and type = #{type}</if>
-            <if test="isEnterprise != null "> and is_enterprise = #{isEnterprise}</if>
-            <if test="isContract != null "> and is_contract = #{isContract}</if>
-            <if test="isAuthentication != null "> and is_authentication = #{isAuthentication}</if>
-            <if test="isCompany != null "> and is_company = #{isCompany}</if>
-            <if test="contractDate != null "> and contract_date = #{contractDate}</if>
             <if test="state != null "> and state = #{state}</if>
-            <if test="money != null "> and money = #{money}</if>
         </where>
     </select>
 
+    <select id="selectByOpenId" resultType="com.ruoyi.web.work.domain.User">
+        SELECT * FROM tb_user WHERE open_id=#{openId}
+    </select>
+
 </mapper>