提交 5dedd539 authored 作者: Wangjiajie's avatar Wangjiajie

修改物流状态

上级 ed388552
...@@ -542,12 +542,14 @@ public class IostReceivingNoteController { ...@@ -542,12 +542,14 @@ public class IostReceivingNoteController {
double totleWeightTotal = 0;//重量总 double totleWeightTotal = 0;//重量总
int totlePackagesTotal = 0;//箱数总 int totlePackagesTotal = 0;//箱数总
double totlePrice = 0;//价格总 double totlePrice = 0;//价格总
double totleMoney = 0;//
for(IostReceivingNoteList iostReceivingNoteList: iostIostReceivingNoteList) for(IostReceivingNoteList iostReceivingNoteList: iostIostReceivingNoteList)
{ {
totlevolume = totlevolume + iostReceivingNoteList.getVolume(); totlevolume = totlevolume + iostReceivingNoteList.getVolume();
totlePackagesTotal = totlePackagesTotal + iostReceivingNoteList.getPackages(); totlePackagesTotal = totlePackagesTotal + iostReceivingNoteList.getPackages();
totleWeightTotal = totleWeightTotal + iostReceivingNoteList.getWeight(); totleWeightTotal = totleWeightTotal + iostReceivingNoteList.getWeight();
totlePrice = totlePrice + iostReceivingNoteList.getPrice(); totlePrice = totlePrice + iostReceivingNoteList.getPrice();
totleMoney = totleMoney + iostReceivingNoteList.getMoney();
} }
IostReceivingNoteList curIostReceivingNotlist = new IostReceivingNoteList(); IostReceivingNoteList curIostReceivingNotlist = new IostReceivingNoteList();
curIostReceivingNotlist.setNameChs("总和"); curIostReceivingNotlist.setNameChs("总和");
...@@ -555,6 +557,7 @@ public class IostReceivingNoteController { ...@@ -555,6 +557,7 @@ public class IostReceivingNoteController {
curIostReceivingNotlist.setWeight(totleWeightTotal); curIostReceivingNotlist.setWeight(totleWeightTotal);
curIostReceivingNotlist.setPackages(totlePackagesTotal); curIostReceivingNotlist.setPackages(totlePackagesTotal);
curIostReceivingNotlist.setPrice(totlePrice); curIostReceivingNotlist.setPrice(totlePrice);
curIostReceivingNotlist.setMoney(totleMoney);
iostIostReceivingNoteList.add(curIostReceivingNotlist); iostIostReceivingNoteList.add(curIostReceivingNotlist);
} }
......
...@@ -3,18 +3,19 @@ ...@@ -3,18 +3,19 @@
<mapper namespace="org.jeecg.modules.iost.basedata.mapper.IostDeliveryRecordPageMapper"> <mapper namespace="org.jeecg.modules.iost.basedata.mapper.IostDeliveryRecordPageMapper">
<select id="selectlist" resultType="org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage"> <select id="selectlist" resultType="org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage">
SELECT * SELECT D.*,L.date,L.location FROM iost_deliverstatus AS D LEFT JOIN (
FROM iost_deliverstatus AS D,iost_deliverstatus_list AS L SELECT * FROM iost_deliverstatus_list WHERE id IN(
SELECT MAX(id) id FROM iost_deliverstatus_list GROUP BY deliverstatus_id
)) AS L
ON D.id = L.deliverstatus_id
<where> <where>
<if test="iostDeliveryRecordPage.bulkNo !=null"> <if test="iostDeliveryRecordPage.bulkNo !=null">
and bulk_no = iostDeliveryRecordPage.bulkNo and bulk_no = #{iostDeliveryRecordPage.bulkNo}
</if> </if>
<if test="iostDeliveryRecordPage.containerNo !=null"> <if test="iostDeliveryRecordPage.containerNo !=null">
and container_no = iostDeliveryRecordPage.bulkNo and container_no = #{iostDeliveryRecordPage.containerNo}
</if> </if>
and D.id = L.deliverstatus_id
</where> </where>
limit #{pageNo},#{pageSize}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -3,18 +3,19 @@ ...@@ -3,18 +3,19 @@
<mapper namespace="org.jeecg.modules.iost.basedata.mapper.IostDeliveryRecordPageMapper"> <mapper namespace="org.jeecg.modules.iost.basedata.mapper.IostDeliveryRecordPageMapper">
<select id="selectlist" resultType="org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage"> <select id="selectlist" resultType="org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage">
SELECT * SELECT D.*,L.date,L.location FROM iost_deliverstatus AS D LEFT JOIN (
FROM iost_deliverstatus AS D,iost_deliverstatus_list AS L SELECT * FROM iost_deliverstatus_list WHERE id IN(
SELECT MAX(id) id FROM iost_deliverstatus_list GROUP BY deliverstatus_id
)) AS L
ON D.id = L.deliverstatus_id
<where> <where>
<if test="iostDeliveryRecordPage.bulkNo !=null"> <if test="iostDeliveryRecordPage.bulkNo !=null">
and bulk_no = iostDeliveryRecordPage.bulkNo and bulk_no = #{iostDeliveryRecordPage.bulkNo}
</if> </if>
<if test="iostDeliveryRecordPage.containerNo !=null"> <if test="iostDeliveryRecordPage.containerNo !=null">
and container_no = iostDeliveryRecordPage.bulkNo and container_no = #{iostDeliveryRecordPage.containerNo}
</if> </if>
and D.id = L.deliverstatus_id
</where> </where>
limit #{pageNo},#{pageSize}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论