查询当前用户帐分 admin账户数组越界处理

部门添加失败问题处理
This commit is contained in:
wangshuai 2024-07-13 19:00:33 +08:00
parent 6ed49f6cab
commit 1e42b0ded6
2 changed files with 13 additions and 4 deletions

View File

@ -83,10 +83,19 @@ public class BusStoreInfoController extends BaseController {
@GetMapping("/getNowIntegral") @GetMapping("/getNowIntegral")
public AjaxResult getNowIntegral() { public AjaxResult getNowIntegral() {
String username = SecurityUtils.getLoginUser().getUsername();
if("admin".equals(username)){
return AjaxResult.success("-");
}
BusAgentInfo info = new BusAgentInfo(); BusAgentInfo info = new BusAgentInfo();
info.setAgentAccount(SecurityUtils.getLoginUser().getUsername()); info.setAgentAccount(SecurityUtils.getLoginUser().getUsername());
BusAgentInfo temp = agentInfoService.selectBusAgentInfoList(info).get(0); info.setDelStatus("1");
return AjaxResult.success(temp.getAiDurationBalance()); List<BusAgentInfo> list = agentInfoService.selectBusAgentInfoList(info);
if(list.size() == 1){
BusAgentInfo temp = agentInfoService.selectBusAgentInfoList(info).get(0);
return AjaxResult.success(temp.getAiDurationBalance());
}
throw new ServiceException("查询代理人积分异常!");
} }
@ApiOperation("查询店铺信息列表") @ApiOperation("查询店铺信息列表")

View File

@ -133,9 +133,9 @@
> >
<el-option <el-option
v-for="dict in deptList" v-for="dict in deptList"
:key="dict.id" :key="dict.deptId"
:label="dict.deptName+' '+dict.deptId" :label="dict.deptName+' '+dict.deptId"
:value="dict.id" :value="dict.deptId"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>