浏览代码

搜索栏调整:用户管理->会员列表
1.添加姓名为搜索属性,2.搜索属性顺序:姓名加在手机号之前

Qifeng-Wu 5 年之前
父节点
当前提交
963121f7fa

+ 4 - 0
happy-job-base-system/src/main/webapp/webpage/modules/sys/hpuser/hpUserList.jsp

@@ -39,6 +39,10 @@
 		<div class="accordion-inner">
 			<form:form id="searchForm" modelAttribute="hpMember" class="form form-horizontal well clearfix">
 					<div class="col-xs-12 col-sm-4 col-md-2">
+						<label class="label-item single-overflow pull-left" title="姓名:">姓名:</label>
+						<form:input path="realName" htmlEscape="false" maxlength="15"  class=" form-control input-sm" placeholder="姓名"/>
+					</div>
+					<div class="col-xs-12 col-sm-4 col-md-2">
 						<label class="label-item single-overflow pull-left" title="手机:">手机:</label>
 						<form:input path="phone" htmlEscape="false" maxlength="64"  class=" form-control input-sm" placeholder="手机号"/>
 					</div>

+ 6 - 0
happy-job-module-hpjob/src/main/java/com/jeeplus/modules/sys/mapper/xml/HpMemberMapper.xml

@@ -121,6 +121,9 @@
 			<if test="hpUser!=null and hpUser.endCreateDate != null ">
 				AND DATE_SUB(a.create_date, INTERVAL 1 DAY) &lt; date(#{hpUser.endCreateDate})
 			</if>
+			<if test="realName != null and realName != ''">
+				AND a.real_name = #{realName}
+			</if>
 			<if test="phone != null and phone != ''">
 				AND a.phone LIKE
 				<if test="dbName == 'oracle'">'%'||#{phone}||'%'</if>
@@ -174,6 +177,9 @@
 			<if test="hpUser!=null and hpUser.endCreateDate != null ">
 				AND DATE_SUB(a.create_date, INTERVAL 1 DAY) &lt; date(#{hpUser.endCreateDate})
 			</if>
+			<if test="realName != null and realName != ''">
+				AND a.real_name = #{realName}
+			</if>
 			<if test="phone != null and phone != ''">
 				AND a.phone LIKE
 				<if test="dbName == 'oracle'">'%'||#{phone}||'%'</if>

+ 6 - 0
happy-job-module-hpjob/src/main/java/com/jeeplus/modules/sys/mapper/xml/HpUserMapper.xml

@@ -78,6 +78,9 @@
 			<if test=" endCreateDate != null ">
 				AND DATE_SUB(a.create_date, INTERVAL 1 DAY) &lt; date(#{endCreateDate})
 			</if>
+			<if test="realName != null and realName != ''">
+				AND a.real_name = #{realName}
+			</if>
 			<if test="phone != null and phone != ''">
 				AND a.phone LIKE
 				<if test="dbName == 'oracle'">'%'||#{phone}||'%'</if>
@@ -130,6 +133,9 @@
 			<if test=" endCreateDate != null ">
 				AND DATE_SUB(a.create_date, INTERVAL 1 DAY) &lt; date(#{endCreateDate})
 			</if>
+			<if test="realName != null and realName != ''">
+				AND a.real_name = #{realName}
+			</if>
 			<if test="phone != null and phone != ''">
 				AND a.phone LIKE
 				<if test="dbName == 'oracle'">'%'||#{phone}||'%'</if>