更新检测相关功能
This commit is contained in:
parent
1dd68ef79c
commit
bf216df437
@ -39,14 +39,14 @@ public class DlInspectionProjectController {
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建检测项目")
|
||||
@PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:create')")
|
||||
// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:create')")
|
||||
public CommonResult<String> createDlInspectionProject(@Valid @RequestBody DlInspectionProjectSaveReqVO createReqVO) {
|
||||
return success(dlInspectionProjectService.createDlInspectionProject(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新检测项目")
|
||||
@PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:update')")
|
||||
// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:update')")
|
||||
public CommonResult<Boolean> updateDlInspectionProject(@Valid @RequestBody DlInspectionProjectSaveReqVO updateReqVO) {
|
||||
dlInspectionProjectService.updateDlInspectionProject(updateReqVO);
|
||||
return success(true);
|
||||
@ -55,7 +55,7 @@ public class DlInspectionProjectController {
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除检测项目")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:delete')")
|
||||
// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:delete')")
|
||||
public CommonResult<Boolean> deleteDlInspectionProject(@RequestParam("id") String id) {
|
||||
dlInspectionProjectService.deleteDlInspectionProject(id);
|
||||
return success(true);
|
||||
@ -64,7 +64,7 @@ public class DlInspectionProjectController {
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得检测项目")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:query')")
|
||||
// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:query')")
|
||||
public CommonResult<DlInspectionProjectRespVO> getDlInspectionProject(@RequestParam("id") String id) {
|
||||
DlInspectionProject dlInspectionProject = dlInspectionProjectService.getDlInspectionProject(id);
|
||||
return success(BeanUtils.toBean(dlInspectionProject, DlInspectionProjectRespVO.class));
|
||||
|
@ -184,6 +184,7 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
|
||||
inspectionInfo.setStartTime(new Date());
|
||||
inspectionInfo.setCategoryId(goods.getGoodsCategoryId());
|
||||
inspectionInfo.setStatus("0");
|
||||
inspectionInfo.setWorkId(workerUser.getId());
|
||||
inspectionInfo.setYear(DateUtil.format(inspectionInfo.getStartTime(), "yyyy"));
|
||||
inspectionInfo.setMonth(DateUtil.format(inspectionInfo.getStartTime(), "yyyy-MM"));
|
||||
inspectionInfo.setDay(DateUtil.format(inspectionInfo.getStartTime(), "yyyy-MM-dd"));
|
||||
|
@ -93,7 +93,7 @@ public class InspectionWorkNodeServiceImpl extends ServiceImpl<InspectionWorkNod
|
||||
//选择重审
|
||||
retrial(inspectionWorkNode);
|
||||
return;
|
||||
case 3:
|
||||
default:
|
||||
//项目完成
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user