|
|
@@ -1,7 +1,7 @@
|
|
|
<?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.usoftchina.saas.sale.mapper.ProdIODetailMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
<id column="pd_id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="pd_piid" jdbcType="INTEGER" property="pd_piid" />
|
|
|
<result column="pd_inoutno" jdbcType="VARCHAR" property="pd_inoutno" />
|
|
|
@@ -41,7 +41,7 @@
|
|
|
<result column="pd_ym" jdbcType="INTEGER" property="pd_ym" />
|
|
|
<result column="pd_yqty" jdbcType="INTEGER" property="pd_yqty" />
|
|
|
<result column="pd_ioid" jdbcType="INTEGER" property="pd_ioid" />
|
|
|
- <association property="product" javaType="com.usoftchina.saas.document.entities.Product">
|
|
|
+ <association property="product" javaType="com.usoftchina.saas.document.po.Product">
|
|
|
<id column="pr_id" property="id"/>
|
|
|
<result column="pr_code" property="pr_code"/>
|
|
|
<result column="pr_detail" property="pr_detail"/>
|
|
|
@@ -72,7 +72,7 @@
|
|
|
<result column="pr_text4" property="pr_text4"/>
|
|
|
</association>
|
|
|
</resultMap>
|
|
|
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
<result column="pd_remark" jdbcType="LONGVARCHAR" property="pd_remark" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
@@ -143,7 +143,7 @@
|
|
|
<sql id="Blob_Column_List">
|
|
|
pd_remark
|
|
|
</sql>
|
|
|
- <select id="selectByExampleWithBLOBs" parameterType="com.usoftchina.saas.storage.entities.ProdIODetailExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.usoftchina.saas.storage.po.ProdIODetailExample" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
distinct
|
|
|
@@ -159,7 +159,7 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByExample" parameterType="com.usoftchina.saas.storage.entities.ProdIODetailExample" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByExample" parameterType="com.usoftchina.saas.storage.po.ProdIODetailExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
*
|
|
|
from prodiodetail a left join product b on a.pd_prodid = b.pr_id and a.companyid = b.companyid
|
|
|
@@ -184,13 +184,13 @@
|
|
|
<delete id="deleteByForeignKey" parameterType="java.lang.Long">
|
|
|
delete from prodiodetail where pd_piid = #{pd_id}
|
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.usoftchina.saas.storage.entities.ProdIODetailExample">
|
|
|
+ <delete id="deleteByExample" parameterType="com.usoftchina.saas.storage.po.ProdIODetailExample">
|
|
|
delete from prodiodetail
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
insert into prodiodetail (pd_id, pd_piid, pd_inoutno,
|
|
|
pd_piclass, pd_pdno, pd_ordercode,
|
|
|
pd_orderdetno, pd_prodid, pd_prodcode,
|
|
|
@@ -221,7 +221,7 @@
|
|
|
#{pd_ioid,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
<selectKey resultType="java.lang.Long" keyProperty="id">
|
|
|
SELECT LAST_INSERT_ID() AS ID
|
|
|
</selectKey>
|
|
|
@@ -465,7 +465,7 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.usoftchina.saas.storage.entities.ProdIODetailExample" resultType="java.lang.Long">
|
|
|
+ <select id="countByExample" parameterType="com.usoftchina.saas.storage.po.ProdIODetailExample" resultType="java.lang.Long">
|
|
|
select count(*) from prodiodetail
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
@@ -691,7 +691,7 @@
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
update prodiodetail
|
|
|
<set>
|
|
|
<if test="pd_piid != null">
|
|
|
@@ -814,7 +814,7 @@
|
|
|
</set>
|
|
|
where pd_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
update prodiodetail
|
|
|
set pd_piid = #{pd_piid,jdbcType=INTEGER},
|
|
|
pd_inoutno = #{pd_inoutno,jdbcType=VARCHAR},
|
|
|
@@ -857,7 +857,7 @@
|
|
|
pd_ioid = #{pd_ioid,jdbcType=INTEGER}
|
|
|
where pd_id = #{pd_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail">
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.storage.po.ProdIODetail">
|
|
|
update prodiodetail
|
|
|
set pd_piid = #{pd_piid,jdbcType=INTEGER},
|
|
|
pd_inoutno = #{pd_inoutno,jdbcType=VARCHAR},
|
|
|
@@ -1172,7 +1172,7 @@
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="batchUpdate" parameterType="com.usoftchina.saas.storage.entities.ProdIODetail" >
|
|
|
+ <update id="batchUpdate" parameterType="com.usoftchina.saas.storage.po.ProdIODetail" >
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
update prodiodetail <set>
|
|
|
<if test="item.pd_piid !=null">
|