Merge pull request 'develop' (#177) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/177
This commit is contained in:
commit
74bf68b582
@ -1460,7 +1460,7 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
// 23:59:59未签收,且在emis_waybill_problem_info表内的所有运单信息
|
// 23:59:59未签收,且在emis_waybill_problem_info表内的所有运单信息
|
||||||
// 重新计算并更新预估到达时间
|
// 重新计算并更新预估到达时间
|
||||||
String beginDate = "2025-08-01 00:00:00";
|
String beginDate = "2025-08-01 00:00:00";
|
||||||
String endDate = "2025-09-03 23:59:59";
|
String endDate = "2025-09-05 23:59:59";
|
||||||
|
|
||||||
// 构建查询条件
|
// 构建查询条件
|
||||||
EmisWaybill queryWaybill = new EmisWaybill();
|
EmisWaybill queryWaybill = new EmisWaybill();
|
||||||
|
|||||||
@ -69,6 +69,8 @@ public class EmisWaybill extends BaseEntity {
|
|||||||
private String customerCode;
|
private String customerCode;
|
||||||
/* 客户类型 1-普通客户 2-月结客户 */
|
/* 客户类型 1-普通客户 2-月结客户 */
|
||||||
private String customerType;
|
private String customerType;
|
||||||
|
/* 主账号id */
|
||||||
|
private Long mainUserId;
|
||||||
/* 客户客户名称 */
|
/* 客户客户名称 */
|
||||||
private String customerName;
|
private String customerName;
|
||||||
/* wx openid */
|
/* wx openid */
|
||||||
|
|||||||
@ -71,6 +71,9 @@ public class WaybillOrder implements Serializable {
|
|||||||
/* 客户类型 1-普通客户 2-月结客户 */
|
/* 客户类型 1-普通客户 2-月结客户 */
|
||||||
private String customerType;
|
private String customerType;
|
||||||
|
|
||||||
|
/* 主账号id */
|
||||||
|
private Long mainUserId;
|
||||||
|
|
||||||
/* 支付方式 : 现金或月结 */
|
/* 支付方式 : 现金或月结 */
|
||||||
private String paymentType;
|
private String paymentType;
|
||||||
|
|
||||||
@ -518,6 +521,7 @@ public class WaybillOrder implements Serializable {
|
|||||||
voItem.setCustomerCode(dbWaybill.getCustomerCode());
|
voItem.setCustomerCode(dbWaybill.getCustomerCode());
|
||||||
voItem.setCustomerName(dbWaybill.getCustomerName());
|
voItem.setCustomerName(dbWaybill.getCustomerName());
|
||||||
voItem.setCustomerType(dbWaybill.getCustomerType());
|
voItem.setCustomerType(dbWaybill.getCustomerType());
|
||||||
|
voItem.setMainUserId(dbWaybill.getMainUserId());
|
||||||
voItem.setSendSiteName(dbWaybill.getSendSiteName());
|
voItem.setSendSiteName(dbWaybill.getSendSiteName());
|
||||||
voItem.setTakePieceEmployeeName(dbWaybill.getTakePieceEmployeeName());
|
voItem.setTakePieceEmployeeName(dbWaybill.getTakePieceEmployeeName());
|
||||||
voItem.setOperateEmployeeName(dbWaybill.getOperateEmployeeName());
|
voItem.setOperateEmployeeName(dbWaybill.getOperateEmployeeName());
|
||||||
@ -746,6 +750,7 @@ public class WaybillOrder implements Serializable {
|
|||||||
dbWaybill.setOrderDate(this.getOrderDate());
|
dbWaybill.setOrderDate(this.getOrderDate());
|
||||||
dbWaybill.setUserId(this.getUserId());
|
dbWaybill.setUserId(this.getUserId());
|
||||||
dbWaybill.setCustomerCode(this.getCustomerCode());
|
dbWaybill.setCustomerCode(this.getCustomerCode());
|
||||||
|
dbWaybill.setMainUserId(this.getMainUserId());
|
||||||
|
|
||||||
// 虚拟单
|
// 虚拟单
|
||||||
dbWaybill.setBlVirtual(this.getBlVirtual());
|
dbWaybill.setBlVirtual(this.getBlVirtual());
|
||||||
|
|||||||
@ -4104,13 +4104,15 @@ public class EmisBaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算预估到达时间,根据产品时效来计算
|
* 计算预估到达时间,根据产品时效来计算
|
||||||
|
*
|
||||||
* @param sendDate 开单时间
|
* @param sendDate 开单时间
|
||||||
* @param prodCode
|
* @param prodCode
|
||||||
* @param receiveCountry
|
* @param receiveCountry
|
||||||
* @param sendCountry
|
* @param sendCountry
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Date getEstimateDate(Date sendDate,String prodCode,String receiveCountry,String sendCountry,Integer otherAddDay) {
|
public Date getEstimateDate(Date sendDate, String prodCode, String receiveCountry, String sendCountry,
|
||||||
|
Integer otherAddDay) {
|
||||||
Date estDate = null;
|
Date estDate = null;
|
||||||
|
|
||||||
if (otherAddDay == null) {
|
if (otherAddDay == null) {
|
||||||
@ -4147,15 +4149,16 @@ public class EmisBaseService {
|
|||||||
|
|
||||||
// 1+1+ 5+0-1+2+0
|
// 1+1+ 5+0-1+2+0
|
||||||
int totalDays = (emisTransProduct.getMaxAging() + otherAddDay - 1) + weekDays + notCaclDays;
|
int totalDays = (emisTransProduct.getMaxAging() + otherAddDay - 1) + weekDays + notCaclDays;
|
||||||
log.info("计算预估到达时间:[maxAging="+emisTransProduct.getMaxAging()+",weekDays="+weekDays+",notCaclDays="+notCaclDays);
|
log.info("计算预估到达时间:[maxAging=" + emisTransProduct.getMaxAging() + ",weekDays=" + weekDays + ",notCaclDays="
|
||||||
|
+ notCaclDays);
|
||||||
// 预估达到时间
|
// 预估达到时间
|
||||||
Date estimateDate = DateUtils.addDays(startDate, totalDays);
|
Date estimateDate = DateUtils.addDays(startDate, totalDays);
|
||||||
|
|
||||||
// 判断预估到达时间是否为周末,如果是周末则往后加一天
|
// 判断预估到达时间是否为周日,如果是周日则往后加一天
|
||||||
Calendar cal = Calendar.getInstance();
|
Calendar cal = Calendar.getInstance();
|
||||||
cal.setTime(estimateDate);
|
cal.setTime(estimateDate);
|
||||||
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
|
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
|
||||||
if (dayOfWeek == Calendar.SATURDAY || dayOfWeek == Calendar.SUNDAY) {
|
if (dayOfWeek == Calendar.SUNDAY) {
|
||||||
estimateDate = DateUtils.addDays(estimateDate, 1);
|
estimateDate = DateUtils.addDays(estimateDate, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -231,6 +231,7 @@
|
|||||||
<result property="customerNickName" column="customer_nick_name" />
|
<result property="customerNickName" column="customer_nick_name" />
|
||||||
<result property="customerAvatar" column="customer_avatar" />
|
<result property="customerAvatar" column="customer_avatar" />
|
||||||
<result property="customerType" column="customer_type" />
|
<result property="customerType" column="customer_type" />
|
||||||
|
<result property="mainUserId" column="main_user_id" />
|
||||||
|
|
||||||
<result property="blVirtual" column="bl_virtual" />
|
<result property="blVirtual" column="bl_virtual" />
|
||||||
<result property="masterBillCode" column="master_bill_code" />
|
<result property="masterBillCode" column="master_bill_code" />
|
||||||
@ -444,6 +445,7 @@
|
|||||||
a3.sales_support ,
|
a3.sales_support ,
|
||||||
a3.sales_executive ,
|
a3.sales_executive ,
|
||||||
a3.customer_type as customer_type,
|
a3.customer_type as customer_type,
|
||||||
|
a3.main_user_id ,
|
||||||
|
|
||||||
p.emp_name as dispatch_man_name,q.site_name as print_site_name,
|
p.emp_name as dispatch_man_name,q.site_name as print_site_name,
|
||||||
r.emp_name as print_man_name,
|
r.emp_name as print_man_name,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user