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.
29 lines
977 B
XML
29 lines
977 B
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.inout.IoCodeTempDao">
|
|
<select id="selectCodeList" resultType="com.glxp.api.res.inout.IoCodeTempResponse">
|
|
select ic.*,
|
|
bp.cpmctymc productName,
|
|
bp.ggxh,
|
|
bp.bzgg,
|
|
bp.prepnUnit,
|
|
bp.prepnSpec,
|
|
bp.ylqxzcrbarmc,
|
|
bp.zczbhhzbapzbh,
|
|
bp.manufactory,
|
|
bc.name supName
|
|
from io_code_temp ic
|
|
left join basic_products bp on bp.nameCode = ic.nameCode
|
|
left join basic_corp bc on ic.supId = bc.erpId
|
|
<where>
|
|
<if test="orderId != null and orderId != ''">
|
|
orderId = #{orderId}
|
|
</if>
|
|
<if test="code != null and code != ''">
|
|
AND code = #{code}
|
|
</if>
|
|
</where>
|
|
order by id desc
|
|
</select>
|
|
</mapper>
|