|
|
@ -3,10 +3,16 @@
|
|
|
|
<mapper namespace="com.supervision.police.mapper.ModelCaseMapper">
|
|
|
|
<mapper namespace="com.supervision.police.mapper.ModelCaseMapper">
|
|
|
|
<select id="selectAll" resultType="com.supervision.police.domain.ModelCase">
|
|
|
|
<select id="selectAll" resultType="com.supervision.police.domain.ModelCase">
|
|
|
|
select * from model_case
|
|
|
|
select * from model_case
|
|
|
|
where data_status = '1'
|
|
|
|
where 1=1
|
|
|
|
<if test="modelCase.id != null and modelCase.id != ''">
|
|
|
|
<if test="modelCase.id != null and modelCase.id != ''">
|
|
|
|
and id = #{modelCase.id}
|
|
|
|
and id = #{modelCase.id}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="modelCase.isDelete">
|
|
|
|
|
|
|
|
and data_status != '1'
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="!modelCase.isDelete">
|
|
|
|
|
|
|
|
and data_status = '1'
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="modelCase.caseNo != null and modelCase.caseNo != ''">
|
|
|
|
<if test="modelCase.caseNo != null and modelCase.caseNo != ''">
|
|
|
|
and case_no like concat('%', #{modelCase.caseNo}, '%')
|
|
|
|
and case_no like concat('%', #{modelCase.caseNo}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|