Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -46,8 +46,8 @@ TmsOrderAddDTO implements Serializable {
|
|||||||
@ApiModelProperty(value = "装货电话")
|
@ApiModelProperty(value = "装货电话")
|
||||||
private String loadingPhone="";
|
private String loadingPhone="";
|
||||||
@ApiModelProperty(value = "装货时间日期(年月日)",required = true)
|
@ApiModelProperty(value = "装货时间日期(年月日)",required = true)
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
private java.util.Date loadingDate;
|
private java.util.Date loadingDate;
|
||||||
// @ApiModelProperty(value = "装货时间(上午、下午、24小时)")
|
// @ApiModelProperty(value = "装货时间(上午、下午、24小时)")
|
||||||
// private String loadingTime="";
|
// private String loadingTime="";
|
||||||
|
|||||||
+2
-2
@@ -32,8 +32,8 @@ public class TmsAddressMultiDTO {
|
|||||||
@ApiModelProperty(value = "装卸货联系人电话")
|
@ApiModelProperty(value = "装卸货联系人电话")
|
||||||
private String contactPhone;
|
private String contactPhone;
|
||||||
@ApiModelProperty(value = "装卸货日期(年月日)")
|
@ApiModelProperty(value = "装卸货日期(年月日)")
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
private Date layDate;
|
private Date layDate;
|
||||||
@ApiModelProperty(value = "装卸货时间(上午、下午、24小时)")
|
@ApiModelProperty(value = "装卸货时间(上午、下午、24小时)")
|
||||||
private String layTime;
|
private String layTime;
|
||||||
|
|||||||
+7
-2
@@ -759,6 +759,10 @@ public class ContractManageApplicationService {
|
|||||||
}
|
}
|
||||||
//根据合同编码查询保存合同信息
|
//根据合同编码查询保存合同信息
|
||||||
ContractManagePO contractManagePO = contractManageDomainService.getInfoByCode1(contractManageDO.getOriginalContractNumber());
|
ContractManagePO contractManagePO = contractManageDomainService.getInfoByCode1(contractManageDO.getOriginalContractNumber());
|
||||||
|
//修改时,不管前端是否传明细,都需要先删除该合同原有的明细,避免明细为空时老明细仍在
|
||||||
|
if (!isInsert) {
|
||||||
|
contractManageDetailMapper.delete(new LambdaQueryWrapper<ContractManageDetail>().eq(ContractManageDetail::getContractManageId, contractManageDO.getContractManageId()));
|
||||||
|
}
|
||||||
//保存合同详情科目
|
//保存合同详情科目
|
||||||
List<ContractManageDetailDTO> contractManageDetailDTOList = contractManageDO.getContractManageDetailDTOList();
|
List<ContractManageDetailDTO> contractManageDetailDTOList = contractManageDO.getContractManageDetailDTOList();
|
||||||
if(null != contractManageDetailDTOList && contractManageDetailDTOList.size()>0){
|
if(null != contractManageDetailDTOList && contractManageDetailDTOList.size()>0){
|
||||||
@@ -830,8 +834,9 @@ public class ContractManageApplicationService {
|
|||||||
if (isInsert) {
|
if (isInsert) {
|
||||||
// 新增/复制时使用新插入的合同ID
|
// 新增/复制时使用新插入的合同ID
|
||||||
contractManageDetailDO.setContractManageId(contractManageDO.getContractManageId());
|
contractManageDetailDO.setContractManageId(contractManageDO.getContractManageId());
|
||||||
} else if(null != contractManagePO){
|
} else {
|
||||||
contractManageDetailDO.setContractManageId(contractManagePO.getContractManageId());
|
// 修改时使用当前正在修改的合同ID,不能用 getInfoByCode1 查到的(避免多条合同 originalContractNumber 相同导致明细错绑)
|
||||||
|
contractManageDetailDO.setContractManageId(contractManageDO.getContractManageId());
|
||||||
}
|
}
|
||||||
contractManageDetailDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
|
contractManageDetailDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
|
||||||
contractManageDetailDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
contractManageDetailDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
||||||
|
|||||||
+22
@@ -420,6 +420,28 @@ public class BillManageApplicationService {
|
|||||||
newBill.setUpdateByName(loginUser.getUserPo().getUserName());
|
newBill.setUpdateByName(loginUser.getUserPo().getUserName());
|
||||||
newBill.setUpdateTime(new Date());
|
newBill.setUpdateTime(new Date());
|
||||||
newBill.setDelFlag(1);
|
newBill.setDelFlag(1);
|
||||||
|
// 复制后重置状态字段为初始值
|
||||||
|
// 账单状态、对账状态、发票状态重置
|
||||||
|
newBill.setBillState(1); // 1-未确认
|
||||||
|
newBill.setBillStep(1); // 1-发起对账
|
||||||
|
newBill.setReconciliationStatus(0); // 1-暂未确认
|
||||||
|
newBill.setIsInvoice(0); // 0-未索取
|
||||||
|
// 实收=0,未收=账单金额
|
||||||
|
newBill.setActualReceivedAmount(BigDecimal.ZERO);
|
||||||
|
newBill.setBillAmountUnsettled(newBill.getBillAmount());
|
||||||
|
newBill.setBillAmountSettlement(BigDecimal.ZERO);
|
||||||
|
// NC同步状态重置
|
||||||
|
newBill.setSynchronousStatus(0); // 0-未同步
|
||||||
|
newBill.setSkSynchronousStatus(0); // 0-未同步
|
||||||
|
// 清空发票、收款、推送相关字段
|
||||||
|
newBill.setApplyNumber(null); // 发票申请单号
|
||||||
|
newBill.setSettlementTime(null); // 收款时间
|
||||||
|
newBill.setSynchronousTime(null); // 应收单推送时间
|
||||||
|
newBill.setSkSynchronousTime(null); // 收款单推送时间
|
||||||
|
newBill.setInvoiceId(null); // 发票表ID
|
||||||
|
newBill.setInvoiceMakeTime(null); // 开票时间
|
||||||
|
newBill.setNcId(null); // nc唯一标识(应收)
|
||||||
|
newBill.setSkNcId(null); // nc唯一标识(收款)
|
||||||
// 保存新账单
|
// 保存新账单
|
||||||
boolean flag = billManageDomainService.saveEntity(newBill);
|
boolean flag = billManageDomainService.saveEntity(newBill);
|
||||||
if (!flag) {
|
if (!flag) {
|
||||||
|
|||||||
@@ -198,7 +198,13 @@
|
|||||||
and a.main_role = #{settlementCustomersDO.mainRole}
|
and a.main_role = #{settlementCustomersDO.mainRole}
|
||||||
</if>
|
</if>
|
||||||
<if test="settlementCustomersDO.organizationId != null">
|
<if test="settlementCustomersDO.organizationId != null">
|
||||||
and a.organization_id = #{settlementCustomersDO.organizationId}
|
AND (
|
||||||
|
a.organization_id = #{settlementCustomersDO.organizationId}
|
||||||
|
OR b.org_code LIKE concat('%"code":"', #{settlementCustomersDO.organizationId}, '"%')
|
||||||
|
OR b.org_code LIKE concat('%code:', #{settlementCustomersDO.organizationId}, '%')
|
||||||
|
OR b.org_code LIKE concat('%code: ', #{settlementCustomersDO.organizationId}, '%')
|
||||||
|
OR b.org_code LIKE concat('%"code":', #{settlementCustomersDO.organizationId}, '%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="settlementCustomersDO.topOrganizationId != null and settlementCustomersDO.topOrganizationId != ''">
|
<if test="settlementCustomersDO.topOrganizationId != null and settlementCustomersDO.topOrganizationId != ''">
|
||||||
and a.top_organization_id = #{settlementCustomersDO.topOrganizationId}
|
and a.top_organization_id = #{settlementCustomersDO.topOrganizationId}
|
||||||
|
|||||||
@@ -14,18 +14,18 @@ spring:
|
|||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
# server-addr: 127.0.0.1:8848
|
# server-addr: 127.0.0.1:8848
|
||||||
server-addr: 10.33.0.129:6010
|
# server-addr: 10.33.0.129:6010
|
||||||
# 线上测试环境配置 容器名+端口号
|
# 线上测试环境配置 容器名+端口号
|
||||||
# server-addr: 10.102.192.30:6848
|
server-addr: 10.102.192.30:6848
|
||||||
username: nacos
|
username: nacos
|
||||||
password: manhuoda@2023
|
password: manhuoda@2023
|
||||||
#线上正式环境
|
#线上正式环境
|
||||||
# server-addr: 10.102.192.105:6848
|
# server-addr: 10.102.192.105:6848
|
||||||
config:
|
config:
|
||||||
# server-addr: 127.0.0.1:8848
|
# server-addr: 127.0.0.1:8848
|
||||||
server-addr: 10.33.0.129:6010
|
# server-addr: 10.33.0.129:6010
|
||||||
# 线上测试环境配置 容器名+端口号
|
# 线上测试环境配置 容器名+端口号
|
||||||
# server-addr: 10.102.192.30:6848
|
server-addr: 10.102.192.30:6848
|
||||||
username: nacos
|
username: nacos
|
||||||
password: manhuoda@2023
|
password: manhuoda@2023
|
||||||
#线上正式环境
|
#线上正式环境
|
||||||
|
|||||||
Reference in New Issue
Block a user