|
@@ -20,10 +20,12 @@ import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.validation.BindingResult;
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -70,6 +72,14 @@ public class PmsProductController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("根据供应商选择生产地")
|
|
|
|
+ @GetMapping(value = "/plOfPro/select")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public CommonResult plOfProSelect(@RequestParam("compId") Long compId) {
|
|
|
|
+ List<SelectVo> plOfProSelect = productService.plOfProSelect(compId);
|
|
|
|
+ return CommonResult.success(plOfProSelect);
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation("查询商品")
|
|
@ApiOperation("查询商品")
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|