| | |
| | | select * from ja_gd_supply_demand_audit_attachment where is_deleted = 0 |
| | | </select> |
| | | |
| | | <insert id="insertSupplyDemandAuditAttachments"> |
| | | insert into ja_gd_supply_demand_audit_attachment ( |
| | | demand_id, |
| | | attach_id, |
| | | area_code, |
| | | create_user, |
| | | create_dept |
| | | ) values |
| | | <foreach collection="attachments" item="item" separator=","> |
| | | ( |
| | | #{item.demandId}, |
| | | #{item.attachId}, |
| | | #{item.areaCode}, |
| | | #{item.createUser}, |
| | | #{item.createDept} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <select id="selectSupplyDemandAuditAttachmentList" resultMap="gdSupplyDemandAuditAttachmentResultMap"> |
| | | select * from ja_gd_supply_demand_audit_attachment |
| | | <where> |
| | | is_deleted = 0 |
| | | <if test="demandId != null"> |
| | | AND demand_id = #{demandId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="exportGdSupplyDemandAuditAttachment" resultType="org.sxkj.gd.orderdata.excel.GdSupplyDemandAuditAttachmentExcel"> |
| | | SELECT * FROM ja_gd_supply_demand_audit_attachment ${ew.customSqlSegment} |