package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.ProductLockLog;
|
import com.whyc.service.ProductLockLogService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
@Api(tags = "产品锁定日志")
|
@RestController
|
@RequestMapping("productLockLog")
|
public class ProductLockLogController {
|
|
@Autowired
|
private ProductLockLogService service;
|
|
@ApiOperation("查询列表-根据母料编码和定制表单号")
|
@GetMapping("listByParentCodeAndCustomCode")
|
public Response getListByParentCodeAndCustomCode(@RequestParam String parentCode,@RequestParam String customCode){
|
List<ProductLockLog> lockLogList = service.getListByParentCodeAndCustomCode(parentCode,customCode);
|
return new Response().set(1,lockLogList);
|
}
|
|
}
|