فهرست منبع

订餐信息修改

user5 5 سال پیش
والد
کامیت
510997ebb4

+ 1 - 1
src/main/java/com/jeeplus/modules/wexintheorder/entity/TheOrder.java

@@ -89,6 +89,7 @@ public class TheOrder extends DataEntity<TheOrder> {
         this.name = name;
     }
 
+    @ExcelField(title="部门", align=2, sort=4)
     public String getDepartment() {
         return department;
     }
@@ -106,7 +107,6 @@ public class TheOrder extends DataEntity<TheOrder> {
         this.team = team;
     }
 
-    @ExcelField(title="部门", align=2, sort=4)
     public String getSpecific() {
         return specific;
     }

+ 19 - 4
src/main/resources/mappings/modules/wexintheorder/TheOrderWebDao.xml

@@ -39,6 +39,9 @@
 		<include refid="orderLeftJoinColumns"/>
 		<where>
 			a.del_flag = #{DEL_FLAG_NORMAL}
+			<if test="team != null and team != ''">
+				and a.team = #{team}
+			</if>
 			<if test="orderStatus != null and orderStatus == 0">
 				<if test="beginDate !=null">
 					and a.scheduled >= #{beginDate}
@@ -62,6 +65,9 @@
 		SELECT count(DISTINCT a.id)
 		from the_order a
 	  	<where>
+			<if test="team != null and team != ''">
+				and a.team = #{team}
+			</if>
 			<if test="orderStatus != null and orderStatus == 0">
 				<if test="beginDate !=null">
 					and a.scheduled >= #{beginDate}
@@ -77,6 +83,9 @@
 	<select id="getLeadershipList" resultType="com.jeeplus.modules.wexintheorder.entity.TheOrder">
 		select distinct(a.team) as department from the_order a
 		<where>
+			<if test="team != null and team != ''">
+				and a.team = #{team}
+			</if>
 			<if test="beginDate !=null">
 				and a.scheduled >= #{beginDate}
 			</if>
@@ -90,11 +99,14 @@
 	select (@rownum :=@rownum + 1) as "serialNumber",theOrder.* from (
 		select
 			<include refid="orderColumns"/>
-		,a.department
+		, concat_ws(" / ",a.department,a.specific) as department
 		from the_order a
 			<include refid="orderLeftJoinColumns"/>
 		<where>
 			a.team=#{department}
+			<if test="team != null and team != ''">
+				and a.team = #{team}
+			</if>
 			<if test="beginDate !=null">
 				and a.scheduled >= #{beginDate}
 			</if>
@@ -102,7 +114,7 @@
 				and a.scheduled &lt; #{endDate}
 			</if>
 		</where>
-		order by sc.id desc ,so.id desc,a.create_date asc) as theOrder ,(select @rownum := 0) temp
+		order by a.team asc,a.department asc,a.specific desc,sc.id desc ,so.id desc,a.create_date asc) as theOrder ,(select @rownum := 0) temp
 	</select>
 
 
@@ -114,6 +126,9 @@
 		from the_order a
 		<include refid="orderLeftJoinColumns"/>
 		<where>
+			<if test="team != null and team != ''">
+				and a.team = #{team}
+			</if>
 			<if test="beginDate !=null">
 				and a.scheduled >= #{beginDate}
 			</if>
@@ -121,8 +136,8 @@
 				and a.scheduled &lt; #{endDate}
 			</if>
 		</where>
-		group by a.specific
-		order by a.specific desc,a.team asc,a.department asc,sc.id desc ,so.id desc,a.create_date asc) as theOrder ,(select @rownum := 0) temp
+		group by a.team,a.specific
+		order by a.team asc,a.department asc,a.specific desc,sc.id desc ,so.id desc,a.create_date asc) as theOrder ,(select @rownum := 0) temp
 	</select>
 
 </mapper>

+ 14 - 1
src/main/webapp/webpage/modules/theorder/theOrderList.jsp

@@ -69,11 +69,23 @@
 	<div class="layui-row">
 		<div class="full-width fl">
 			<div class="layui-row contentShadow shadowLR" id="queryDiv">
-				<form:form id="searchForm" modelAttribute="theOrder" action="${ctx}/wexin/theorderweb/" method="post" class="form-inline">
+				<form:form id="searchForm" modelAttribute="theOrder" action="${ctx}/wexin/theorderweb/" method="post" class="form-inline layui-form">
 					<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
 					<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
 					<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/>
 					<div class="commonQuery lw6">
+						<div  class="layui-item query athird ">
+							<label class="layui-form-label">团队</label>
+							<div class="layui-input-block with-icon">
+								<select name="team" id="team" lay-verify="required" lay-filter="cityfilter">
+									<option value=""></option>
+									<option value="潘中" <c:if test="${theOrder.team=='潘中'}">selected</c:if>>潘中</option>
+									<option value="盛小兰" <c:if test="${theOrder.team=='盛小兰'}">selected</c:if>>盛小兰</option>
+									<option value="王春生" <c:if test="${theOrder.team=='王春生'}">selected</c:if>>王春生</option>
+									<option value="其他" <c:if test="${theOrder.team=='其他'}">selected</c:if>>其他</option>
+								</select>
+							</div>
+						</div>
 						<div class="layui-item query athird ">
 							<label class="layui-form-label">创建时间:</label>
 							<div class="layui-input-block">
@@ -93,6 +105,7 @@
 								<button id="searchQuery" class="fixed-btn searchQuery fr" onclick="search()">查询</button>
 							</div>
 						</div>
+
 						<div style="    clear:both;"></div>
 					</div>
 				</form:form>