Commit df411483 by guojuxing

白名单

parent 0642a9db
package com.gic.finance.web.controller; package com.gic.finance.web.controller;
import com.gic.enterprise.service.EnterpriseApiService;
import com.gic.finance.web.vo.EnterpriseInfoOfSelectVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -18,6 +20,8 @@ public class EnterpriseWhiteListController { ...@@ -18,6 +20,8 @@ public class EnterpriseWhiteListController {
@Autowired @Autowired
private EnterpriseWhiteListApiService enterpriseWhiteListApiService; private EnterpriseWhiteListApiService enterpriseWhiteListApiService;
@Autowired
private EnterpriseApiService enterpriseApiService;
@RequestMapping("/save-white-list") @RequestMapping("/save-white-list")
...@@ -25,6 +29,12 @@ public class EnterpriseWhiteListController { ...@@ -25,6 +29,12 @@ public class EnterpriseWhiteListController {
return ResultControllerUtils.commonResult(enterpriseWhiteListApiService.saveEnterpriseWhiteList(enterpriseId)); return ResultControllerUtils.commonResult(enterpriseWhiteListApiService.saveEnterpriseWhiteList(enterpriseId));
} }
@RequestMapping("/list-enterprise-by-name")
public RestResponse listEnterpriseByName(String search) {
return ResultControllerUtils.commonResult(enterpriseApiService.listEnterpriseByName(search),
EnterpriseInfoOfSelectVO.class);
}
@RequestMapping("/remove-white-list") @RequestMapping("/remove-white-list")
public RestResponse removeWhiteList(Integer enterpriseId) { public RestResponse removeWhiteList(Integer enterpriseId) {
return ResultControllerUtils.commonResult(enterpriseWhiteListApiService.removeEnterpriseWhiteList(enterpriseId)); return ResultControllerUtils.commonResult(enterpriseWhiteListApiService.removeEnterpriseWhiteList(enterpriseId));
......
package com.gic.finance.web.vo;
import java.io.Serializable;
public class EnterpriseInfoOfSelectVO implements Serializable{
private static final long serialVersionUID = -1757627270407759229L;
private Integer enterpriseId;
private String enterpriseName;
private String companyName;
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getEnterpriseName() {
return enterpriseName;
}
public void setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
}
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