| | |
| | | @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 = "code", value = "编号", dataType = Constant.QT.STRING, format = "code^LK"), @ApiImplicitParam(name = "softwareidentity", value = "项目标识", dataType = Constant.QT.STRING, format = "softwareIdentity^LK"), @ApiImplicitParam(name = "softwarename", value = "项目名称", dataType = Constant.QT.STRING, format = "softwareName^LK") }) |
| | | @ApiImplicitParam(name = "code", value = "编号", dataType = Constant.QT.STRING, format = "code^LK"), |
| | | @ApiImplicitParam(name = "softwareidentity", value = "项目标识", dataType = Constant.QT.STRING, format = "softwareIdentity^LK"), @ApiImplicitParam(name = "softwarename", value = "项目名称", dataType = Constant.QT.STRING, format = "softwareName^LK")}) |
| | | public PageResult<TestCheckOrder> page(@ApiIgnore @QueryParam QueryFilter queryFilter){ |
| | | |
| | | return PageResult.ok(testCheckOrderService.page(queryFilter)); |
| | | } |
| | | |
| | | @GetMapping("getDto") |
| | | @ApiOperation("信息") |
| | | public Result<CheckOrderDto> getDto(Long checkId, Long projectId,String itemType) { |
| | | CheckOrderDto data = testCheckOrderService.getDto(checkId, projectId,itemType); |
| | | public Result<CheckOrderDto> getDto(Long checkId, Long projectId, String pageCode) { |
| | | CheckOrderDto data = testCheckOrderService.getDto(checkId, projectId, pageCode); |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(checkOrderDto, AddGroup.class, DefaultGroup.class); |
| | | Map<String, String> map = new HashMap<>(); |
| | | map.put("funCode", "test_check_order"); |
| | | String pagecode = checkOrderDto.getPageCode(); |
| | | map.put("funCode", "test_check_order"+pagecode); |
| | | map.put("projectId",checkOrderDto.getProjectId().toString()); |
| | | checkOrderDto.getCheckOrder().setCode(sysCodeRuleService.getNewCode(map)); |
| | | Boolean result = testCheckOrderService.save(checkOrderDto); |