内部码相关修改
parent
7dd919b693
commit
7687ae7d42
@ -1,105 +1,77 @@
|
||||
<?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.InvInnerOrderPrintDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.InvInnerOrderPrintEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table inv_inner_order_print-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk" />
|
||||
<result column="udiCode" jdbcType="VARCHAR" property="udiCode" />
|
||||
<result column="productId" jdbcType="VARCHAR" property="productId" />
|
||||
<result column="productName" jdbcType="VARCHAR" property="productName" />
|
||||
<result column="count" jdbcType="INTEGER" property="count" />
|
||||
<result column="productDate" jdbcType="VARCHAR" property="productDate" />
|
||||
<result column="batchNo" jdbcType="VARCHAR" property="batchNo" />
|
||||
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, orderIdFk, udiCode, productId, productName, `count`, productDate, batchNo, `createUser`,
|
||||
createTime, updateUser, updateTime
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.InvInnerOrderPrintEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table inv_inner_order_print-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/>
|
||||
<result column="udiCode" jdbcType="VARCHAR" property="udiCode"/>
|
||||
<result column="productId" jdbcType="VARCHAR" property="productId"/>
|
||||
<result column="productName" jdbcType="VARCHAR" property="productName"/>
|
||||
<result column="count" jdbcType="INTEGER" property="count"/>
|
||||
<result column="productDate" jdbcType="VARCHAR" property="productDate"/>
|
||||
<result column="batchNo" jdbcType="VARCHAR" property="batchNo"/>
|
||||
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, orderIdFk, udiCode, productId, productName, `count`, productDate, batchNo, `createUser`,
|
||||
createTime, updateUser, updateTime
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="filterOrderPrintList" parameterType="com.glxp.api.req.inv.FilterinnerOrderprintRequest"
|
||||
resultType="com.glxp.api.entity.inv.InvInnerOrderPrintEntity">
|
||||
SELECT *
|
||||
FROM inv_inner_order_print
|
||||
<where>
|
||||
<if test="orderIdFk != '' and orderIdFk != null">
|
||||
AND orderIdFk = #{orderIdFk}
|
||||
</if>
|
||||
<if test="udiCode != '' and udiCode != null">
|
||||
AND udiCode = #{udiCode}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="filterOrderPrintList" parameterType="com.glxp.api.req.inv.FilterinnerOrderprintRequest"
|
||||
resultType="com.glxp.api.entity.inv.InvInnerOrderPrintEntity">
|
||||
SELECT * FROM inv_inner_order_print
|
||||
<where>
|
||||
<if test="orderIdFk != '' and orderIdFk != null">
|
||||
AND orderIdFk = #{orderIdFk}
|
||||
</if>
|
||||
<if test="udiCode != '' and udiCode != null">
|
||||
AND udiCode = #{udiCode}
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="filterJoinInnerPrint" parameterType="com.glxp.api.req.inv.FilterinnerOrderprintRequest"
|
||||
resultType="com.glxp.api.res.inv.innerOrderPrintRequest">
|
||||
SELECT
|
||||
inv_inner_order_print.id,
|
||||
inv_inner_order_print.udiCode,
|
||||
basic_products.nameCode,
|
||||
inv_inner_order_print.batchNo,
|
||||
inv_inner_order_print.productDate,
|
||||
inv_inner_order_print.expireDate,
|
||||
inv_inner_order_print.count,
|
||||
basic_products.cpmctymc,
|
||||
basic_products.ylqxzcrbarmc,
|
||||
basic_products.zczbhhzbapzbh,
|
||||
basic_products.ggxh
|
||||
FROM
|
||||
inv_inner_order_print
|
||||
LEFT JOIN basic_udirel ON inv_inner_order_print.productId = basic_udirel.id
|
||||
INNER JOIN basic_products ON basic_products.uuid = basic_udirel.uuid
|
||||
<where>
|
||||
<if test="nameCode != '' and nameCode != null">
|
||||
AND inv_stockprint.nameCode = #{nameCode}
|
||||
</if>
|
||||
<if test="udiCode != '' and udiCode != null">
|
||||
AND inv_stockprint.udiCode = #{udiCode}
|
||||
</if>
|
||||
<if test="printStatus != '' and printStatus != null">
|
||||
AND printStatus = #{printStatus}
|
||||
</if>
|
||||
<if test="cpmctymc != '' and cpmctymc != null">
|
||||
AND inv_stockprint.cpmctymc like concat('%',#{cpmctymc},'%')
|
||||
</if>
|
||||
<if test="thirdName != '' and thirdName != null">
|
||||
AND inv_stockprint.thirdName like concat('%',#{thirdName},'%')
|
||||
</if>
|
||||
<if test="thirdId != '' and thirdId != null">
|
||||
AND inv_stockprint.thirdId = #{thirdId}
|
||||
</if>
|
||||
<if test="thirdSysFk != '' and thirdSysFk != null">
|
||||
AND inv_stockprint.thirdSysFk = #{thirdSysFk}
|
||||
</if>
|
||||
<if test="genKeyFk != '' and genKeyFk != null">
|
||||
AND inv_stockprint.genKeyFk = #{genKeyFk}
|
||||
</if>
|
||||
<if test="sDetailId != '' and sDetailId != null">
|
||||
AND inv_stockprint.sDetailId = #{sDetailId}
|
||||
</if>
|
||||
<if test="sOrderId != '' and sOrderId != null">
|
||||
AND inv_inner_order_print.orderIdFk = #{sOrderId}
|
||||
</if>
|
||||
<if test="id != '' and id != null">
|
||||
AND inv_inner_order_print.id = #{id}
|
||||
</if>
|
||||
and diType = 1
|
||||
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
<select id="filterJoinInnerPrint" parameterType="com.glxp.api.req.inv.FilterinnerOrderprintRequest"
|
||||
resultType="com.glxp.api.res.inv.InnerOrderPrintResponse">
|
||||
SELECT inv_inner_order_print.id,
|
||||
inv_inner_order_print.udiCode,
|
||||
basic_products.nameCode,
|
||||
inv_inner_order_print.batchNo,
|
||||
inv_inner_order_print.productDate,
|
||||
inv_inner_order_print.expireDate,
|
||||
inv_inner_order_print.count,
|
||||
basic_products.cpmctymc,
|
||||
basic_products.ylqxzcrbarmc,
|
||||
basic_products.zczbhhzbapzbh,
|
||||
basic_products.ggxh
|
||||
FROM inv_inner_order_print
|
||||
LEFT JOIN basic_udirel ON inv_inner_order_print.productId = basic_udirel.id
|
||||
INNER JOIN basic_products ON basic_products.uuid = basic_udirel.uuid
|
||||
<where>
|
||||
<if test="nameCode != '' and nameCode != null">
|
||||
AND basic_products.nameCode = #{nameCode}
|
||||
</if>
|
||||
<if test="sOrderId != '' and sOrderId != null">
|
||||
AND inv_inner_order_print.orderIdFk = #{sOrderId}
|
||||
</if>
|
||||
<if test="id != '' and id != null">
|
||||
AND inv_inner_order_print.id = #{id}
|
||||
</if>
|
||||
<if test="orderIdFk != '' and orderIdFk != null">
|
||||
AND orderIdFk = #{orderIdFk}
|
||||
</if>
|
||||
<if test="udiCode != '' and udiCode != null">
|
||||
AND udiCode = #{udiCode}
|
||||
</if>
|
||||
and diType = 1
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue