| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderItemVo; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询调度单列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:dispatchOrder:item')") |
| | | @GetMapping("/attachment") |
| | | public TableDataInfo attachment(String no) |
| | | { |
| | | startPage(); |
| | | |
| | | List<DispatchOrderAttachmentVo> list = dispatchOrderService.selectDispatchOrderAttachment(no); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出调度单列表 |
| | | * @param dispatchOrder 查询条件对象 |
| | | */ |
| New file |
| | |
| | | package com.ruoyi.cwgl.domain.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 附件vo |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-07-29 |
| | | */ |
| | | @Data |
| | | public class DispatchOrderAttachmentVo { |
| | | |
| | | |
| | | |
| | | /** 费用类型 */ |
| | | private String feeItem; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 金额 |
| | | */ |
| | | private BigDecimal account; |
| | | |
| | | |
| | | /** |
| | | * 币制 |
| | | */ |
| | | private String currency; |
| | | |
| | | /** |
| | | * 图片路径 |
| | | */ |
| | | private String imageUrl; |
| | | } |
| | |
| | | import com.ruoyi.cwgl.domain.DispatchOrder; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.cwgl.domain.DispatchOrderItem; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo; |
| | | |
| | | |
| | | /** |
| | |
| | | public int deleteDispatchOrderByIds(Integer[] ids); |
| | | |
| | | List<DispatchOrderItem> selectDispatchOrderItemByNo(String no); |
| | | |
| | | List<DispatchOrderAttachmentVo> selectDispatchOrderAttachment(String no); |
| | | } |
| | |
| | | import java.util.List; |
| | | import com.ruoyi.cwgl.domain.DispatchOrder; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderItemVo; |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | List<DispatchOrderItemVo> selectDispatchOrderItem(String no); |
| | | |
| | | /** |
| | | * 查询附件 |
| | | * @param no |
| | | * @return |
| | | */ |
| | | List<DispatchOrderAttachmentVo> selectDispatchOrderAttachment(String no); |
| | | } |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.cwgl.domain.DispatchOrderItem; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderItemVo; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | @DataSource(DataSourceType.CWSJ) |
| | | @Override |
| | | public List<DispatchOrderAttachmentVo> selectDispatchOrderAttachment(String no) { |
| | | return dispatchOrderMapper.selectDispatchOrderAttachment(no); |
| | | } |
| | | } |
| | |
| | | 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"> |