收发货统计表
This commit is contained in:
parent
692d2511ed
commit
9fed935dc6
|
|
@ -167,9 +167,9 @@ public class RecordsExcel {
|
|||
deliveryNum = StringUtil.isNullOrEmpty(deliveryNum)? 0:deliveryNum;
|
||||
receiptRecordsBo.setDeliveryNum(deliveryNum.toString());
|
||||
// 如果数量都是0,跳出循环
|
||||
if ("0.00".equals(receiptRecordsBo.getMajorNum()) && (invoiceNum == 0) && (receiveNum == 0) && (deliveryNum == 0)) {
|
||||
continue;
|
||||
}
|
||||
// if ("0.00".equals(receiptRecordsBo.getMajorNum()) && (invoiceNum == 0) && (receiveNum == 0) && (deliveryNum == 0)) {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
if (StringUtil.isNotEmpty(invoiceNum) && (0 != invoiceNum)) {
|
||||
DecimalFormat df = new DecimalFormat("0.00");
|
||||
|
|
@ -214,6 +214,7 @@ public class RecordsExcel {
|
|||
map.put("startTime", startTime);
|
||||
map.put("endTime", endTime);
|
||||
map.put("goodsNo", goodsNo);
|
||||
map.put("isAll", "1");
|
||||
List list2 = receiptRecordsService.findGoods(map, ".getMajorNum");
|
||||
Map map1 = (Map) list2.get(0);
|
||||
if (map1 != null) {
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
<if test="goodsNo != null and goodsNo != ''">
|
||||
AND a.GOODS_NO = #{goodsNo}
|
||||
</if>
|
||||
<if test="goodsNo == null or goodsNo == ''">
|
||||
<if test="(goodsNo == null or goodsNo == '') and (isAll == null or isAll == '')">
|
||||
AND (a.GOODS_NO is null or a.GOODS_NO = '')
|
||||
</if>
|
||||
<if test="clientId != null and clientId != ''">
|
||||
|
|
|
|||
|
|
@ -279,9 +279,12 @@
|
|||
</where>
|
||||
)
|
||||
</if>
|
||||
<if test="goodsNo == null or goodsNo == ''">
|
||||
<if test="(goodsNo == null or goodsNo == '') and (isAll == null or isAll == '')">
|
||||
AND (a.GOODS_NO is null or a.GOODS_NO = '')
|
||||
</if>
|
||||
<if test="isAll != null and isAll != ''">
|
||||
and a.GOODS_NO is not null
|
||||
</if>
|
||||
<if test="companyId != null and companyId != ''">
|
||||
AND a.company_id = #{companyId}
|
||||
</if>
|
||||
|
|
@ -448,9 +451,12 @@
|
|||
</where>
|
||||
)
|
||||
</if>
|
||||
<if test="goodsNo == null or goodsNo == ''">
|
||||
<if test="(goodsNo == null or goodsNo == '') and (isAll == null or isAll == '')">
|
||||
AND (a.GOODS_NO is null or a.GOODS_NO = '')
|
||||
</if>
|
||||
<if test="isAll != null and isAll != ''">
|
||||
and a.GOODS_NO is not null
|
||||
</if>
|
||||
<if test="companyId != null and companyId != ''">
|
||||
AND a.company_id = #{companyId}
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -334,6 +334,7 @@ public class ReceiptRecordsService {
|
|||
// 应发数量 发货单的商品的实发数量汇总
|
||||
map.put("startTime", startTime);
|
||||
map.put("endTime", endTime);
|
||||
map.put("isAll", "1");
|
||||
// List list2 = invoiceService.findList(map, ".countNum");
|
||||
List list2 = this.findGoods(map, ".getMajorNum");
|
||||
Map map1 = (Map) list2.get(0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue