|
@@ -48,9 +48,39 @@
|
|
|
<result column="sd_text3" property="sd_text3" jdbcType="VARCHAR" />
|
|
<result column="sd_text3" property="sd_text3" jdbcType="VARCHAR" />
|
|
|
<result column="sd_text4" property="sd_text4" jdbcType="VARCHAR" />
|
|
<result column="sd_text4" property="sd_text4" jdbcType="VARCHAR" />
|
|
|
<result column="sd_text5" property="sd_text5" jdbcType="VARCHAR" />
|
|
<result column="sd_text5" property="sd_text5" jdbcType="VARCHAR" />
|
|
|
|
|
+ <association property="productDTO" javaType="com.usoftchina.saas.document.dto.ProductDTO">
|
|
|
|
|
+ <id column="pr_id" property="id"/>
|
|
|
|
|
+ <result column="pr_code" property="pr_code"/>
|
|
|
|
|
+ <result column="pr_detail" property="pr_detail"/>
|
|
|
|
|
+ <result column="pr_spec" property="pr_spec"/>
|
|
|
|
|
+ <result column="pr_unit" property="pr_unit"/>
|
|
|
|
|
+ <result column="pr_kind" property="pr_kind"/>
|
|
|
|
|
+ <result column="pr_orispeccode" property="pr_orispeccode"/>
|
|
|
|
|
+ <result column="pr_whid" property="pr_whid"/>
|
|
|
|
|
+ <result column="pr_whcode" property="pr_whcode"/>
|
|
|
|
|
+ <result column="pr_whname" property="pr_whname"/>
|
|
|
|
|
+ <result column="pr_zxbzs" property="pr_zxbzs"/>
|
|
|
|
|
+ <result column="pr_leadtime" property="pr_leadtime"/>
|
|
|
|
|
+ <result column="pr_brand" property="pr_brand"/>
|
|
|
|
|
+ <result column="pr_standardprice" property="pr_standardprice"/>
|
|
|
|
|
+ <result column="pr_purcprice" property="pr_purcprice"/>
|
|
|
|
|
+ <result column="pr_saleprice" property="pr_saleprice"/>
|
|
|
|
|
+ <result column="pr_vendid" property="pr_vendid"/>
|
|
|
|
|
+ <result column="pr_vendname" property="pr_vendname"/>
|
|
|
|
|
+ <result column="pr_vendcode" property="pr_vendcode"/>
|
|
|
|
|
+ <result column="pr_docdate" property="pr_docdate"/>
|
|
|
|
|
+ <result column="pr_recordmanid" property="pr_recordmanid"/>
|
|
|
|
|
+ <result column="pr_recordman" property="pr_recordman"/>
|
|
|
|
|
+ <result column="pr_status" property="pr_status"/>
|
|
|
|
|
+ <result column="pr_statuscode" property="pr_statuscode"/>
|
|
|
|
|
+ <result column="pr_text1" property="pr_text1"/>
|
|
|
|
|
+ <result column="pr_text2" property="pr_text2"/>
|
|
|
|
|
+ <result column="pr_text3" property="pr_text3"/>
|
|
|
|
|
+ <result column="pr_text4" property="pr_text4"/>
|
|
|
|
|
+ </association>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
- <select id="selectPurchaseListByCondition" resultMap="BaseResultMap">
|
|
|
|
|
|
|
+ <select id="selectSaleListByCondition" resultMap="BaseResultMap">
|
|
|
select * from sale left join saledetail on sa_id=sd_said left join product
|
|
select * from sale left join saledetail on sa_id=sd_said left join product
|
|
|
on sd_prodid = pr_id and sale.companyId = product.companyid
|
|
on sd_prodid = pr_id and sale.companyId = product.companyid
|
|
|
<where>
|
|
<where>
|
|
@@ -63,7 +93,7 @@
|
|
|
</where> order by sd_detno desc
|
|
</where> order by sd_detno desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <select id="selectPurchaseBycondition" resultMap="BaseResultMap">
|
|
|
|
|
|
|
+ <select id="selectSaleByCondition" resultMap="BaseResultMap">
|
|
|
select * from sale
|
|
select * from sale
|
|
|
<where>
|
|
<where>
|
|
|
<if test="con != null">
|
|
<if test="con != null">
|