| | |
| | | </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 != ''"> |
| | |
| | | <if test="proName != null and proName != ''"> |
| | | and pro_name like concat('%', #{proName}, '%') |
| | | </if> |
| | | and deleted=0 |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | |
| | | <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"> |