| | |
| | | <result property="id" column="id"/> |
| | | <result property="caseId" column="case_id"/> |
| | | <result property="partyUserId" column="party_user_id"/> |
| | | <result property="perType" column="per_type"/> |
| | | <result property="perTypeName" column="per_type_name"/> |
| | | <result property="perClass" column="per_class"/> |
| | | <result property="perClassName" column="per_class_name"/> |
| | | <result property="trueName" column="true_name"/> |
| | |
| | | id, |
| | | case_id, |
| | | party_user_id, |
| | | per_type, |
| | | per_type_name, |
| | | per_class, |
| | | per_class_name, |
| | | true_name, |
| | |
| | | <sql id="set-part"> |
| | | <if test="entity.caseId != null">case_id = #{entity.caseId},</if> |
| | | <if test="entity.partyUserId != null">party_user_id = #{entity.partyUserId},</if> |
| | | <if test="entity.perType != null">per_type = #{entity.perType},</if> |
| | | <if test="entity.perTypeName != null">per_type_name = #{entity.perTypeName},</if> |
| | | <if test="entity.perClass != null">per_class = #{entity.perClass},</if> |
| | | <if test="entity.perClassName != null">per_class_name = #{entity.perClassName},</if> |
| | | <if test="entity.trueName != null">true_name = #{entity.trueName},</if> |
| | |
| | | </if> |
| | | <if test="terms.partyUserId != null and terms.partyUserId !=''"> |
| | | and party_user_id = #{terms.partyUserId} |
| | | </if> |
| | | <if test="terms.perType != null and terms.perType !=''"> |
| | | and per_type = #{terms.perType} |
| | | </if> |
| | | <if test="terms.perTypeName != null and terms.perTypeName !=''"> |
| | | and per_type_name = #{terms.perTypeName} |
| | | </if> |
| | | <if test="terms.perClass != null and terms.perClass !=''"> |
| | | and per_class = #{terms.perClass} |
| | |
| | | <include refid="table-name" /> |
| | | where case_id = #{caseId} |
| | | </select> |
| | | |
| | | <select id="listByCertiNo" resultMap="dataResult"> |
| | | select |
| | | a.case_id,a.certi_no,a.per_type |
| | | from |
| | | dyh_case_agent a INNER JOIN dyh_case_info b ON a.case_id = b.id |
| | | where a.certi_no = #{certiNo} and b.delete_status = 0 |
| | | </select> |
| | | </mapper> |