|
@@ -42,13 +42,15 @@
|
|
<if test="team != null and team != ''">
|
|
<if test="team != null and team != ''">
|
|
and a.team = #{team}
|
|
and a.team = #{team}
|
|
</if>
|
|
</if>
|
|
- <if test="orderStatus != null and orderStatus == 0">
|
|
|
|
- <if test="beginDate !=null">
|
|
|
|
- and a.scheduled >= #{beginDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="endDate !=null">
|
|
|
|
- and a.scheduled < #{endDate}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="scheduledStr !=null">
|
|
|
|
+ and date_format(a.scheduled,'%Y-%m-%d') = #{scheduledStr}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+ <if test="beginDate !=null">
|
|
|
|
+ and a.create_date >= #{beginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endDate !=null">
|
|
|
|
+ and a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
<choose>
|
|
<choose>
|
|
@@ -68,13 +70,15 @@
|
|
<if test="team != null and team != ''">
|
|
<if test="team != null and team != ''">
|
|
and a.team = #{team}
|
|
and a.team = #{team}
|
|
</if>
|
|
</if>
|
|
- <if test="orderStatus != null and orderStatus == 0">
|
|
|
|
- <if test="beginDate !=null">
|
|
|
|
- and a.scheduled >= #{beginDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="endDate !=null">
|
|
|
|
- and a.scheduled < #{endDate}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="scheduledStr !=null">
|
|
|
|
+ and date_format(a.scheduled,'%Y-%m-%d') = #{scheduledStr}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+ <if test="beginDate !=null">
|
|
|
|
+ and a.create_date >= #{beginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endDate !=null">
|
|
|
|
+ and a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -86,11 +90,15 @@
|
|
<if test="team != null and team != ''">
|
|
<if test="team != null and team != ''">
|
|
and a.team = #{team}
|
|
and a.team = #{team}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="scheduledStr !=null">
|
|
|
|
+ and date_format(a.scheduled,'%Y-%m-%d') = #{scheduledStr}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
<if test="beginDate !=null">
|
|
<if test="beginDate !=null">
|
|
- and a.scheduled >= #{beginDate}
|
|
|
|
|
|
+ and a.create_date >= #{beginDate}
|
|
</if>
|
|
</if>
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
- and a.scheduled < #{endDate}
|
|
|
|
|
|
+ and a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -107,11 +115,15 @@
|
|
<if test="team != null and team != ''">
|
|
<if test="team != null and team != ''">
|
|
and a.team = #{team}
|
|
and a.team = #{team}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="scheduledStr !=null">
|
|
|
|
+ and date_format(a.scheduled,'%Y-%m-%d') = #{scheduledStr}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
<if test="beginDate !=null">
|
|
<if test="beginDate !=null">
|
|
- and a.scheduled >= #{beginDate}
|
|
|
|
|
|
+ and a.create_date >= #{beginDate}
|
|
</if>
|
|
</if>
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
- and a.scheduled < #{endDate}
|
|
|
|
|
|
+ and a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
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
|
|
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
|
|
@@ -129,11 +141,15 @@
|
|
<if test="team != null and team != ''">
|
|
<if test="team != null and team != ''">
|
|
and a.team = #{team}
|
|
and a.team = #{team}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="scheduledStr !=null">
|
|
|
|
+ and date_format(a.scheduled,'%Y-%m-%d') = #{scheduledStr}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
<if test="beginDate !=null">
|
|
<if test="beginDate !=null">
|
|
- and a.scheduled >= #{beginDate}
|
|
|
|
|
|
+ and a.create_date >= #{beginDate}
|
|
</if>
|
|
</if>
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
- and a.scheduled < #{endDate}
|
|
|
|
|
|
+ and a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
group by a.team,a.specific
|
|
group by a.team,a.specific
|