|
@@ -41,7 +41,7 @@
|
|
|
and ADDTIME <![CDATA[ >= ]]> #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime != null and endTime != ''">
|
|
|
- AND ADDTIME <![CDATA[ <= ]]> #{endTime})
|
|
|
+ AND ADDTIME <![CDATA[ <= ]]> #{endTime}
|
|
|
</if>
|
|
|
)
|
|
|
</select>
|
|
@@ -104,13 +104,13 @@
|
|
|
and ccr.serviceProviderId = #{serviceProviderId}
|
|
|
</if>
|
|
|
<if test="consult != null">
|
|
|
- and ccr.consultType like concat('%',#{consult},'%')
|
|
|
+ and (ccr.consultType LIKE concat('%,',#{consult},'%') OR ccr.consultType LIKE concat('',#{consult},',%') OR ccr.consultType = #{consult})
|
|
|
</if>
|
|
|
- <if test="startAddTime != '' and startAddTime != null">
|
|
|
- and ccr.addTime <![CDATA[ >= ]]> #{startAddTime}
|
|
|
+ <if test="startTime != '' and startTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ >= ]]> #{startTime}
|
|
|
</if>
|
|
|
- <if test="endAddTime != '' and endAddTime != null">
|
|
|
- and ccr.addTime <![CDATA[ <= ]]> #{endAddTime}
|
|
|
+ <if test="endTime != '' and endTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ <= ]]> #{endTime}
|
|
|
</if>
|
|
|
<if test="newDeal !=null">
|
|
|
and c.newDeal=#{newDeal}
|
|
@@ -166,13 +166,13 @@
|
|
|
and ccr.serviceProviderId = #{serviceProviderId}
|
|
|
</if>
|
|
|
<if test="consult != null">
|
|
|
- and ccr.consultType like concat('%',#{consult},'%')
|
|
|
+ and (ccr.consultType LIKE concat('%,',#{consult},'%') OR ccr.consultType LIKE concat('',#{consult},',%') OR ccr.consultType = #{consult})
|
|
|
</if>
|
|
|
- <if test="startAddTime != '' and startAddTime != null">
|
|
|
- and ccr.addTime <![CDATA[ >= ]]> #{startAddTime}
|
|
|
+ <if test="startTime != '' and startTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ >= ]]> #{startTime}
|
|
|
</if>
|
|
|
- <if test="endAddTime != '' and endAddTime != null">
|
|
|
- and ccr.addTime <![CDATA[ <= ]]> #{endAddTime}
|
|
|
+ <if test="endTime != '' and endTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ <= ]]> #{endTime}
|
|
|
</if>
|
|
|
<if test="newDeal !=null">
|
|
|
and c.newDeal=#{newDeal}
|