立即支付分成
This commit is contained in:
parent
8eea1a9ba5
commit
2aff1af796
|
@ -153,4 +153,9 @@ public interface BonusService
|
||||||
* 查询待分成金额,以到账方分组统计
|
* 查询待分成金额,以到账方分组统计
|
||||||
*/
|
*/
|
||||||
List<LongDecimalVO> selectWaitAmountGroupByArrival(BonusQuery query);
|
List<LongDecimalVO> selectWaitAmountGroupByArrival(BonusQuery query);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID支付分成
|
||||||
|
*/
|
||||||
|
int payBonusById(Long id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -416,6 +416,12 @@ public class BonusServiceImpl implements BonusService
|
||||||
return bonusMapper.selectWaitAmountGroupByArrival(query);
|
return bonusMapper.selectWaitAmountGroupByArrival(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int payBonusById(Long id) {
|
||||||
|
BonusVO bonus = this.selectBonusById(id);
|
||||||
|
return this.payBonus(bonus);
|
||||||
|
}
|
||||||
|
|
||||||
private int batchUpdateAmount(List<BonusVO> list) {
|
private int batchUpdateAmount(List<BonusVO> list) {
|
||||||
if (CollectionUtils.isEmptyElement(list)) {
|
if (CollectionUtils.isEmptyElement(list)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -82,4 +82,11 @@ public class BonusController extends BaseController
|
||||||
return success(bonusService.selectBonusById(id));
|
return success(bonusService.selectBonusById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "支付分成", businessType = BusinessType.OTHER)
|
||||||
|
@PreAuthorize("@ss.hasPermi('ss:bonus:pay')")
|
||||||
|
@PutMapping("/{id}/pay")
|
||||||
|
public AjaxResult pay(@PathVariable Long id) {
|
||||||
|
return toAjax(bonusService.payBonusById(id));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user