| | |
| | | bfd.ENTITY_ID = #{no} |
| | | |
| | | </select> |
| | | <select id="selectDispatchOrderAttachment" resultType="com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo"> |
| | | -- 查询调度单号或者调度单ID查附件 |
| | | SELECT |
| | | -- image.PATH, |
| | | CONCAT('https://tms.ygalogisticspark.com/ImageViewServlet?id=',image.id) as imageUrl, |
| | | -- tof.FEE_TYPE_ID '费用类型ID', |
| | | bfi.FEE_TYPE as feeItem, |
| | | tof.account as account, |
| | | case tof.CURRENCY_ID |
| | | when 1 then '港币' |
| | | when 2 then '人民币' |
| | | else '未知' |
| | | end as currency |
| | | |
| | | FROM |
| | | -- 其他费用表 |
| | | Tms_Other_Fee tof |
| | | -- 调度单表 |
| | | LEFT JOIN tms_shipment ts ON tof.dispatch_Order_Id = ts.id |
| | | -- 附件表 |
| | | LEFT JOIN Thorn_Attachment image ON image.OBJ_ID = tof.id |
| | | -- 费用类型表 |
| | | left join base_fee_item bfi on bfi.id=tof.FEE_TYPE_ID |
| | | WHERE |
| | | ts.DISPATCH_NO = #{no} |
| | | AND image.biz_Type = 'com.vtradex.tms.core.model.entity.fee.TmsOtherFee'; |
| | | |
| | | |
| | | </select> |
| | | |
| | | <!-- 新增 --> |
| | | <insert id="insertDispatchOrder" parameterType="com.ruoyi.cwgl.domain.DispatchOrder" useGeneratedKeys="true" keyProperty="id"> |