| | |
| | | <if test="deptId != null "> and tcs.dept_id = #{deptId}</if> |
| | | ${params.dataScope} |
| | | </where> |
| | | order by create_time desc; |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectCheckScoreById" parameterType="Long" resultMap="CheckScoreResult"> |
| | |
| | | select t.* from ${tableName} t |
| | | left join sys_dept d on t.dept_id = d.dept_id |
| | | where t.dept_id = #{deptId} |
| | | <if test="examineTag != null"> |
| | | and examine_tag = #{examineTag} |
| | | </if> |
| | | <if test="date != null"> |
| | | and date_format(t.create_time,'%Y-%m') = #{date} |
| | | </if> |
| | |
| | | WHERE |
| | | examine_tag = #{examineTag} |
| | | AND DATE_FORMAT(tcs.create_time, '%Y-%m') BETWEEN DATE_FORMAT(#{startDate}, '%Y-%m') AND DATE_FORMAT(#{endDate}, '%Y-%m') |
| | | </select> |
| | | GROUP BY tcs.dept_id, examine_category,examine_tag |
| | | </select> |
| | | |
| | | <select id="home" resultType="java.util.Map"> |
| | | <![CDATA[ |