Commit f8f2a345 authored by lanbaoming's avatar lanbaoming

2024-04-22报表XML文件

parent e859082c
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<if test="deptid!=null and deptid!=''"> <if test="deptid!=null and deptid!=''">
and u_d.dept_id= #{deptid} and u_d.dept_id= #{deptid}
</if> </if>
<!-- <!--2024-04-22
<if test="searchDataType1!=null and searchDataType1!='' <if test="searchDataType1!=null and searchDataType1!=''
and searchDataType2!=null and searchDataType2!='' and searchDataType2!=null and searchDataType2!=''
and searchDataType3!=null and searchDataType3!=''"> and searchDataType3!=null and searchDataType3!=''">
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
) as salesman,c.customer_service as salesmanid, ) as salesman,c.customer_service as salesmanid,
source,create_time as createtime, source,create_time as createtime,
(u_d.dept_id) as deptid,(u_d.deptName) as deptname, (u_d.dept_id) as deptid,(u_d.deptName) as deptname,
<!--总V值--> <!--总V值 2024-04-22-->
(SELECT round(sum(vz),2) FROM view_order_businesstime WHERE customer_id = c.id AND business_time BETWEEN '${sDate}' AND '${eDate}') AS allsumvolume, (SELECT round(sum(vz),2) FROM view_order_businesstime WHERE customer_id = c.id AND business_time BETWEEN '${sDate}' AND '${eDate}') AS allsumvolume,
(SELECT round(sum(vz),2) FROM view_order_businesstime WHERE customer_id = c.id AND business_time BETWEEN '${sDuiBiDate}' AND '${eDuiBiDate}') as allsumvolumeTb, (SELECT round(sum(vz),2) FROM view_order_businesstime WHERE customer_id = c.id AND business_time BETWEEN '${sDuiBiDate}' AND '${eDuiBiDate}') as allsumvolumeTb,
<!--海运--> <!--海运-->
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</if> </if>
</where> </where>
</sql> </sql>
<!--2024-04-22-->
<delete id="deleteById2"> <delete id="deleteById2">
delete from ecw_report_permission where id = #{id} delete from ecw_report_permission where id = #{id}
</delete> </delete>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
where id = #{id} where id = #{id}
</delete> </delete>
<!--2024-04-22-->
</mapper> </mapper>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 2024-04-22-->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, name, emp_gender, age, email </sql> id, name, emp_gender, age, email </sql>
</mapper> </mapper>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LEFT JOIN ecw_warehouse ew_start ON ewl.start_warehouse_id = ew_start.id LEFT JOIN ecw_warehouse ew_start ON ewl.start_warehouse_id = ew_start.id
LEFT JOIN ecw_warehouse ew_dest ON ewl.dest_warehouse_id = ew_dest.id LEFT JOIN ecw_warehouse ew_dest ON ewl.dest_warehouse_id = ew_dest.id
) w ON w.line_id = c.line_id ) w ON w.line_id = c.line_id
<!--始发仓--> <!--始发仓 2024-04-22-->
left join ecw_order_departure de on de.order_id = c.order_id left join ecw_order_departure de on de.order_id = c.order_id
<!--目的仓--> <!--目的仓-->
left join ecw_order_objective ob on ob.order_id = c.order_id left join ecw_order_objective ob on ob.order_id = c.order_id
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
FROM FROM
DUAL DUAL
</select> </select>
<!--2024-04-22-->
<select id="FirstCustomerCount" resultType="int"> <select id="FirstCustomerCount" resultType="int">
SELECT count(c.customer_id) as s_customer_id from ecw_order a SELECT count(c.customer_id) as s_customer_id from ecw_order a
left join ecw_order_consignee c on a.order_id=c.order_id left join ecw_order_consignee c on a.order_id=c.order_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment