模拟证照数据

This commit is contained in:
guohb
2024-05-06 10:42:30 +08:00
parent a00f5fbd42
commit 66ac3fe475
4 changed files with 10 additions and 6 deletions

View File

@@ -14,4 +14,5 @@ public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);
LicenseTransactDO selectByShopId(@Param("shopId") Long shopId);
}

View File

@@ -42,4 +42,9 @@
</select>
<select id="selectByShopId" resultType="com.cool.store.entity.LicenseTransactDO">
select *
from xfsg_license_transact
where shop_id = #{shopId}
</select>
</mapper>

View File

@@ -51,11 +51,10 @@ public class KdzApiServiceImpl implements KdzApiService {
throw new ServiceException(ErrorCodeEnum.STORE_NUM_NOT_FOUND);
}
Long shopId = shopInfoDO.getId();
LicenseTransactDO licenseTransactDO = new LicenseTransactDO();
licenseTransactDO.setShopId(shopId);
// licenseTransactDO = applyLicenseMapper.selectOneByExample(licenseTransactDO);
//todo 测试
licenseTransactDO = applyLicenseMapper.select(licenseTransactDO).get(0);
LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectByShopId(shopId);
if (Objects.isNull(licenseTransactDO)){
throw new ServiceException(ErrorCodeEnum.LICENSE_NOT_EXIST);
}
LicenseApiResponse convertResp = convert(licenseTransactDO,storeNum);
return convertResp;
}

View File

@@ -2,7 +2,6 @@ package com.cool.store.controller.webb;
import com.cool.store.request.AuditFranchiseFeeRequest;
import com.cool.store.request.FranchiseFeeRequest;
import com.cool.store.request.SubmitLicenseRequest;
import com.cool.store.response.FranchiseFeeResponse;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.FranchiseFeeService;