fixBug
This commit is contained in:
@@ -25,6 +25,7 @@ import com.cool.store.response.LicenseListResponse;
|
||||
import com.cool.store.response.SubmitLicenseResponse;
|
||||
import com.cool.store.service.ApplyLicenseService;
|
||||
import com.cool.store.service.CoolStoreStartFlowService;
|
||||
import com.cool.store.service.PreparationService;
|
||||
import com.cool.store.service.RegionService;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import com.cool.store.utils.poi.StringUtils;
|
||||
@@ -72,6 +73,9 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
@Resource
|
||||
ShopInfoMapper shopInfoMapper;
|
||||
|
||||
@Resource
|
||||
PreparationService preparationService;
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean submitLicense(SubmitLicenseRequest request) {
|
||||
@@ -185,6 +189,8 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
LicenseTransactDO licenseTransactDO = new LicenseTransactDO();
|
||||
licenseTransactDO.setShopId(shopId);
|
||||
if (status == Constants.ZERO_INTEGER) {
|
||||
//是否开业验收 改走的流程都已经完成 ->初始化开业验收数据
|
||||
preparationService.whetherToOpenForAcceptance(shopId);
|
||||
shopAuditInfoDO.setPassReason(result);
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_43;
|
||||
licenseTransactDO.setSubmitStatus(3);
|
||||
|
||||
@@ -106,7 +106,7 @@ public class AuditStatusServiceImpl implements AuditStatusService {
|
||||
if (Objects.nonNull(lineInterviewDO.getActualEndTime())){
|
||||
response.setEndTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, lineInterviewDO.getActualEndTime()));
|
||||
}
|
||||
if (Objects.nonNull(auditStatusDO.getCreateTime())){
|
||||
if (Objects.nonNull(auditStatusDO.getUpdateTime())){
|
||||
response.setCheckTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, auditStatusDO.getUpdateTime()));
|
||||
}
|
||||
response.setCheckUser(auditStatusDO.getAuditUserName());
|
||||
|
||||
@@ -420,13 +420,13 @@ public class SysStoreAppServiceImpl implements SysStoreAppService,AuditResultSer
|
||||
shopAuditInfoDO.setResultType(Constants.ZERO_INTEGER);
|
||||
shopAuditInfoDO.setPassReason(request.getCause());
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_33;
|
||||
//校验建店与加盟签约合同是否完成 并初始化后续流程数据
|
||||
preparationService.contractAndBuildStoreCompletion(shopId);
|
||||
}
|
||||
shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
|
||||
}catch (Exception e){
|
||||
throw new ServiceException(ErrorCodeEnum.UNKNOWN);
|
||||
}finally {
|
||||
//2.校验建店与加盟签约合同是否完成 并初始化后续流程数据
|
||||
preparationService.contractAndBuildStoreCompletion(shopId);
|
||||
//更新门店编码
|
||||
ShopInfoDO shopInfoDO = new ShopInfoDO();
|
||||
shopInfoDO.setId(shopId);
|
||||
|
||||
Reference in New Issue
Block a user