| | |
| | | </if> |
| | | </sql> |
| | | <!-- 更新对象 --> |
| | | <update id="updateCaseInfoList"> |
| | | update |
| | | <include refid="table-name"/> |
| | | <set> |
| | | <include refid="set-part"/> |
| | | </set> |
| | | <where> |
| | | id IN |
| | | <foreach item="id" collection="caseIdList" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | </update> |
| | | |
| | | <!-- 批量更新对象 --> |
| | | <update id="updateCaseInfo"> |
| | | update |
| | | <include refid="table-name"/> |
| | |
| | | id = #{entity.id} |
| | | </where> |
| | | </update> |
| | | |
| | | <!-- 条件更新对象 --> |
| | | <update id="updateCaseInfoTerms"> |
| | | update |
| | |
| | | select |
| | | COUNT(1) |
| | | from |
| | | dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.case_id |
| | | dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.id |
| | | <include refid="where-part-all"/> |
| | | </select> |
| | | <!-- 根据条件分页查询 --> |
| | |
| | | SELECT |
| | | <include refid="column-part-all"/> |
| | | FROM |
| | | dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.case_id |
| | | dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.id |
| | | <include refid="where-part-all"/> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |