支持自定义积分充值来源

This commit is contained in:
王鹏
2026-07-30 16:39:08 +08:00
parent 4bda30f9c2
commit 2bf0a6db59
2 changed files with 8 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import java.util.Date;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -99,7 +100,9 @@ public class AppIntegralRecordServiceImpl implements IAppIntegralRecordService
@Override
public int czAppIntegra(AppIntegralRecord appIntegralRecord) {
appIntegralRecord.setSource("充值积分");
if (StringUtils.isBlank(appIntegralRecord.getSource())) {
appIntegralRecord.setSource("充值积分");
}
appIntegralRecord.setIsAdd(0L);
appIntegralRecord.setIntegralTime(new Date());
int count = appIntegralRecordMapper.insertAppIntegralRecord(appIntegralRecord);