You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
XML
34 lines
1.1 KiB
XML
<?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.glxp.api.dao.inv.InvPlaceOrderDetailDao">
|
|
|
|
|
|
<select id="selectDetailList" resultType="com.glxp.api.res.inv.InvPlaceOrderDetailResponse">
|
|
SELECT
|
|
a1.count,
|
|
a1.relId,
|
|
bp.cpmctymc AS productName,
|
|
bp.ggxh,
|
|
a1.batchNo,
|
|
a1.serialNo,
|
|
bp.measname,
|
|
bp.zczbhhzbapzbh,
|
|
bp.manufactory,
|
|
asp.NAME AS invSpaceName,
|
|
bp.nameCode,
|
|
( SELECT NAME FROM basic_corp WHERE erpId = a1.supId ) supName
|
|
FROM
|
|
inv_place_order_detail a1
|
|
LEFT JOIN basic_udirel bu ON bu.id = a1.relId
|
|
LEFT JOIN basic_products bp ON bp.uuid = bu.uuid
|
|
LEFT JOIN auth_space asp ON a1.invSpaceCode = asp.`code`
|
|
<where>
|
|
<if test="recordId != null and recordId != ''">
|
|
AND a1.recordId = #{recordId}
|
|
</if>
|
|
</where>
|
|
GROUP BY a1.code
|
|
</select>
|
|
|
|
|
|
</mapper> |