Commit bb95b11c authored by zhangyingbin's avatar zhangyingbin

修改 根据企业名称查询许可信息接口

parent 762ae536
...@@ -7,11 +7,9 @@ import com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzBaseUnitLicenceServic ...@@ -7,11 +7,9 @@ import com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzBaseUnitLicenceServic
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...@@ -34,9 +32,9 @@ public class TzBaseUnitLicenceController { ...@@ -34,9 +32,9 @@ public class TzBaseUnitLicenceController {
* @return * @return
*/ */
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/licences", method = RequestMethod.GET) @RequestMapping(value = "/licences", method = RequestMethod.POST)
@ApiOperation(httpMethod = "GET", value = "根据企业名称查询许可信息", notes = "根据企业名称查询许可信息") @ApiOperation(httpMethod = "POST", value = "根据企业名称查询许可信息", notes = "根据企业名称查询许可信息")
public ResponseModel<List<TzBaseUnitLicence>> getLicenceByCompanyName(List<String> companyNames) { public ResponseModel<List<TzBaseUnitLicence>> getLicenceByCompanyName(@RequestBody List<String> companyNames) {
return ResponseHelper.buildResponse(baseUnitLicenceService.getLicenceByCompanyName(companyNames)); return ResponseHelper.buildResponse(baseUnitLicenceService.getLicenceByCompanyName(companyNames));
} }
} }
...@@ -20,6 +20,6 @@ public interface TzsServiceFeignClient { ...@@ -20,6 +20,6 @@ public interface TzsServiceFeignClient {
* @param companyNames 企业名称(多个) * @param companyNames 企业名称(多个)
* @return * @return
*/ */
@RequestMapping(value = "/baseUnitLicence/licences", method = RequestMethod.GET) @RequestMapping(value = "/baseUnitLicence/licences", method = RequestMethod.POST)
ResponseModel<List<UnitLicence>> getLicenceByCompanyName(@RequestParam List<String> companyNames); ResponseModel<List<UnitLicence>> getLicenceByCompanyName(@RequestBody List<String> companyNames);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment