|
|
@@ -873,6 +873,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
where order_no = #{_parameter,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
<select id="selectOrderNewListByPage" resultType="com.goafanti.order.bo.TOrderNewBo">
|
|
|
select a.order_no as orderNo,a.create_time as createTime, date_format(a.sign_time,'%Y-%m-%d' ) as signDate,a.delete_sign deleteSign,
|
|
|
a.contract_no as contractNo, b.nickname as userName ,a.process_status as processStatus,a.total_amount as totalAmount,
|
|
|
@@ -1639,4 +1640,37 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
order by y.counts
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectstatisticsOrderListPage" resultType="com.goafanti.order.bo.TOrderNewBo">
|
|
|
+ select a.order_no as orderNo,a.create_time as createTime, date_format(a.sign_time,'%Y-%m-%d' ) as signDate,a.delete_sign deleteSign,
|
|
|
+ a.contract_no as contractNo, b.nickname as userName ,a.process_status as processStatus,a.total_amount as totalAmount,
|
|
|
+ a.order_status as orderStatus, a.liquidation_status as liquidationStatus,a.approval,c.salesman_name as salesmanName,c.project_type projectType,
|
|
|
+ dep.name as depName,c.finance_name as financeName,c.invoice_amount invoiceAmount,a.settlement_amount settlementAmount,
|
|
|
+ a.sales_type salesType, a.channel_id channelId ,a.other
|
|
|
+ from t_order_new a left join `user` b on a.buyer_id=b.id left join t_order_mid c on a.order_no=c.order_no
|
|
|
+ left join department dep on a.order_dep=dep.id
|
|
|
+ where a.delete_sign in(0,2) and a.process_status >4
|
|
|
+ <if test="province !=null ">
|
|
|
+ and dep.province = #{province}
|
|
|
+ </if>
|
|
|
+ <if test="salesType !=null ">
|
|
|
+ and a.sales_type = #{salesType}
|
|
|
+ </if>
|
|
|
+ order by a.create_time desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectstatisticsOrderListCount" resultType="integer">
|
|
|
+ select count(*)
|
|
|
+ from t_order_new a left join `user` b on a.buyer_id=b.id left join t_order_mid c on a.order_no=c.order_no
|
|
|
+ left join department dep on a.order_dep=dep.id
|
|
|
+ where a.delete_sign in(0,2) and a.process_status >4
|
|
|
+ <if test="province !=null ">
|
|
|
+ and dep.province = #{province}
|
|
|
+ </if>
|
|
|
+ <if test="salesType !=null ">
|
|
|
+ and a.sales_type = #{salesType}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|