|
|
@@ -2597,8 +2597,8 @@
|
|
|
<if test="vo.type !=null and vo.type !=''">
|
|
|
and pa.agreement_type =#{vo.type}
|
|
|
</if>
|
|
|
- <if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
|
- AND a.signdate BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
|
+ <if test="vo.yearAndMonth != null and vo.yearAndMonth!='' ">
|
|
|
+ AND DATE_FORMAT(a.signdate, '%Y-%m' ) =#{vo.yearAndMonth}
|
|
|
</if>
|
|
|
<if test="vo.yearAndMonth != null and vo.yearAndMonth!=''">
|
|
|
AND DATE_FORMAT(a.signdate, '%Y-%m') =#{vo.yearAndMonth}
|
|
|
@@ -2749,8 +2749,8 @@
|
|
|
LEFT JOIN esm_ins_company eic ON eic.id = a.company_id
|
|
|
<where>
|
|
|
pa.agreement_type = '1'
|
|
|
- <if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
|
- AND a.signdate BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
|
+ <if test="vo.yearAndMonth != null and vo.yearAndMonth!='' ">
|
|
|
+ AND DATE_FORMAT(a.signdate, '%Y-%m' ) =#{vo.yearAndMonth}
|
|
|
</if>
|
|
|
<if test="vo.isNoCar !=null and vo.isNoCar !=''">
|
|
|
and a.is_not_car =#{vo.isNoCar}
|
|
|
@@ -2779,8 +2779,8 @@
|
|
|
LEFT JOIN esm_ins_company eic ON eic.id = a.company_id
|
|
|
<where>
|
|
|
pa.agreement_type = '1'
|
|
|
- <if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
|
- AND a.signdate BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
|
+ <if test="vo.yearAndMonth != null and vo.yearAndMonth!='' ">
|
|
|
+ AND DATE_FORMAT(a.signdate, '%Y-%m' ) =#{vo.yearAndMonth}
|
|
|
</if>
|
|
|
<if test="vo.isNoCar !=null and vo.isNoCar !=''">
|
|
|
and a.is_not_car =#{vo.isNoCar}
|
|
|
@@ -2807,8 +2807,8 @@
|
|
|
LEFT JOIN esm_ins_company eic ON eic.id = a.company_id
|
|
|
<where>
|
|
|
pa.agreement_type = '1'
|
|
|
- <if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
|
- AND a.signdate BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
|
+ <if test="vo.yearAndMonth != null and vo.yearAndMonth!='' ">
|
|
|
+ AND DATE_FORMAT(a.signdate, '%Y-%m' ) =#{vo.yearAndMonth}
|
|
|
</if>
|
|
|
<if test="vo.isNoCar !=null and vo.isNoCar !=''">
|
|
|
and a.is_not_car =#{vo.isNoCar}
|