Browse Source

任务列表

master
DX 1 month ago
parent
commit
8f92976f57
  1. 8
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/taglibrary/TagLibraryController.java
  2. 8
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/inspectionslog/InspectionsLogServiceImpl.java
  3. 2
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java

8
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/taglibrary/TagLibraryController.java

@ -39,14 +39,14 @@ public class TagLibraryController {
@PostMapping("/create")
@Operation(summary = "创建企业标签")
@PreAuthorize("@ss.hasPermission('system:tag-library:create')")
// @PreAuthorize("@ss.hasPermission('system:tag-library:create')")
public CommonResult<Integer> createTagLibrary(@Valid @RequestBody TagLibrarySaveReqVO createReqVO) {
return success(tagLibraryService.createTagLibrary(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新企业标签")
@PreAuthorize("@ss.hasPermission('system:tag-library:update')")
// @PreAuthorize("@ss.hasPermission('system:tag-library:update')")
public CommonResult<Boolean> updateTagLibrary(@Valid @RequestBody TagLibrarySaveReqVO updateReqVO) {
tagLibraryService.updateTagLibrary(updateReqVO);
return success(true);
@ -55,7 +55,7 @@ public class TagLibraryController {
@DeleteMapping("/delete")
@Operation(summary = "删除企业标签")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('system:tag-library:delete')")
// @PreAuthorize("@ss.hasPermission('system:tag-library:delete')")
public CommonResult<Boolean> deleteTagLibrary(@RequestParam("id") Integer id) {
tagLibraryService.deleteTagLibrary(id);
return success(true);
@ -89,7 +89,7 @@ public class TagLibraryController {
@GetMapping("/childrenList")
// @Operation(summary = "获得标签分页")
@PreAuthorize("@ss.hasPermission('system:tag-library:query')")
// @PreAuthorize("@ss.hasPermission('system:tag-library:query')")
public CommonResult<List<TagLibraryRespVO>> childrenList(Long id) {
List<TagLibraryDO> pageResult = tagLibraryService.childrenList(id);
return success(BeanUtils.toBean(pageResult, TagLibraryRespVO.class));

8
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/inspectionslog/InspectionsLogServiceImpl.java

@ -327,6 +327,14 @@ public class InspectionsLogServiceImpl implements InspectionsLogService {
InspectionsLogDO updateObj = BeanUtils.toBean(createReqVO, InspectionsLogDO.class);
inspectionsLogMapper.insert(updateObj);
//todo 如果本次是通过, 查看该任务下所有任务时候已经通过, 如果全部都已经通过, 把任务状态修改成已结束
// final EnterpriseInspectionsDO enterpriseInspectionsDO1 = enterpriseInspectionsMapper.selectById(updateObj.getInspectionsId());
// if (enterpriseInspectionsDO1 == null) {
// throw exception(ENTERPRISE_INSPECTIONS_NOT_EXISTS);
// }
// enterpriseInspectionsDO1.setStatus(3);
// enterpriseInspectionsMapper.updateById(enterpriseInspectionsDO1);
List<SignInLogDO> signInLogDOS = signInLogMapper.selectList(new QueryWrapper<SignInLogDO>().eq("ins_id", inspectionsLogNew.getId()));
//插入图片

2
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java

@ -278,8 +278,6 @@ public class TaskInfoServiceImpl implements TaskInfoService {
final DeptDO deptDO = deptService.getByUserId(value);
item.setDeptName(deptDO.getName());
}
});
}

Loading…
Cancel
Save