|
@@ -6,32 +6,47 @@
|
|
|
<insert id="insertLoadFeeItems">
|
|
|
Insert Into LoadFeeItems (SysID, EntityID, LineNo, CarID, ItemID, ItemProp, ItemAuditType, Dc, Qty, Price, Amt,
|
|
|
OpUserID, OpUserName, SrcActID, SrcEntityID, SrcLineNo)
|
|
|
- values (1, #{o.entityId}, #{l.lineNo}, #{o.carId}, #{l.itemId}, #{l.itemProp}, #{l.itemAuditType}, 'C', 1,
|
|
|
- '录入', '录入',
|
|
|
- #{e.}, #{e.empl}, #{o.actId}, #{o.entityId}, #{o.lineNo})
|
|
|
+ values (1, #{o.entityId}, #{i.lineNo}, #{o.carId}, #{i.itemId}, #{i.itemProp}, #{i.auditType}, 'C', 1,
|
|
|
+ #{i.amt}, #{i.amt},
|
|
|
+ #{e.EmplId}, #{e.empl}, #{o.actId}, #{o.entityId}, #{o.lineNo})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateOrderBillsPlansByid">
|
|
|
update OrderBillsPlans
|
|
|
- set LoadQty = #{LoadQty},
|
|
|
- LoadDate = #{LoadDate},
|
|
|
- UnLoadQty = #{UnLoadQty},
|
|
|
- UnLoadDate = #{UnLoadDate},
|
|
|
- EMPTYADDR1 = #{EMPTYADDR1},
|
|
|
- ODOMETERSTART = #{ODOMETERSTART},
|
|
|
- EMPTYADDR2 = #{EMPTYADDR2},
|
|
|
- ODOMETEREND = #{ODOMETEREND},
|
|
|
- LOADMILE = #{LOADMILE},
|
|
|
- Remarks = #{Remarks}
|
|
|
+ set LoadQty = #{loadQty},
|
|
|
+ LoadDate = #{loadDate},
|
|
|
+ UnLoadQty = #{unLoadQty},
|
|
|
+ UnLoadDate = #{unLoadDate},
|
|
|
+ EMPTYADDR1 = #{emptyaddr1},
|
|
|
+ ODOMETERSTART = #{odometerstart},
|
|
|
+ EMPTYADDR2 = #{emptyaddr2},
|
|
|
+ ODOMETEREND = #{odometerend},
|
|
|
+ LOADMILE = #{loadmile},
|
|
|
+ Remarks = #{remarks}
|
|
|
where sysId = '1'
|
|
|
- and OrderNo = #{OrderNo}
|
|
|
+ and OrderNo = #{orderNo}
|
|
|
</update>
|
|
|
- <update id="updateLoadFeeItems">
|
|
|
- update LoadFeeItems
|
|
|
- set atm1 = #{atm1}
|
|
|
- where itemId = #{itemId}
|
|
|
- and entityId = #{entityId}
|
|
|
+ <update id="reimbursement">
|
|
|
+ update OrderBillsPlans
|
|
|
+ set loadetc = #{loadetc},
|
|
|
+ loadtoll = #{loadtoll},
|
|
|
+ oilhomeQty = #{oilhomeQty},
|
|
|
+ oilhomeAmt = #{oilhomeAmt},
|
|
|
+ oilappoint1Qty = #{oilappoint1Qty},
|
|
|
+ oilappoint1Amt = #{oilappoint1Amt},
|
|
|
+ oilappoint2Qty = #{oilappoint2Qty},
|
|
|
+ oilappoint2Amt = #{oilappoint2Amt},
|
|
|
+ oilcash1Qty = #{oilcash1Qty},
|
|
|
+ oilcash1Amt = #{oilcash1Amt},
|
|
|
+ oilcardQty = #{oilcardQty},
|
|
|
+ oilcardAmt = #{oilcardAmt},
|
|
|
+ gasstation1 = #{gasstation1},
|
|
|
+ gasstation2 = #{gasstation2}
|
|
|
+ where orderNo = #{orderNo}
|
|
|
</update>
|
|
|
+ <delete id="deleteLoadFeeItemsByCarId">
|
|
|
+ delete from LoadFeeItems where CarId = #{carId}
|
|
|
+ </delete>
|
|
|
|
|
|
|
|
|
<select id="getOrderBillsPlansLsit" parameterType="Map" resultType="com.ruoyi.system.domain.WfTaskList">
|
|
@@ -86,7 +101,7 @@
|
|
|
and ((p.DRIVER1ID=#{emplId, jdbcType=VARCHAR}) or (p.SUPERCARGOID=#{emplId, jdbcType=VARCHAR}))
|
|
|
|
|
|
<if test="orderNo != null and orderNo != ''">
|
|
|
--- and p.orderNo like concat('%', #{orderNo}, '%')
|
|
|
+ and p.orderNo like #{orderNo}
|
|
|
</if>
|
|
|
</where>
|
|
|
|
|
@@ -94,16 +109,27 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getOrderBillsPlansByid" resultType="com.ruoyi.system.domain.OrderBillsPlans">
|
|
|
- Select g.CName goodsCName
|
|
|
- , p.LoadAddr loadAddr
|
|
|
- , l.SName loadFactory
|
|
|
- , p.LoadAttn loadAttn
|
|
|
- , p.LoadAttnTel loadAttnTel
|
|
|
- , p.UnLoadAddr unLoadAddr
|
|
|
- , ul.SName unLoadFactory
|
|
|
- , p.UnLoadAttn unLoadAttn
|
|
|
+ Select g.CName goodsCName
|
|
|
+ , p.LoadAddr loadAddr
|
|
|
+ , l.SName loadFactory
|
|
|
+ , p.LoadAttn loadAttn
|
|
|
+ , p.LoadAttnTel loadAttnTel
|
|
|
+ , p.UnLoadAddr unLoadAddr
|
|
|
+ , ul.SName unLoadFactory
|
|
|
+ , p.UnLoadAttn unLoadAttn
|
|
|
, p.UNLoadAttnTel unLoadAttnTel
|
|
|
, p.planRemarks
|
|
|
+ , p.orderNo
|
|
|
+ , p.loadQty
|
|
|
+ , p.loadDate
|
|
|
+ , p.unLoadQty
|
|
|
+ , p.unLoadDate
|
|
|
+ , p.emptyaddr1
|
|
|
+ , p.odometerstart
|
|
|
+ , p.emptyaddr2
|
|
|
+ , p.odometerend
|
|
|
+ , p.loadmile
|
|
|
+ , p.remarks
|
|
|
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)
|
|
@@ -118,7 +144,7 @@
|
|
|
|
|
|
|
|
|
<select id="getItemsList" resultType="com.ruoyi.system.domain.vo.ItemsVo">
|
|
|
- select itemId, cName from Items where SysID=1 and itemProp='F'
|
|
|
+ select itemId, cName, itemProp, auditType from Items where SysID=1 and itemProp='F'
|
|
|
</select>
|
|
|
<select id="getLoadFeeitemsMapByentityIdKeyItemId" resultType="java.util.Map">
|
|
|
select itemId, atm1, entityId from LoadFeeItems where entityId = #{entityId}
|
|
@@ -126,4 +152,30 @@
|
|
|
<select id="getGasStations" resultType="com.ruoyi.system.domain.GasStations">
|
|
|
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>
|
|
|
+ <select id="getLoadFeeItemsByOrder" resultType="com.ruoyi.system.domain.LoadFeeItems">
|
|
|
+ select itemid, amt from LoadFeeItems where sysid = 1 and entityid = #{entityid}
|
|
|
+ </select>
|
|
|
</mapper>
|