Commit ca3a955e80280661d80ef40972009f1852604f0a

Authored by 杨鸣坤
1 parent d611b646

楚江ERP:接口调整

... ... @@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.*;
48 48 import javax.validation.Valid;
49 49 import javax.validation.constraints.NotBlank;
50 50 import java.util.ArrayList;
  51 +import java.util.Arrays;
51 52 import java.util.List;
52 53 import java.util.Map;
53 54 import java.util.function.Function;
... ... @@ -393,12 +394,13 @@ public class ContractDistributorStandardController extends DefaultBaseController
393 394 @ApiOperation("获取具体质量要求")
394 395 @GetMapping("/getCustomerSpecificQualityRequirements")
395 396 public InvokeResult<GetContractDistributorStandardBo> getCustomerSpecificQualityRequirements(
396   - @RequestParam String customerId, @RequestParam List<String> productIdList) {
397   - if (CollectionUtils.isEmpty(productIdList)) {
  397 + @RequestParam String customerId, @RequestParam String productIdList) {
  398 + if (StringUtils.isEmpty(productIdList)) {
398 399 throw new DefaultClientException("产品信息不可为空");
399 400 }
400 401
401   - ContractDistributorStandard contractDistributorStandard = contractDistributorStandardService.getCustomerSpecificQualityRequirements(customerId, productIdList);
  402 + ContractDistributorStandard contractDistributorStandard =
  403 + contractDistributorStandardService.getCustomerSpecificQualityRequirements(customerId, Arrays.asList(productIdList.split(",")));
402 404 if (contractDistributorStandard == null) {
403 405 return InvokeResultBuilder.success(new GetContractDistributorStandardBo());
404 406 }
... ...