feat:合同推送
This commit is contained in:
@@ -7,6 +7,7 @@ import com.cool.store.context.LoginUserInfo;
|
||||
import com.cool.store.dao.*;
|
||||
import com.cool.store.dto.ContractInformationDTO;
|
||||
import com.cool.store.dto.PartnerBankInfoDTO;
|
||||
import com.cool.store.dto.contract.PushContractDTO;
|
||||
import com.cool.store.entity.*;
|
||||
import com.cool.store.enums.*;
|
||||
import com.cool.store.enums.point.ShopSubStageEnum;
|
||||
@@ -120,6 +121,8 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
||||
OperationLogService operationLogService;
|
||||
@Resource
|
||||
OperationLogDAO operationLogDAO;
|
||||
@Resource
|
||||
ContractConfigDAO contractConfigDAO;
|
||||
|
||||
|
||||
@Override
|
||||
@@ -417,7 +420,6 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
||||
contractInformationDTO.setJoinModel(shopInfoDO.getJoinMode());
|
||||
contractInformationDTO.setShopName(shopInfoDO.getShopName());
|
||||
//品牌信息
|
||||
|
||||
contractInformationDTO.setSign1Name(signFranchiseDO.getPartnershipSignatoryFirst());
|
||||
contractInformationDTO.setSign2Name(signFranchiseDO.getPartnershipSignatorySecond());
|
||||
contractInformationDTO.setFirstYearFee(franchiseFeeDO.getFirstYearFee());
|
||||
@@ -426,6 +428,24 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
||||
contractInformationDTO.setFirstYearFee(franchiseFeeDO.getFirstYearFee());
|
||||
contractInformationDTO.setPerformanceBond(franchiseFeeDO.getPerformanceBond());
|
||||
|
||||
List<ContractConfigDO> contractConfigDOS = contractConfigDAO.queryContractConfigListByBrandAndMode(shopInfoDO.getFranchiseBrand(), JoinModeEnum.getByCode(shopInfoDO.getJoinMode()));
|
||||
|
||||
if (CollectionUtils.isNotEmpty(contractConfigDOS)){
|
||||
contractInformationDTO.setContractList(contractConfigDOS.stream().map(contractConfigDO -> {
|
||||
PushContractDTO pushContractDTO = new PushContractDTO();
|
||||
pushContractDTO.setBrand(contractConfigDO.getBrand());
|
||||
pushContractDTO.setContractName(contractConfigDO.getContractName());
|
||||
pushContractDTO.setPartyA(contractConfigDO.getPartyA());
|
||||
pushContractDTO.setPartyB(contractConfigDO.getPartyB());
|
||||
pushContractDTO.setPartyC(contractConfigDO.getPartyC());
|
||||
pushContractDTO.setFadadaTemplateId(contractConfigDO.getFadadaTemplateId());
|
||||
pushContractDTO.setSerialNumber(contractConfigDO.getSerialNumber());
|
||||
pushContractDTO.setPayeeName(contractConfigDO.getPayeeName());
|
||||
return pushContractDTO;
|
||||
}).collect(Collectors.toList()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
log.info("加盟合同审批时签约类型:{}", SignTypeEnum.getDescByCode(signFranchiseDO.getSignType()));
|
||||
Boolean sendNotice = Boolean.TRUE;
|
||||
|
||||
Reference in New Issue
Block a user