| | |
| | | import com.zt.life.modules.contractReview.service.ContractReviewService; |
| | | import com.zt.life.modules.itemCirculatOrder.dto.ItemCirculatOrderDto; |
| | | import com.zt.life.modules.itemCirculatOrder.service.ItemCirculatOrderService; |
| | | import com.zt.life.sys.dto.OssDto; |
| | | import com.zt.life.sys.service.SysOssConfigService; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @Autowired |
| | | private SysCodeRuleService sysCodeRuleService; |
| | | |
| | | @Autowired |
| | | private SysOssConfigService sysOssConfigService; |
| | | |
| | | @GetMapping("page") |
| | | @ApiOperation("分页") |
| | | @ApiImplicitParams({ |
| | |
| | | @ApiImplicitParam(name = Constant.Q.LIMIT, value = Constant.QV.LIMIT, required = true, dataType = Constant.QT.INT), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER_FIELD, value = Constant.QV.ORDER_FIELD, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER, value = Constant.QV.ORDER, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = "reviewPhase", value = "评审阶段", dataType = Constant.QT.STRING, format = "a.review_phase^EQ"), |
| | | @ApiImplicitParam(name = "softwareName", value = "物品名称", dataType = Constant.QT.STRING, format = "p.software_name^EQ"), |
| | | @ApiImplicitParam(name = "softwareIdentity", value = "物品编号", dataType = Constant.QT.STRING, format = "p.software_identity^EQ") |
| | | }) |
| | | @ApiImplicitParam(name = "reviewType", value = "评审阶段", dataType = Constant.QT.STRING, format = "a.review_phase^EQ"), |
| | | @ApiImplicitParam(name = "orderCode", value = "委托单编号", dataType = Constant.QT.STRING, format = "s.code^EQ"), |
| | | }) |
| | | public PageResult<ContractReview> page(@ApiIgnore @QueryParam QueryFilter queryFilter){ |
| | | return PageResult.ok(contractReviewService.page(queryFilter)); |
| | | } |
| | |
| | | @ApiOperation("信息") |
| | | public Result<ContractReviewDto> getDto(Long projectId, Long reviewId) { |
| | | ContractReviewDto data = contractReviewService.getDto(projectId, reviewId); |
| | | if (reviewId!=null) { |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(reviewId, "contract_review"); |
| | | if (ossDto != null) { |
| | | data.setFiles(ossDto); |
| | | } |
| | | } |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | /* @GetMapping("exportReview") |
| | | @GetMapping("exportReview") |
| | | @ApiOperation("打印合同评审单") |
| | | @LogOperation("打印合同评审单") |
| | | public void exportReview(Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | contractReviewService.exportReview(id, request, response); |
| | | }*/ |
| | | } |
| | | |
| | | } |