6d9a67f2 张雷

Merge remote-tracking branch 'origin/master' into master

2 个父辈 b452ab00 2288cd93
...@@ -85,7 +85,7 @@ public class PurchasePlanItem implements Serializable{ ...@@ -85,7 +85,7 @@ public class PurchasePlanItem implements Serializable{
85 85
86 @Excel(name = "去年出库数量", width = 15) 86 @Excel(name = "去年出库数量", width = 15)
87 @ApiModelProperty(value = "去年出库数量") 87 @ApiModelProperty(value = "去年出库数量")
88 private Integer outNum; 88 private String outNum;
89 89
90 @Excel(name = "总价", width = 15) 90 @Excel(name = "总价", width = 15)
91 @ApiModelProperty(value = "总价") 91 @ApiModelProperty(value = "总价")
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
4 4
5 <!--查询 入库单 --> 5 <!--查询 入库单 -->
6 <select id="queryArrivalRecordByList" resultType="com.skua.modules.erp.vo.ArrivalRecordExcelExportVO"> 6 <select id="queryArrivalRecordByList" resultType="com.skua.modules.erp.vo.ArrivalRecordExcelExportVO">
7 select d.depart_name, pc.contract_code 'purchaseContractCode', dc.contract_code 'distributContractCode' ,ss.sparepart_name,mi.* 7 select d.depart_name, pc.contract_code 'purchaseContractCode', dc.contract_code 'distributContractCode' , sm.supp_name 'supplierName' ,mi.*
8 from erp_material_in mi 8 from erp_material_in mi
9 left join sys_depart d on d.id = mi.depart_id 9 left join sys_depart d on d.id = mi.depart_id
10 left join erp_purchase_contract pc on pc.id = mi.purchase_contract_id 10 left join erp_purchase_contract pc on pc.id = mi.purchase_contract_id
11 left join erp_distribut_contract dc on dc.id = mi.distribut_contract_id 11 left join erp_distribut_contract dc on dc.id = mi.distribut_contract_id
12 left join equipment_sparepart_supplies ss on ss.id = mi.supplier_id 12 left join ajh_supplier_manage sm on sm.id= mi.supplier_id
13 <where> 13 <where>
14 mi.audit_status =3 14 mi.audit_status =3
15 <if test="startTime != null and startTime !=''"> 15 <if test="startTime != null and startTime !=''">
16 and mi.arrive_time &gt;= #{startTime} 16 and mi.arrive_time &gt;= #{startTime}
...@@ -61,4 +61,14 @@ ...@@ -61,4 +61,14 @@
61 </where> 61 </where>
62 group by sparepart_id,purchase_contract_id,depart_id,supplier_id 62 group by sparepart_id,purchase_contract_id,depart_id,supplier_id
63 </select> 63 </select>
64
65
66 <!-- -->
67 <select id="checkNum" resultType="java.lang.Double">
68 select (dm.material_num - aaa.num1 - 100) num from (
69 select sum(material_num) 'num1' from erp_material_in where good_code = 'HH102802' and distribut_contract_id ='1850726733397950466'
70 )aaa
71 left join erp_distribut_material dm on (dm.contract_id = '1850726733397950466' and dm.good_code ='HH102802')
72 </select>
73
64 </mapper> 74 </mapper>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!