feat:车俩管理bug修改
This commit is contained in:
1 parent
b354a9c1f1
commit
63ebf825a8
3 files changed
+5
-5
No files matched your search
-1
@@ -35,7 +35,6 @@ public class SysUserCarEntity extends Model<SysUserCarEntity> {
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = "用户ID")
|
||||
@NotNull(message = "用户ID不能为空")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
|
||||
+4
-4
@@ -27,7 +27,6 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 车辆管理
|
||||
@@ -52,17 +51,18 @@ public class SysUserCarController {
|
||||
/* ************************************* start app start ************************************* */
|
||||
|
||||
@PostMapping("/app/create")
|
||||
public void appCreateCar(@Validated @RequestBody SysUserCarDto dto) {
|
||||
public R appCreateCar(@Validated @RequestBody SysUserCarDto dto) {
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
dto.setUserId(user.getId());
|
||||
sysUserCarService.appCreateCar(dto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@PostMapping("/app/page")
|
||||
public void appCarPage(@ParameterObject Page page, @ParameterObject SysUserCarDto dto) {
|
||||
public R<Page<SysUserCarVo>> appCarPage(@ParameterObject Page page, @ParameterObject SysUserCarDto dto) {
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
dto.setUserId(user.getId());
|
||||
sysUserCarService.scopePageJoin(page, dto, null);
|
||||
return R.ok(sysUserCarService.scopePageJoin(page, dto, null));
|
||||
}
|
||||
|
||||
/* ************************************* end app end ************************************* */
|
||||
|
||||
+1
@@ -104,6 +104,7 @@ public class SysUserCarServiceImpl extends ServiceImpl<SysUserCarMapper, SysUser
|
||||
// 查询申请部门
|
||||
SysDept dept = deptService.getById(user.getDeptId());
|
||||
|
||||
dto.setProcessStatus(TaskCheckStatusEnum.PADDING.getCode());
|
||||
baseMapper.insert(dto);
|
||||
|
||||
// 创建审批
|
||||
|
||||
Reference in new issue
Block a user