This commit is contained in:
苏竹红
2024-06-19 19:05:51 +08:00
parent 6840bcbfa4
commit 658661d409
3 changed files with 14 additions and 10 deletions

View File

@@ -5,6 +5,9 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data @Data
public class IntentAgreementSubmitRequest { public class IntentAgreementSubmitRequest {
@@ -37,6 +40,12 @@ public class IntentAgreementSubmitRequest {
@ApiModelProperty("公司地址") @ApiModelProperty("公司地址")
private String businessLicenseAddress; private String businessLicenseAddress;
private BigDecimal jmf;
private Date signStartTime;
private Date signEndTime;
public SigningBaseInfoDO toSigningBaseInfoDO() { public SigningBaseInfoDO toSigningBaseInfoDO() {
SigningBaseInfoDO signingBaseInfoDO = new SigningBaseInfoDO(); SigningBaseInfoDO signingBaseInfoDO = new SigningBaseInfoDO();

View File

@@ -171,6 +171,9 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
auditPassRequest.setLineId(lineInfoDO.getId()); auditPassRequest.setLineId(lineInfoDO.getId());
auditPassRequest.setWorkflowSubStage(lineInfoDO.getWorkflowSubStage()); auditPassRequest.setWorkflowSubStage(lineInfoDO.getWorkflowSubStage());
commonService.getLineFlowService(lineInfoDO.getWorkflowSubStage()).auditPass(auditPassRequest, null); commonService.getLineFlowService(lineInfoDO.getWorkflowSubStage()).auditPass(auditPassRequest, null);
String redisKey = "OA:" + request.getMobile() + request.getIdCardNo();
log.info("initiating redisKey:{},request:{}", redisKey, JSONObject.toJSONString(request));
redisUtilPool.setString(redisKey, JSONObject.toJSONString(request));
// TODO: 2024/6/18 企微工作通知 // TODO: 2024/6/18 企微工作通知
// Map<String, String> requestMap = new HashMap<>(); // Map<String, String> requestMap = new HashMap<>();
// requestMap.put("partnerUsername", lineInfoDO.getUsername()); // requestMap.put("partnerUsername", lineInfoDO.getUsername());
@@ -272,7 +275,6 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
lineInfoMapper.updateByPrimaryKeySelective(lineInfoParam); lineInfoMapper.updateByPrimaryKeySelective(lineInfoParam);
} }
if (initiatingResponse.getCode() != 0) { if (initiatingResponse.getCode() != 0) {
// lineInfoDO.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_63.getCode());
lineInfoMapper.updateByPrimaryKeySelective(lineInfoDO); lineInfoMapper.updateByPrimaryKeySelective(lineInfoDO);
return new ResponseResult(500, initiatingResponse.getMessage(), initiatingResponse.getData()); return new ResponseResult(500, initiatingResponse.getMessage(), initiatingResponse.getData());
} else { } else {

View File

@@ -389,8 +389,6 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
LinePayDO linePayDO = linePayMapper.getByLineIdAndPayTypeAndShopId(lineId, 1, shopId); LinePayDO linePayDO = linePayMapper.getByLineIdAndPayTypeAndShopId(lineId, 1, shopId);
//铺位信息 //铺位信息
PointInfoDO pointInfoDO = pointInfoMapper.getDataByShopIdAndLineId(lineId, shopId); PointInfoDO pointInfoDO = pointInfoMapper.getDataByShopIdAndLineId(lineId, shopId);
//建店数据
SystemBuildingShopDO systemBuildingShopDO = systemBuildingShopMapper.selectOne(SystemBuildingShopDO.builder().shopId(shopId).lineId(lineId).build());
//证照办理 //证照办理
LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectByShopId(shopId); LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectByShopId(shopId);
if (Objects.nonNull(signFranchiseDO)) { if (Objects.nonNull(signFranchiseDO)) {
@@ -412,13 +410,8 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
} else { } else {
addSignFranchiseResponse.setMobile(lineInfoDO.getMobile()); addSignFranchiseResponse.setMobile(lineInfoDO.getMobile());
} }
if (Objects.nonNull(systemBuildingShopDO)) { addSignFranchiseResponse.setStoreName(shopInfoDO.getShopName());
addSignFranchiseResponse.setStoreName(systemBuildingShopDO.getStoreName());
addSignFranchiseResponse.setBigRegion(systemBuildingShopDO.getBigName());
addSignFranchiseResponse.setBigRegionManager(systemBuildingShopDO.getRegioGeneral());
addSignFranchiseResponse.setFranchiseeType(Objects.requireNonNull(FranchiseeTypeEnum.getByCode(systemBuildingShopDO.getFranchiseeType())).getMessage());
addSignFranchiseResponse.setReasons(systemBuildingShopDO.getReasons());
}
if (Objects.nonNull(pointInfoDO)) { if (Objects.nonNull(pointInfoDO)) {
addSignFranchiseResponse.setStoreAddress(pointInfoDO.getAddress()); addSignFranchiseResponse.setStoreAddress(pointInfoDO.getAddress());
} }