|
|
@@ -44,11 +44,13 @@
|
|
44
|
44
|
</select>
|
|
45
|
45
|
|
|
46
|
46
|
<select id="selectList" parameterType="com.unis.module.coding.controller.admin.kshzs.vo.paramVo" resultType="map">
|
|
47
|
|
- select round(sum(jjsl/10000),2) kcsl,cdbm xzqhdm from DELIVERY_HWK
|
|
|
47
|
+ select round(sum(hw.jjsl/10000),2) kcsl,hw.cdbm xzqhdm,sheng.jd jd,sheng.wd wd from DELIVERY_HWK hw,DELIVERY_SHENG sheng
|
|
|
48
|
+ where hw.cdbm = sheng.xzqhbm
|
|
48
|
49
|
<where>
|
|
49
|
50
|
<include refid="queryInfo"/>
|
|
50
|
51
|
</where>
|
|
51
|
|
- order by cdbm
|
|
|
52
|
+ group by hw.cdbm,hw.jjsl,sheng.jd,sheng.wd
|
|
|
53
|
+ order by hw.cdbm
|
|
52
|
54
|
</select>
|
|
53
|
55
|
|
|
54
|
56
|
<select id="selectPieChart" parameterType="com.unis.module.coding.controller.admin.kshzs.vo.paramVo" resultType="map">
|
|
|
@@ -82,7 +84,7 @@
|
|
82
|
84
|
<where>
|
|
83
|
85
|
<include refid="queryInfo"/>
|
|
84
|
86
|
</where>
|
|
85
|
|
- group by lspzmc order by FIELD(pzdlmc,'小麦','玉米','稻谷','大豆','其他') asc
|
|
|
87
|
+ group by lspzmc order by FIELD(lspzmc,'小麦','玉米','稻谷','大豆','其他') asc
|
|
86
|
88
|
</select>
|
|
87
|
89
|
|
|
88
|
90
|
<select id="selectCxxList" parameterType="com.unis.module.coding.controller.admin.kshzs.vo.paramVo" resultType="com.unis.module.coding.controller.admin.kshzs.vo.cfxxVo">
|
|
|
@@ -228,14 +230,14 @@
|
|
228
|
230
|
</where>) AS crzl,
|
|
229
|
231
|
(SELECT NVL(ROUND(SUM(cr.jz), 2), 0) AS cksl
|
|
230
|
232
|
FROM DELIVERY_CRKXX cr JOIN DELIVERY_KQXX kq ON cr.kqid = kq.id
|
|
231
|
|
- WHERE cr.crklx = 0
|
|
232
|
233
|
<where>
|
|
|
234
|
+ cr.crklx = 0
|
|
233
|
235
|
<include refid="queryShengInfo"/>
|
|
234
|
236
|
</where>) AS cksl,
|
|
235
|
237
|
(SELECT NVL(ROUND(SUM(cr.jz), 2), 0) AS rksl
|
|
236
|
238
|
FROM DELIVERY_CRKXX cr JOIN DELIVERY_KQXX kq ON cr.kqid = kq.id
|
|
237
|
|
- WHERE cr.crklx = 1
|
|
238
|
239
|
<where>
|
|
|
240
|
+ cr.crklx = 1
|
|
239
|
241
|
<include refid="queryShengInfo"/>
|
|
240
|
242
|
</where>) AS rksl,
|
|
241
|
243
|
(SELECT NVL(ROUND(SUM(hw.jjsl) / 10000, 2), 0) AS kcsl
|