临时提交
This commit is contained in:
parent
b8d3f2fc7c
commit
a08bb65830
|
@ -211,5 +211,5 @@ public class SmUser extends BaseEntity
|
|||
|
||||
@Excel(name = "到账延迟时间", readConverterExp = "小=时")
|
||||
@ApiModelProperty("到账延迟时间")
|
||||
private Long arrivalDelay;
|
||||
private Integer arrivalDelay;
|
||||
}
|
||||
|
|
|
@ -291,19 +291,6 @@ public class SysConfigServiceImpl implements ISysConfigService
|
|||
return result == null ? 0 : result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(ConfigKey key) {
|
||||
String s = this.selectConfigByKey(key.getKey());
|
||||
if (StringUtils.isBlank(s)) {
|
||||
return 0;
|
||||
}
|
||||
try {
|
||||
return Integer.parseInt(s);
|
||||
} catch (Exception e) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置cache key
|
||||
*
|
||||
|
|
|
@ -25,6 +25,7 @@ import com.ruoyi.ss.recordBalance.domain.enums.RecordBalanceBstType;
|
|||
import com.ruoyi.ss.store.service.StoreService;
|
||||
import com.ruoyi.ss.user.domain.SmUserVo;
|
||||
import com.ruoyi.ss.user.service.ISmUserService;
|
||||
import com.ruoyi.ss.user.service.UserAssembler;
|
||||
import com.ruoyi.system.domain.enums.config.ConfigKey;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
|
@ -64,6 +65,9 @@ public class BonusServiceImpl implements BonusService
|
|||
@Autowired
|
||||
private ISysConfigService sysConfigService;
|
||||
|
||||
@Autowired
|
||||
private UserAssembler userAssembler;
|
||||
|
||||
/**
|
||||
* 查询分成明细
|
||||
*
|
||||
|
@ -197,6 +201,9 @@ public class BonusServiceImpl implements BonusService
|
|||
.map(BonusVO::getArrivalId)
|
||||
.collect(Collectors.toList())
|
||||
);
|
||||
// TODO 拼接用户实际到账延迟
|
||||
|
||||
|
||||
// 获取全局配置,默认延迟到账时间
|
||||
int defaultDelay = sysConfigService.getInt(ConfigKey.ARRIVAL_DELAY);
|
||||
|
||||
|
@ -213,6 +220,8 @@ public class BonusServiceImpl implements BonusService
|
|||
// TODO 预计分成时间
|
||||
if (BonusArrivalType.userList().contains(bonus.getArrivalType())) {
|
||||
SmUserVo user = userList.stream().filter(item -> item.getUserId().equals(bonus.getArrivalId())).findFirst().orElse(null);
|
||||
|
||||
this.getArrivalDelay(user);
|
||||
// bonus.setPrePayTime();
|
||||
} else {
|
||||
bonus.setPrePayTime(now);
|
||||
|
|
Loading…
Reference in New Issue
Block a user