|
@@ -4,10 +4,10 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.system.mapper.OrderBillsPlansMapper">
|
|
|
<insert id="insertLoadFeeItems">
|
|
|
- Insert Into LoadFeeItems (SysID, EntityID, LineNo, CarID, ItemID, ItemProp, ItemAuditType, Dc, Qty, Price, Amt,
|
|
|
+ Insert Into LoadFeeItems (SysID, EntityID, LineNo, CarID, ItemID, ItemProp, ItemAuditType, Dc, Qty, Price, Amt, AMT1, AMT2, AMTORG,
|
|
|
OpUserID, OpUserName, SrcActID, SrcEntityID, SrcLineNo)
|
|
|
- values (1, #{o.entityId}, #{i.lineNo}, #{o.carId}, #{i.itemId}, #{i.itemProp}, #{i.auditType}, 'C', 1,
|
|
|
- #{i.amt}, #{i.amt},
|
|
|
+ values (1, #{o.loadBillsEntityId}, #{i.lineNo}, #{o.carId}, #{i.itemId}, #{i.itemProp}, #{i.auditType}, 'C', 1,
|
|
|
+ #{i.amt}, #{i.amt}, #{i.amt}, #{i.amt}, #{i.amt},
|
|
|
#{e.EmplId}, #{e.empl}, #{o.actId}, #{o.entityId}, #{o.lineNo})
|
|
|
</insert>
|
|
|
|
|
@@ -22,11 +22,11 @@
|
|
|
EMPTYADDR2 = #{emptyaddr2},
|
|
|
ODOMETEREND = #{odometerend},
|
|
|
LOADMILE = #{loadmile},
|
|
|
- Remarks = #{remarks}
|
|
|
+ driverassdesc = #{driverassdesc}
|
|
|
where sysId = '1'
|
|
|
and OrderNo = #{orderNo}
|
|
|
</update>
|
|
|
- <update id="reimbursement">
|
|
|
+ <update id="updateOrderBillsPlansByOrderNo">
|
|
|
update OrderBillsPlans
|
|
|
set loadetc = #{loadetc},
|
|
|
loadtoll = #{loadtoll},
|
|
@@ -44,8 +44,8 @@
|
|
|
gasstation2 = #{gasstation2}
|
|
|
where orderNo = #{orderNo}
|
|
|
</update>
|
|
|
- <delete id="deleteLoadFeeItemsByCarId">
|
|
|
- delete from LoadFeeItems where CarId = #{carId}
|
|
|
+ <delete id="deleteLoadFeeItemsByEntityId">
|
|
|
+ delete from LoadFeeItems where sysid = 1 and entityid = #{entityId}
|
|
|
</delete>
|
|
|
|
|
|
|
|
@@ -79,6 +79,8 @@
|
|
|
,dr1.mobile driver1mobile
|
|
|
, sp.Empl sUPERCARGOName
|
|
|
,e.Empl transact
|
|
|
+ , b.BillDate billDate
|
|
|
+ , p.rightqty
|
|
|
from wf_TaskList t
|
|
|
Left join LoadBills b on (b.SysID=t.SysID and b.EntityID=t.EntityID)
|
|
|
Left join OrderBillsPlans p on (p.SysID=b.SysID and p.EntityID=b.SrcEntityID and p.LineNo=b.SrcLineNo)
|
|
@@ -130,6 +132,12 @@
|
|
|
, p.odometerend
|
|
|
, p.loadmile
|
|
|
, p.remarks
|
|
|
+ , p.driverassdesc
|
|
|
+
|
|
|
+ , dr1.Empl driver1Name
|
|
|
+ , dr1.mobile driver1mobile
|
|
|
+
|
|
|
+
|
|
|
from OrderBillsPlans p
|
|
|
Left join Empls e on (e.SysID = p.SysID and e.EmplID = p.TransactID)
|
|
|
Left join Empls dr1 on (dr1.SysID = p.SysID and dr1.EmplID = p.DRIVER1ID)
|
|
@@ -153,29 +161,39 @@
|
|
|
select gasStationId, cName from GasStations
|
|
|
</select>
|
|
|
<select id="getOrderBillsPlansByOrder" resultType="com.ruoyi.system.domain.vo.OrderBillsPlansVo">
|
|
|
- select loadetc
|
|
|
- , loadtoll
|
|
|
- , oilhomeQty
|
|
|
- , oilhomeAmt
|
|
|
- , oilappoint1Qty
|
|
|
- , oilappoint1Amt
|
|
|
- , oilappoint2Qty
|
|
|
- , oilappoint2Amt
|
|
|
- , oilcash1Qty
|
|
|
- , oilcash1Amt
|
|
|
- , oilcardQty
|
|
|
- , oilcardAmt
|
|
|
- , gasstation1
|
|
|
- , gasstation2
|
|
|
- , entityid
|
|
|
- , orderNo
|
|
|
- , carId
|
|
|
- , lineNo
|
|
|
- , actId
|
|
|
- from OrderBillsPlans
|
|
|
- where orderNo = #{orderNo}
|
|
|
+ select o.loadetc
|
|
|
+ , o.loadtoll
|
|
|
+ , o.oilhomeQty
|
|
|
+ , o.oilhomeAmt
|
|
|
+ , o.oilappoint1Qty
|
|
|
+ , o.oilappoint1Amt
|
|
|
+ , o.oilappoint2Qty
|
|
|
+ , o.oilappoint2Amt
|
|
|
+ , o.oilcash1Qty
|
|
|
+ , o.oilcash1Amt
|
|
|
+ , o.oilcardQty
|
|
|
+ , o.oilcardAmt
|
|
|
+ , o.gasstation1
|
|
|
+ , o.gasstation2
|
|
|
+ , o.entityId
|
|
|
+ , o.orderNo
|
|
|
+ , o.carId
|
|
|
+ , o.lineNo
|
|
|
+ , o.actId
|
|
|
+ , b.entityID loadBillsEntityId
|
|
|
+ , dr1.Empl driver1Name
|
|
|
+ ,dr1.mobile driver1mobile
|
|
|
+ FROM OrderBillsPlans o
|
|
|
+ INNER JOIN LoadBills b
|
|
|
+ ON
|
|
|
+ o.SysID = b.SysID
|
|
|
+ AND o.EntityID = b.SrcEntityID
|
|
|
+ AND o.LineNo = b.SrcLineNo
|
|
|
+
|
|
|
+ Left join Empls dr1 on dr1.EmplID = o.DRIVER1ID
|
|
|
+ where o.orderNo = #{orderNo} and dr1.SysID = 1
|
|
|
</select>
|
|
|
- <select id="getLoadFeeItemsByOrder" resultType="com.ruoyi.system.domain.LoadFeeItems">
|
|
|
- select itemid, amt from LoadFeeItems where sysid = 1 and entityid = #{entityid}
|
|
|
+ <select id="getLoadFeeItemsByEntityId" resultType="com.ruoyi.system.domain.LoadFeeItems">
|
|
|
+ select itemid, amt from LoadFeeItems where sysid = 1 and entityId = #{entityId}
|
|
|
</select>
|
|
|
</mapper>
|