| | |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.life.modules.project.dto.EnvironDto; |
| | | import com.zt.life.modules.project.dto.SoftwareTestOrderDto; |
| | | import com.zt.life.modules.project.service.ProjectService; |
| | | import com.zt.life.modules.testCheckOrder.dto.CheckOrderDto; |
| | | import com.zt.life.modules.testCheckOrder.model.TestCheckOrder; |
| | | import com.zt.life.modules.testCheckOrder.service.TestCheckOrderService; |
| | |
| | | private TestCheckOrderService testCheckOrderService; |
| | | |
| | | @Autowired |
| | | private ProjectService projectService; |
| | | |
| | | @Autowired |
| | | private SysCodeRuleService sysCodeRuleService; |
| | | |
| | | @GetMapping("page") |
| | |
| | | @ApiImplicitParam(name = "softwareName", value = "项目名称", dataType = Constant.QT.STRING, format = "p.software_name^LK"), |
| | | @ApiImplicitParam(name = "pageCode", value = "配置项标识", dataType = Constant.QT.STRING, format = "a.page_code^LK")}) |
| | | public PageResult<TestCheckOrder> page(@ApiIgnore @QueryParam QueryFilter queryFilter) { |
| | | List<TestCheckOrder> testCheckOrder =testCheckOrderService.page(queryFilter); |
| | | List<TestCheckOrder> testCheckOrder = testCheckOrderService.page(queryFilter); |
| | | return PageResult.ok(testCheckOrder); |
| | | } |
| | | |
| | |
| | | //效验数据 |
| | | AssertUtils.isArrayEmpty(ids, "id"); |
| | | testCheckOrderService.delete(ids); |
| | | projectService.deleteItem(ids,"test_check_order_list","check_order_id"); |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | /*@GetMapping("exportCheckOrder") |
| | | @ApiOperation("打印测试环境建立确认表") |
| | | @LogOperation("打印测试环境建立确认表") |
| | | public void exportEnviron(Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | environService.exportEnviron(id, request, response); |
| | | }*/ |
| | | @GetMapping("exportCheckOrder") |
| | | @ApiOperation("打印检查单") |
| | | @LogOperation("打印检查单") |
| | | public void exportCheckOrder(Long id, String pageCode, HttpServletRequest request, HttpServletResponse response) { |
| | | testCheckOrderService.exportCheckOrder(id,pageCode, request, response); |
| | | } |
| | | } |