|
|
@@ -22,6 +22,27 @@
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
+ <resultMap id="ProdinoutCountMap" type="com.usoftchina.saas.storage.po.report.ProdinoutCountView">
|
|
|
+ <result column="pwm_yearmonth" jdbcType="VARCHAR" property="pwm_yearmonth" />
|
|
|
+ <result column="pr_kind" jdbcType="VARCHAR" property="pr_kind" />
|
|
|
+ <result column="pr_code" jdbcType="VARCHAR" property="pr_code" />
|
|
|
+ <result column="pr_detail" jdbcType="VARCHAR" property="pr_detail" />
|
|
|
+ <result column="pr_spec" jdbcType="VARCHAR" property="pr_spec" />
|
|
|
+ <result column="pr_unit" jdbcType="VARCHAR" property="pr_unit" />
|
|
|
+ <result column="wh_description" jdbcType="VARCHAR" property="wh_description" />
|
|
|
+ <result column="pwm_beginqty" jdbcType="DOUBLE" property="pwm_beginqty" />
|
|
|
+ <result column="pwm_beginamount" jdbcType="DOUBLE" property="pwm_beginamount" />
|
|
|
+ <result column="pwm_nowinqty" jdbcType="DOUBLE" property="pwm_nowinqty" />
|
|
|
+ <result column="pwm_nowinamount" jdbcType="DOUBLE" property="pwm_nowinamount" />
|
|
|
+ <result column="pwm_nowoutqty" jdbcType="DOUBLE" property="pwm_nowoutqty" />
|
|
|
+ <result column="pwm_nowoutamount" jdbcType="DOUBLE" property="pwm_nowoutamount" />
|
|
|
+ <result column="pwm_endqty" jdbcType="DOUBLE" property="pwm_endqty" />
|
|
|
+ <result column="pwm_endamount" jdbcType="DOUBLE" property="pwm_endamount" />
|
|
|
+ <result column="companyid" jdbcType="INTEGER" property="companyid" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<select id="selectProdiodetailByCondition" resultMap="ProdiodetailMap">
|
|
|
select * from prodiodetail_view
|
|
|
@@ -37,8 +58,8 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectProdinoutCountByCondition" resultMap="ProdiodetailMap">
|
|
|
- select * from prodinout
|
|
|
+ <select id="selectProdinoutCountByCondition" resultMap="ProdinoutCountMap">
|
|
|
+ select * from prodinoutcount_view
|
|
|
<where>
|
|
|
<if test="con != null">
|
|
|
${con}
|
|
|
@@ -47,7 +68,6 @@
|
|
|
and companyid = #{companyId}
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by pi_id
|
|
|
</select>
|
|
|
|
|
|
|