| | |
| | | <if test="type != null"> |
| | | and type = #{type} |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null"> |
| | | limit ${pageSize} OFFSET ${pageNum} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getSfStatisticsJoy" parameterType="com.smartor.domain.ServiceSubtaskCountReq" |
| | |
| | | </if> |
| | | <if test="configValue != null and configValue != ''"> |
| | | SUM(CASE WHEN a.categoryid IN(${configValue}) |
| | | AND a.matchedtext is not null |
| | | AND a.matchedtext != '' |
| | | AND IFNULL(a.matchedtext,a.asrtext) is not null |
| | | AND IFNULL(a.matchedtext,a.asrtext) != '' |
| | | THEN 1 ELSE 0 END) AS joyCount, |
| | | </if> |
| | | a.sub_id as subTaskId |
| | |
| | | #{deptcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="subTaskIds != null and subTaskIds.size() > 0"> |
| | | AND t.id IN |
| | | <foreach collection="subTaskIds" item="subTaskId" open="(" separator="," |
| | | close=")"> |
| | | #{subTaskId} |
| | | </foreach> |
| | | </if> |
| | | <if test="serviceType != null and serviceType.size() > 0"> |
| | | AND t.service_type IN |
| | | <foreach collection="serviceType" item="serviceType" open="(" separator="," |