|
@@ -29,6 +29,7 @@
|
|
|
<result column="pb_text3" jdbcType="VARCHAR" property="pb_text3" />
|
|
<result column="pb_text3" jdbcType="VARCHAR" property="pb_text3" />
|
|
|
<result column="pb_text4" jdbcType="VARCHAR" property="pb_text4" />
|
|
<result column="pb_text4" jdbcType="VARCHAR" property="pb_text4" />
|
|
|
<result column="pb_text5" jdbcType="VARCHAR" property="pb_text5" />
|
|
<result column="pb_text5" jdbcType="VARCHAR" property="pb_text5" />
|
|
|
|
|
+ <result column="ve_leftamount" jdbcType="DOUBLE" property="ve_leftamount" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
<where>
|
|
@@ -91,19 +92,22 @@
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
pb_id, pb_code, pb_kind, pb_date, pb_vendid, pb_vendcode, pb_vendname, pb_manname,
|
|
pb_id, pb_code, pb_kind, pb_date, pb_vendid, pb_vendcode, pb_vendname, pb_manname,
|
|
|
pb_pdamount, pb_pbdamount, pb_preamount, pb_discounts, pb_havebalance, pb_recorderid,
|
|
pb_pdamount, pb_pbdamount, pb_preamount, pb_discounts, pb_havebalance, pb_recorderid,
|
|
|
- pb_recorder, pb_recorddate, pb_status, pb_statuscode, pb_remark, companyId, updaterId,
|
|
|
|
|
- updatedate, pb_text1, pb_text2, pb_text3, pb_text4, pb_text5
|
|
|
|
|
|
|
+ pb_recorder, pb_recorddate, pb_status, pb_statuscode, pb_remark, paybalance.companyId,
|
|
|
|
|
+ paybalance.updaterId,paybalance.updatedate, pb_text1, pb_text2, pb_text3, pb_text4, pb_text5
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="left_Column_List">
|
|
|
|
|
+ ve_leftamount
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
from paybalance
|
|
from paybalance
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
|
- from paybalance
|
|
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="Base_Column_List" />,
|
|
|
|
|
+ <include refid="left_Column_List" />
|
|
|
|
|
+ from paybalance left join vendor on ve_id=pb_vendid and vendor.companyId=paybalance.companyId
|
|
|
where pb_id = #{id,jdbcType=INTEGER}
|
|
where pb_id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|