bug修改提交

This commit is contained in:
liang.chao 2024-05-06 17:59:30 +08:00
parent d3ecfdeaa0
commit 25ad01ce71
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public class BackApplyController extends BaseController {
@PostMapping("getbackList")
public AjaxResult getbackList(@RequestBody BackApplyInfo record) {
try {
record.setCreateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
record.setCreateBy(SecurityUtils.getLoginUser().getUserid().toString());
List<BackApplyInfo> list = backApplyService.getbackList(record);
return success(list);
} catch (Exception e) {

View File

@ -171,8 +171,8 @@ public class BackApplyServiceImpl implements BackApplyService {
public int refuse(BackApplyInfo record) {
int num = 0;
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
String username = SecurityUtils.getLoginUser().getUsername();
record.setCreateBy(username);
Long userid = SecurityUtils.getLoginUser().getUserid();
record.setCreateBy(userid.toString());
if (roles.contains("jjfgs") || roles.contains("admin")) {
record.setStatus("2");
return backApplyMapper.refuse(record);