|
@@ -150,6 +150,55 @@ public class BackPolicyController {
|
|
|
}
|
|
|
|
|
|
private void checkDefaultDTO(GameBackPolicyDTO dto) {
|
|
|
+ if (dto.getFirstMinMoney() == null) {
|
|
|
+ throw new BaseException("参数错误(首充-小额判定金额(小于等于))!");
|
|
|
+ }
|
|
|
+ if (dto.getFirstMinMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(首充-小额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getFirstMinMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(首充-小额回传概率/比例)!");
|
|
|
+ }
|
|
|
+ if (dto.getFirstMaxMoney() == null) {
|
|
|
+ throw new BaseException("参数错误(首充-大额判定金额(大于等于))!");
|
|
|
+ }
|
|
|
+ if (dto.getFirstMaxMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(首充-大额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getFirstMaxMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(首充-大额回传概率/比例)!");
|
|
|
+ }
|
|
|
+ if (dto.getFirstOtherMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(首充-其它金额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getFirstOtherMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(首充-其它金额回传概率/比例)!");
|
|
|
+ }
|
|
|
+ if (dto.getRechargeMinMoney() == null) {
|
|
|
+ throw new BaseException("参数错误(次单-小额判定金额(小于等于))!");
|
|
|
+ }
|
|
|
+ if (dto.getRechargeMinMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(次单-小额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getRechargeMinMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(次单-小额回传概率/比例)!");
|
|
|
+ }
|
|
|
+ if (dto.getRechargeMaxMoney() == null) {
|
|
|
+ throw new BaseException("参数错误(次单-大额判定金额(大于等于))!");
|
|
|
+ }
|
|
|
+ if (dto.getRechargeMaxMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(次单-大额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getRechargeMaxMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(次单-大额回传概率/比例)!");
|
|
|
+ }
|
|
|
+ if (dto.getRechargeOtherMoneyType() == null) {
|
|
|
+ throw new BaseException("参数错误(次单-其它金额回传方式(概率/比例))!");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(dto.getRechargeOtherMoneyRate())) {
|
|
|
+ throw new BaseException("参数错误(次单-其它金额回传概率/比例)!");
|
|
|
+ }
|
|
|
+
|
|
|
BackUnitEnum backUnit = BackUnitEnum.getByValue(dto.getBackUnit());
|
|
|
if (backUnit == null) {
|
|
|
throw new BaseException("错误的回传单位:" + dto.getBackUnit());
|