| | |
| | | import com.zt.common.validator.group.DefaultGroup; |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.life.modules.project.dto.SoftwareTestOrderDto; |
| | | import com.zt.life.modules.project.model.Project; |
| | | import com.zt.life.modules.project.model.SoftwareTestOrder; |
| | | import com.zt.life.modules.project.model.SoftwareTestOrderDeliverable; |
| | | import com.zt.life.modules.project.model.SoftwareTestOrderMeasured; |
| | | import com.zt.life.modules.project.service.ProjectService; |
| | | import com.zt.life.modules.project.service.SoftwareTestOrderDeliverableService; |
| | | import com.zt.life.modules.project.service.SoftwareTestOrderMeasuredService; |
| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | |
| | | /** |
| | |
| | | @GetMapping("getDto") |
| | | @ApiOperation("信息") |
| | | public Result<SoftwareTestOrderDto> getDto(Long projectId,Long orderId) { |
| | | SoftwareTestOrderDto data = softwareTestOrderService.getDto(orderId, projectId); |
| | | SoftwareTestOrderDto data = softwareTestOrderService.getDto(projectId, orderId); |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @DeleteMapping("deleteOrder") |
| | | @ApiOperation("删除") |
| | | @LogOperation("删除") |
| | | public Result delete(@RequestBody Long[] ids) { |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @GetMapping("exportWord/{id}") |
| | | @GetMapping("exportWord") |
| | | @ApiOperation("打印测试委托单") |
| | | @LogOperation("打印测试委托单") |
| | | public void exportWord(@PathVariable("id") Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | public void exportWord(Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | softwareTestOrderService.exportWord(id, request, response); |
| | | } |
| | | } |