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
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
......@@ -34,9 +32,9 @@ public class TzBaseUnitLicenceController {
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/licences", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据企业名称查询许可信息", notes = "根据企业名称查询许可信息")
public ResponseModel<List<TzBaseUnitLicence>> getLicenceByCompanyName(List<String> companyNames) {
@RequestMapping(value = "/licences", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "根据企业名称查询许可信息", notes = "根据企业名称查询许可信息")
public ResponseModel<List<TzBaseUnitLicence>> getLicenceByCompanyName(@RequestBody List<String> companyNames) {
return ResponseHelper.buildResponse(baseUnitLicenceService.getLicenceByCompanyName(companyNames));
}
}
......@@ -20,6 +20,6 @@ public interface TzsServiceFeignClient {
* @param companyNames 企业名称(多个)
* @return
*/
@RequestMapping(value = "/baseUnitLicence/licences", method = RequestMethod.GET)
ResponseModel<List<UnitLicence>> getLicenceByCompanyName(@RequestParam List<String> companyNames);
@RequestMapping(value = "/baseUnitLicence/licences", method = RequestMethod.POST)
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