| 对比新文件 |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.sales.mapper.ShippingProductDetailMapper"> |
| | | |
| | | <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.sales.pojo.ShippingProductDetail"> |
| | | <id column="id" property="id" /> |
| | | <result column="stock_inventory_id" property="stockInventoryId" /> |
| | | <result column="batch_no" property="batchNo" /> |
| | | <result column="quantity" property="quantity" /> |
| | | <result column="shipping_info_id" property="shippingInfoId" /> |
| | | </resultMap> |
| | | <select id="getDetail" resultType="com.ruoyi.sales.dto.ShippingProductDetailDto"> |
| | | select si.batch_no, pm.model as specification_model, p.product_name, spd.quantity as delivery_quantity |
| | | from shipping_product_detail spd |
| | | left join stock_inventory si on si.id = spd.stock_inventory_id |
| | | left join product_model pm on pm.id = si.product_model_id |
| | | left join product p on p.id = pm.product_id |
| | | where spd.shipping_info_id = #{id} |
| | | </select> |
| | | |
| | | </mapper> |