You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
800 B
XML
18 lines
800 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.supervision.police.mapper.ModelAtomicResultMapper">
|
|
<select id="selectByCaseIdAndAtomicId" resultType="com.supervision.police.domain.ModelAtomicResult">
|
|
select * from model_atomic_result
|
|
<where>
|
|
<if test="caseId != null and caseId != ''">
|
|
and case_id = #{caseId}
|
|
</if>
|
|
<if test="atomicId != null and atomicId != ''">
|
|
and atomic_id = #{atomicId}
|
|
</if>
|
|
<if test="casePersonId != null and casePersonId != ''">
|
|
and case_person_id = #{casePersonId}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper> |