lige
2023-11-30 3f28b46171934066aeeff9af80d3f0ce6afb3adf
ltkj-hosp/src/main/resources/mapper/hosp/TjDiscardInspectionMapper.xml
@@ -20,11 +20,23 @@
    </resultMap>
    <sql id="selectTjDiscardInspectionVo">
        select id, deleted, create_by, create_time, update_by, update_time, tj_num, cus_id, cus_name, registration_time, pro_id, pro_name
        select id,
               deleted,
               create_by,
               create_time,
               update_by,
               update_time,
               tj_num,
               cus_id,
               cus_name,
               registration_time,
               pro_id,
               pro_name
        from tj_discard_inspection
    </sql>
    <select id="selectTjDiscardInspectionList" parameterType="TjDiscardInspection" resultMap="TjDiscardInspectionResult">
    <select id="selectTjDiscardInspectionList" parameterType="TjDiscardInspection"
            resultMap="TjDiscardInspectionResult">
        <include refid="selectTjDiscardInspectionVo"/>
        <where>
                        <if test="tjNum != null  and tjNum != ''">
@@ -39,6 +51,7 @@
                        <if test="proName != null  and proName != ''">
                            and pro_name like concat('%', #{proName}, '%')
                        </if>
            and deleted=0
        </where>
    </select>
@@ -146,7 +159,8 @@
    <delete id="deleteTjDiscardInspectionById" parameterType="Long">
        delete
        from tj_discard_inspection where id = #{id}
        from tj_discard_inspection
        where id = #{id}
    </delete>
    <delete id="deleteTjDiscardInspectionByIds" parameterType="String">