|
@@ -2408,6 +2408,17 @@
|
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.parterProvinceId != null and vo.parterProvinceId != '' and vo.parterCityId == null and vo.parterCountyId == null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterProvinceId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCityId != null and vo.parterCityId != '' and vo.parterCountyId ==null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCityId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCountyId != null and vo.parterCountyId != '' ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCountyId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
|
AND io.deptid in
|
|
AND io.deptid in
|
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
@@ -2493,6 +2504,17 @@
|
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.parterProvinceId != null and vo.parterProvinceId != '' and vo.parterCityId == null and vo.parterCountyId == null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterProvinceId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCityId != null and vo.parterCityId != '' and vo.parterCountyId ==null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCityId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCountyId != null and vo.parterCountyId != '' ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCountyId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
|
AND io.deptid in
|
|
AND io.deptid in
|
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
@@ -2547,6 +2569,17 @@
|
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
<if test="vo.houseId != null and vo.houseId != ''">
|
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
and io.deptid like concat('%',#{vo.houseId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.parterProvinceId != null and vo.parterProvinceId != '' and vo.parterCityId == null and vo.parterCountyId == null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterProvinceId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCityId != null and vo.parterCityId != '' and vo.parterCountyId ==null ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCityId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.parterCountyId != null and vo.parterCountyId != '' ">
|
|
|
|
|
+ and agree.partner_companies_id like concat('%',#{vo.parterCountyId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
<if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
|
AND io.deptid in
|
|
AND io.deptid in
|
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
<foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
@@ -3281,6 +3314,10 @@
|
|
|
AND DATE_FORMAT( iac.signing_time, '%Y-%m-%d') BETWEEN DATE_FORMAT( #{taskStatisticsVo.createtimeStart}, '%Y-%m-%d') AND DATE_FORMAT( #{taskStatisticsVo.createtimeEnd}, '%Y-%m-%d')
|
|
AND DATE_FORMAT( iac.signing_time, '%Y-%m-%d') BETWEEN DATE_FORMAT( #{taskStatisticsVo.createtimeStart}, '%Y-%m-%d') AND DATE_FORMAT( #{taskStatisticsVo.createtimeEnd}, '%Y-%m-%d')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="taskStatisticsVo.auditTimeStart !=null and taskStatisticsVo.auditTimeEnd != '' and taskStatisticsVo.auditTimeStart !=null and taskStatisticsVo.auditTimeEnd != ''">
|
|
|
|
|
+ AND DATE_FORMAT( ifa.audittime, '%Y-%m-%d') BETWEEN DATE_FORMAT( #{taskStatisticsVo.auditTimeStart}, '%Y-%m-%d') AND DATE_FORMAT( #{taskStatisticsVo.auditTimeEnd}, '%Y-%m-%d')
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="taskStatisticsVo.beginDate !=null and taskStatisticsVo.beginDate != '' and taskStatisticsVo.endDate !=null and taskStatisticsVo.endDate != ''">
|
|
<if test="taskStatisticsVo.beginDate !=null and taskStatisticsVo.beginDate != '' and taskStatisticsVo.endDate !=null and taskStatisticsVo.endDate != ''">
|
|
|
AND DATE_FORMAT( iac.signing_time, '%Y-%m-%d') BETWEEN DATE_FORMAT( #{taskStatisticsVo.beginDate}, '%Y-%m-%d') AND DATE_FORMAT( #{taskStatisticsVo.endDate}, '%Y-%m-%d')
|
|
AND DATE_FORMAT( iac.signing_time, '%Y-%m-%d') BETWEEN DATE_FORMAT( #{taskStatisticsVo.beginDate}, '%Y-%m-%d') AND DATE_FORMAT( #{taskStatisticsVo.endDate}, '%Y-%m-%d')
|
|
|
</if>
|
|
</if>
|