Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -190,7 +190,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
submitLicenseResponse.setLicenseLegalPerson(storeDocument.getStoreDirector());
|
||||
submitLicenseResponse.setIssueTime(DateUtil.parseDate(storeDocument.getStoreBusinessDate()));
|
||||
submitLicenseResponse.setLicenseAddress(storeDocument.getStoreBusinessAdd());
|
||||
submitLicenseResponse.setValidity(storeBusinessValidPeriod ? null : DateUtil.parseTime(storeDocument.getStoreBusinessValidPeriod()));
|
||||
submitLicenseResponse.setValidity(storeBusinessValidPeriod ? null : DateUtil.parse(storeDocument.getStoreBusinessValidPeriod(),"yyyy-MM-dd"));
|
||||
submitLicenseResponse.setValidityType(storeBusinessValidPeriod ? 0 : 1);
|
||||
submitLicenseResponse.setOperator(storeDocument.getStoreDirector());
|
||||
submitLicenseResponse.setFoodLicenseLegalPerson(storeDocument.getStoreFoodLicenseLegalRepresentative());
|
||||
|
||||
@@ -59,6 +59,10 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
||||
franchiseFeeDO.setId(request.getId());
|
||||
franchiseFeeMapper.updateByPrimaryKeySelective(franchiseFeeDO);
|
||||
} else {
|
||||
FranchiseFeeDO isExist = franchiseFeeMapper.selectByShopId(request.getShopId());
|
||||
if (Objects.nonNull(isExist)){
|
||||
throw new ServiceException(ErrorCodeEnum.UNISSUED_STATEMENT_2);
|
||||
}
|
||||
franchiseFeeMapper.insertSelective(franchiseFeeDO);
|
||||
}
|
||||
ShopInfoDO shopInfoDO = shopInfoMapper.selectByPrimaryKey(request.getShopId());
|
||||
|
||||
Reference in New Issue
Block a user