| | |
| | | |
| | | |
| | | |
| | | <!-- 首页统计 勿动 --> |
| | | <select id="countStatisticsNum" resultType="integer"> |
| | | select count(id) from automessage_transaction_event |
| | | <where> |
| | | <if test="classifyIds != null"> |
| | | and classify_id IN |
| | | <foreach collection="classifyIds" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <!-- 首页统计用 勿动 --> |
| | | <select id="getClassify" parameterType="string" resultType="com.dg.core.db.gen.entity.ClassifyAdministration"> |
| | | select id,classify_name from automessage_classify_administration |
| | | <where> |
| | | <if test="parentId != null and parentId != ''"> |
| | | AND parent_id=#{parentId} |
| | | </if> |
| | | <if test="classifyGrade != null and classifyGrade != ''"> |
| | | AND classify_grade = #{classifyGrade} |
| | | </if> |
| | | </where> |
| | | |
| | | </select> |
| | | |
| | | |
| | | </mapper> |