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.
50 lines
2.0 KiB
XML
50 lines
2.0 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.inout.IoDestinyProcessCodeMapper">
|
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inout.IoDestinyProcessCodeEntity">
|
|
<!--@mbg.generated-->
|
|
<!--@Table io_destiny_process_code-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk" />
|
|
<result column="bindRlFk" jdbcType="VARCHAR" property="bindRlFk" />
|
|
<result column="uuidFk" jdbcType="VARCHAR" property="uuidFk" />
|
|
<result column="nameCode" jdbcType="VARCHAR" property="nameCode" />
|
|
<result column="batchNo" jdbcType="VARCHAR" property="batchNo" />
|
|
<result column="productDate" jdbcType="VARCHAR" property="productDate" />
|
|
<result column="expireDate" jdbcType="VARCHAR" property="expireDate" />
|
|
<result column="price" jdbcType="DECIMAL" property="price" />
|
|
<result column="supId" jdbcType="VARCHAR" property="supId" />
|
|
<result column="count" jdbcType="INTEGER" property="count" />
|
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, price,
|
|
supId, `count`, updateTime
|
|
</sql>
|
|
|
|
<select id="filterDestinyProcessCode" parameterType="com.glxp.api.req.inout.IodestinyProcessRequest"
|
|
resultType="com.glxp.api.res.inout.IodestinyProcessResponse">
|
|
SELECT
|
|
ps.*,
|
|
b2.ggxh,
|
|
b2.cpmctymc,
|
|
b2.measname,
|
|
b2.ylqxzcrbarmc,
|
|
b2.zczbhhzbapzbh,
|
|
b2.manufactory
|
|
FROM
|
|
io_destiny_process_code ps
|
|
LEFT JOIN basic_udirel b1 ON b1.id = ps.bindRlFk
|
|
left JOIN basic_products b2 on b2.uuid=b1.uuid
|
|
<where>
|
|
<if test="billNo != '' and billNo != null">
|
|
AND ps.orderIdFk = #{billNo}
|
|
</if>
|
|
</where>
|
|
group by ps.id
|
|
order by ps.updateTime desc
|
|
</select>
|
|
|
|
|
|
</mapper> |