diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettlePayRecordController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettlePayRecordController.java index c8c30dc5c..dc76201dd 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettlePayRecordController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisSettlePayRecordController.java @@ -11,12 +11,15 @@ package com.xdadan.erp.web.emis; +import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletResponse; +import cn.hutool.core.map.MapUtil; import com.alibaba.fastjson.JSONObject; import com.xdadan.erp.emis.domain.EmisWaybill; import com.xdadan.erp.emis.domain.exception.EmisBizError; +import com.xdadan.erp.emis.utils.WaybillHelper; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DuplicateKeyException; @@ -64,6 +67,24 @@ public class EmisSettlePayRecordController extends BaseController setPrivParams(emisSettlePayRecord); + String billCodeStr = MapUtil.getStr(emisSettlePayRecord.getParams(),"billCode"); + if(!StringUtils.isEmpty(billCodeStr)){ + emisSettlePayRecord.getParams().put("billCode", WaybillHelper.formatQueryValue(billCodeStr)); + String[] billCodeSortList = billCodeStr.split(","); + if(billCodeSortList.length>1){ + emisSettlePayRecord.getParams().put("billCodeSortList", Arrays.asList(billCodeSortList)); + } + } + + + if(!StringUtils.isEmpty(emisSettlePayRecord.getSettleBillNo())){ + emisSettlePayRecord.setSettleBillNo(WaybillHelper.formatQueryValue(emisSettlePayRecord.getSettleBillNo())); + String[] settleBillNoSortList = emisSettlePayRecord.getSettleBillNo().split(","); + if(settleBillNoSortList.length>1){ + emisSettlePayRecord.getParams().put("settleBillNoSortList",Arrays.asList(settleBillNoSortList)); + } + } + List list = emisSettlePayRecordService.selectEmisSettlePayRecordList(emisSettlePayRecord); return getDataTable(list); } diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWarehouseInBatch.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWarehouseInBatch.java index e51e2e3b0..fd7f90b5b 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWarehouseInBatch.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWarehouseInBatch.java @@ -79,12 +79,20 @@ public class EmisWarehouseInBatch extends BaseEntity private String prepareInSupplier; /* 包装类型 */ private String packType; - /* 总件数 */ + /* 总件数-旧 */ private Integer totalParcelQty; /* 总体积 */ private BigDecimal totalVolume; - /* 总重量 */ + /* 总重量-旧 */ private BigDecimal totalWeight; + + + /* 件数-新 */ + private Integer parcelQty; + /* 实际重量-新 */ + private BigDecimal billWeight; + /* 货值 */ + private String realValue; /* 进仓图片链接 */ private String picUrl; diff --git a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml index 7bc15afcf..6af6b8520 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml @@ -112,6 +112,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and create_time #{params.endCreateTime} + + and trade_date = ]]> #{params.beginTradeDate} + + + and trade_date #{params.endTradeDate} + + and settle_bill_no in( select bill_no from emis_settle_sub_bill b diff --git a/emis-biz/src/main/resources/mapper/EmisWarehouseInBatchMapper.xml b/emis-biz/src/main/resources/mapper/EmisWarehouseInBatchMapper.xml index 0fff5a162..4fd41b33a 100644 --- a/emis-biz/src/main/resources/mapper/EmisWarehouseInBatchMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWarehouseInBatchMapper.xml @@ -26,9 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - + + + + - select id, serial_no, in_no, in_batch_no, customer_code, customer_name, order_sn, bill_code, trans_car_no, entry_date, confirm_status, confirm_date, status, bl_prepare_in_freight, prepare_in_est_fee, prepare_in_real_fee, prepare_in_express, prepare_in_bill_code, prepare_in_remark, prepare_in_supplier, pack_type, total_parcel_qty, total_volume, total_weight, pic_url, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_warehouse_in_batch + select id, serial_no, in_no, in_batch_no, customer_code, customer_name, order_sn, bill_code, trans_car_no, entry_date, confirm_status, confirm_date, status, bl_prepare_in_freight, prepare_in_est_fee, prepare_in_real_fee, prepare_in_express, prepare_in_bill_code, prepare_in_remark, prepare_in_supplier, pack_type, total_parcel_qty, total_volume, total_weight, parcel_qty, bill_weight, real_value, pic_url, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_warehouse_in_batch @@ -123,6 +126,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" total_parcel_qty, total_volume, total_weight, + parcel_qty, + bill_weight, + real_value, pic_url, remark, tenant_id, @@ -158,6 +164,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{totalParcelQty}, #{totalVolume}, #{totalWeight}, + #{parcelQty}, + #{billWeight}, + #{realValue}, #{picUrl}, #{remark}, #{tenantId}, @@ -197,6 +206,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" total_parcel_qty = #{totalParcelQty}, total_volume = #{totalVolume}, total_weight = #{totalWeight}, + parcel_qty = #{parcelQty}, + bill_weight = #{billWeight}, + real_value = #{realValue}, pic_url = #{picUrl}, remark = #{remark}, tenant_id = #{tenantId}, @@ -212,11 +224,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from emis_warehouse_in_batch where id = #{id} + update emis_warehouse_in_batch set del_flag='1' where id = #{id} - delete from emis_warehouse_in_batch where id in + update emis_warehouse_in_batch set del_flag='1' where id in #{id}