Commit f29dd22a by guojuxing

提现申请返回流水单号

parent f0d4f40b
......@@ -20,9 +20,9 @@ public interface CashWithdrawalApiService {
* @Description:

 * @author guojuxing
* @param dto

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>

* @return com.gic.api.base.commons.ServiceResponse<java.lang.String>
提现申请单号

 */
ServiceResponse<Void> cashWithdrawalOfServiceProvider(CashWithdrawalDTO dto);
ServiceResponse<String> cashWithdrawalOfServiceProvider(CashWithdrawalDTO dto);
/**
* 提现申请--供应商
......@@ -30,9 +30,9 @@ public interface CashWithdrawalApiService {
* @Description:

 * @author guojuxing
* @param dto

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>

* @return com.gic.api.base.commons.ServiceResponse<java.lang.String>
提现申请单号

 */
ServiceResponse<Void> cashWithdrawalOfSupplier(CashWithdrawalDTO dto);
ServiceResponse<String> cashWithdrawalOfSupplier(CashWithdrawalDTO dto);
/**
* 审核通过
......
......@@ -39,7 +39,7 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{
* @param dto

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */
private ServiceResponse<Void> cashWithdrawal(CashWithdrawalDTO dto) {
private ServiceResponse<String> cashWithdrawal(CashWithdrawalDTO dto) {
ServiceResponse paramValid = ValidParamsUtils.allCheckValidate(dto, CashWithdrawalDTO.CashWithdrawal.class);
if (!paramValid.isSuccess()) {
return paramValid;
......@@ -50,17 +50,17 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{
//流水号
dto.setCashWithdrawalSerialNumber(CreateSerialNumberUtils.createSerialNumber());
cashWithdrawalService.save(dto);
return ServiceResponse.success();
return ServiceResponse.success(dto.getCashWithdrawalSerialNumber());
}
@Override
public ServiceResponse<Void> cashWithdrawalOfServiceProvider(CashWithdrawalDTO dto) {
public ServiceResponse<String> cashWithdrawalOfServiceProvider(CashWithdrawalDTO dto) {
dto.setApplyType(WithdrawalApplyTypeEnum.SERVICE_PROVIDER.getCode());
return cashWithdrawal(dto);
}
@Override
public ServiceResponse<Void> cashWithdrawalOfSupplier(CashWithdrawalDTO dto) {
public ServiceResponse<String> cashWithdrawalOfSupplier(CashWithdrawalDTO dto) {
dto.setApplyType(WithdrawalApplyTypeEnum.SUPPLIER.getCode());
return cashWithdrawal(dto);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment