feat:V2.3.1

This commit is contained in:
苏竹红
2025-01-07 14:40:56 +08:00
parent ea9caaa6f1
commit fae4d72e3b
7 changed files with 20 additions and 16 deletions

View File

@@ -108,6 +108,10 @@ public class InvoicingDTO {
@ApiModelProperty("设计服务费税")
private BigDecimal designServiceFeeTax;
private BigDecimal actualPaymentAmount;
private String financialRemarks;
}

View File

@@ -1,10 +1,13 @@
package com.cool.store.entity;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
@Table(name = "xfsg_invoicing")
@Data
public class InvoicingDO {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@@ -106,6 +109,10 @@ public class InvoicingDO {
@Column(name = "update_user_id")
private String updateUserId;
private BigDecimal actualPaymentAmount;
private String financialRemarks;
/**
* @return id
*/

View File

@@ -45,12 +45,6 @@ public class AliyunServiceImpl implements AliyunService {
@Value("${aliyun.accessKeySecret:null}")
private String accessKeySecret;
@Value("${aliyun.accessKeyId1:null}")
private String accessKeyId1;
@Value("${aliyun.accessKeySecret1:null}")
private String accessKeySecret1;
// @Value("${aliyun.sms.domain}")
private String smsDomain;
@@ -217,8 +211,8 @@ public class AliyunServiceImpl implements AliyunService {
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
}
com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
.setAccessKeyId(accessKeyId1)
.setAccessKeySecret(accessKeySecret1);
.setAccessKeyId(accessKeyId)
.setAccessKeySecret(accessKeySecret);
config.endpoint = "ocr-api.cn-hangzhou.aliyuncs.com";
try {
com.aliyun.ocr_api20210707.Client client = new com.aliyun.ocr_api20210707.Client(config);

View File

@@ -57,8 +57,6 @@ public class InvoicingServiceImpl implements InvoicingService {
//新数据待提交时初始化 老数据已数据处理 阶段状态已完成 只做插入操作 无需初始化
if (shopSubStageInfo!=null&&ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85_1.getShopSubStageStatus().equals(shopSubStageInfo.getShopSubStageStatus())){
shopStageInfoDAO.updateShopStageInfo(invoicingDTO.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85_3);
////如果发票回传完成 开始设计阶段与验收阶段
preparationService.contractAndBuildStoreCompletion(invoicingDTO.getShopId());
}
return Boolean.TRUE;
}

View File

@@ -206,13 +206,14 @@ public class PreparationServiceImpl implements PreparationService {
List<ShopStageInfoDO> shopStageInfo = shopStageInfoDAO.getShopStageInfo(shopId, null);
if (CollectionUtils.isNotEmpty(shopStageInfo)) {
Map<Integer, ShopStageInfoDO> shopStageInfoDOMap = shopStageInfo.stream().collect(Collectors.toMap(ShopStageInfoDO::getShopSubStage, data -> data));
Boolean contractCompletionFlag = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85_3.getShopSubStageStatus().equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_8_5.getShopSubStage()).getShopSubStageStatus());
Boolean contractCompletionFlag = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84.getShopSubStageStatus().equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage()).getShopSubStageStatus());
//都完成了 初始化后续流程数据
if (contractCompletionFlag) {
//初始化后续流程数据s
List<ShopSubStageStatusEnum> list = new ArrayList<>();
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_30);
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_40);
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85_1);
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90);
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_140);
list.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_150);

View File

@@ -172,7 +172,7 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
//todo 提交之后先直接到已签约 正常是待审核
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84);
//初始化数据
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(),Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85_1));
preparationService.contractAndBuildStoreCompletion(request.getShopId());
commonService.sendSms(lineInfoDO.getMobile(),SMSMsgEnum.SIGN_CONTRACT);
} else {
signFranchiseMapper.updateByPrimaryKeySelective(signFranchiseDO);

View File

@@ -58,7 +58,7 @@ wx.pay.apiV3Key=wxpayzhenghu123JKJHkjafWXCertUt1
wx.pay.payNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/payNotify
wx.pay.backNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/refundNotify
aliyun.accessKeyId=LTAI5tQ6QBnWaB5LaJYz6zcD
aliyun.accessKeySecret=spqsOgtfr54cwK861O3N3fInydTgjA
aliyun.accessKeyId1=LTAI5tAVZ3r9UtSpLGcmGoQn
aliyun.accessKeySecret1=WIMjO4BjVg3YAHwmplq86yOyS2HMpa
#aliyun.accessKeyId=LTAI5tQ6QBnWaB5LaJYz6zcD
#aliyun.accessKeySecret=spqsOgtfr54cwK861O3N3fInydTgjA
aliyun.accessKeyId=LTAI5tAVZ3r9UtSpLGcmGoQn
aliyun.accessKeySecret=WIMjO4BjVg3YAHwmplq86yOyS2HMpa