模拟证照数据
This commit is contained in:
@@ -14,4 +14,5 @@ public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
|
||||
|
||||
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);
|
||||
|
||||
LicenseTransactDO selectByShopId(@Param("shopId") Long shopId);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user