|
|
|
@ -8,6 +8,7 @@ import com.ruoyi.common.exception.ServiceException;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ProjectExcelUtil;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ProjectValueUtil;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.vo.BmsApprovalInfoQueryVo;
|
|
|
|
|
import com.ruoyi.jjh.ent.entity.JProject;
|
|
|
|
|
import com.ruoyi.jjh.ent.entity.request.JProjectExcel;
|
|
|
|
|
import com.ruoyi.jjh.ent.service.JProjectService;
|
|
|
|
@ -70,9 +71,22 @@ public class JProjectController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "通过主键查询单条项目", response = JProject.class)
|
|
|
|
|
@GetMapping("{id}")
|
|
|
|
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
|
|
|
|
return success(this.jProjectService.getById(id));
|
|
|
|
|
return success(jProjectService.getById(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过主键查询该项目的在线流程
|
|
|
|
|
*
|
|
|
|
|
* @param id 主键
|
|
|
|
|
* @return 单条数据
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "通过主键查询该项目的在线流程", response = BmsApprovalInfoQueryVo.class)
|
|
|
|
|
@GetMapping("/declarationRecordsId/{id}")
|
|
|
|
|
public AjaxResult getApprovalInfoList(@PathVariable Serializable id) {
|
|
|
|
|
return success(jProjectService.getApprovalInfoList(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增数据
|
|
|
|
|
*
|
|
|
|
@ -82,7 +96,7 @@ public class JProjectController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "新增项目")
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult insert(@RequestBody JProject jProject) {
|
|
|
|
|
return success(this.jProjectService.save(jProject));
|
|
|
|
|
return success(jProjectService.save(jProject));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -94,7 +108,7 @@ public class JProjectController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "修改项目")
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult update(@RequestBody JProject jProject) {
|
|
|
|
|
return success(this.jProjectService.updateById(jProject));
|
|
|
|
|
return success(jProjectService.updateById(jProject));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -106,7 +120,7 @@ public class JProjectController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "删除项目")
|
|
|
|
|
@DeleteMapping
|
|
|
|
|
public AjaxResult delete(@RequestParam("id") Long id) {
|
|
|
|
|
return success(this.jProjectService.removeById(id));
|
|
|
|
|
return success(jProjectService.removeById(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|