奖惩流程接口修改, 增加返回参数

This commit is contained in:
furongxin 2024-05-09 10:11:57 +08:00
parent 58ac007a09
commit 2ecac1a3f6
3 changed files with 19 additions and 0 deletions

View File

@ -9,6 +9,8 @@ import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Collection;
@ -46,6 +48,10 @@ public interface DeptApi {
@Operation(summary = "获取所有部门信息")
CommonResult<List<DeptRespDTO>> getDeptList();
@PostMapping(PREFIX + "/create")
@Operation(summary = "获取所有部门信息")
CommonResult<Long> createDept(@RequestBody DeptRespDTO deptRespDTO);
/**
* 获得指定编号的部门 Map
*

View File

@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission;
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptSaveReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.system.service.dept.DeptService;
import org.springframework.validation.annotation.Validated;
@ -61,4 +62,12 @@ public class DeptApiImpl implements DeptApi {
return success(BeanUtils.toBean(deptDOs, DeptRespDTO.class));
}
@Override
public CommonResult<Long> createDept(DeptRespDTO deptRespDTO) {
DeptSaveReqVO deptSaveReqVO = BeanUtils.toBean(deptRespDTO, DeptSaveReqVO.class);
return null;
}
}

View File

@ -52,6 +52,10 @@ public class DeptDO extends TenantBaseDO {
* 关联 {@link AdminUserDO#getId()}
*/
private Long leaderUserId;
/**
* 工厂编号
*/
private Long factoryId;
/**
* 联系电话
*/