init
This commit is contained in:
@@ -9,7 +9,9 @@ import com.ruoyi.cai.dto.app.vo.AgreementDTO;
|
||||
import com.ruoyi.cai.dto.app.vo.GiftVo;
|
||||
import com.ruoyi.cai.dto.app.vo.setting.SettingGoodsVo;
|
||||
import com.ruoyi.cai.dto.app.vo.setting.WithdrawExchangeVo;
|
||||
import com.ruoyi.cai.dto.commom.setting.CateSelectVo;
|
||||
import com.ruoyi.cai.enums.SystemConfigEnum;
|
||||
import com.ruoyi.cai.enums.account.AccountCateEnum;
|
||||
import com.ruoyi.cai.manager.SystemConfigManager;
|
||||
import com.ruoyi.cai.service.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
@@ -23,6 +25,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@@ -80,6 +83,19 @@ public class SettingAppController {
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/accountDetail/type")
|
||||
@Operation(summary = "账户明细类型")
|
||||
@Log(title = "账户明细类型", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<List<CateSelectVo>> accountDetailType(){
|
||||
List<CateSelectVo> vo = new ArrayList<>();
|
||||
AccountCateEnum[] values = AccountCateEnum.values();
|
||||
vo.add(new CateSelectVo(0,"全部"));
|
||||
for (AccountCateEnum value : values) {
|
||||
vo.add(new CateSelectVo(value.getCode(),value.getText()));
|
||||
}
|
||||
return R.ok(vo);
|
||||
}
|
||||
|
||||
@GetMapping("/gift")
|
||||
@Operation(summary = "礼物配置")
|
||||
@Log(title = "礼物配置", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
|
||||
@@ -55,7 +55,7 @@ public class WalletController {
|
||||
@Operation(summary = "账户明细-分页")
|
||||
@Log(title = "账户明细", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<List<AccountDetailsAppVo>> accountDetail(PageQuery query,
|
||||
@Parameter(description = "类型 0-普通会员 1-超级会员") Integer cateId){
|
||||
@Parameter(description = "类型(接口在 设置相关接口-账户明细类型)") Integer cateId){
|
||||
Long userId = LoginHelper.getUserId();
|
||||
List<AccountDetailsAppVo> res = accountChangeLogService.pageApp(query,cateId,userId);
|
||||
return R.ok(res);
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.ruoyi.cai.dto.commom.setting;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CateSelectVo {
|
||||
private Integer cateId;
|
||||
private String text;
|
||||
|
||||
public CateSelectVo(Integer cateId, String text) {
|
||||
this.cateId = cateId;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public CateSelectVo() {
|
||||
}
|
||||
}
|
||||
@@ -135,6 +135,9 @@ public class AccountChangeLogServiceImpl extends ServiceImpl<AccountChangeLogMap
|
||||
|
||||
@Override
|
||||
public List<AccountDetailsAppVo> pageApp(PageQuery query, Integer cateId, Long userId) {
|
||||
if(cateId == 0){
|
||||
cateId = null;
|
||||
}
|
||||
Page<AccountChangeLog> page = this.page(query.build(),
|
||||
Wrappers.lambdaQuery(AccountChangeLog.class)
|
||||
.eq(AccountChangeLog::getUserId,userId)
|
||||
|
||||
Reference in New Issue
Block a user