Browse Source

Merge remote-tracking branch 'origin/dev-customerfunction' into dev_temp

master
zhangyongzhangyong 5 years ago
parent
commit
f438a54e73
  1. 22
      epmet-module/gov-access/gov-access-client/src/main/java/com/epmet/dto/form/MenuFormDTO.java
  2. 9
      epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/controller/GovCustomerMenuController.java

22
epmet-module/gov-access/gov-access-client/src/main/java/com/epmet/dto/form/MenuFormDTO.java

@ -0,0 +1,22 @@
package com.epmet.dto.form;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;
/**
* 菜单基础入参
*/
@Data
public class MenuFormDTO implements Serializable {
private static final long serialVersionUID = -2898130727929596798L;
/**
* gov_menu表主键
*/
@NotBlank(message = "菜单ID不能为空")
private String tableId;
}

9
epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/controller/GovCustomerMenuController.java

@ -28,6 +28,7 @@ import com.epmet.commons.tools.validator.group.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.GovCustomerMenuDTO;
import com.epmet.dto.form.MenuConfigFormDTO;
import com.epmet.dto.form.MenuFormDTO;
import com.epmet.excel.GovCustomerMenuExcel;
import com.epmet.service.GovCustomerMenuService;
import org.apache.commons.lang3.StringUtils;
@ -116,14 +117,14 @@ public class GovCustomerMenuController {
/**
* 根据gov_menu表主键查询拥有这项菜单的所有客户(customerIds)
*
* @param tableId
* @param formDTO
* @return com.epmet.commons.tools.utils.Result<java.util.List<java.lang.String>>
* @Author zhangyong
* @Date 16:26 2021-03-16
**/
@PostMapping("getcustomerids/{tableid}")
public Result<List<String>> getcustomerids(@PathVariable("tableid") String tableId){
List<String> data = govCustomerMenuService.getcustomerIds(tableId);
@PostMapping("getcustomerids")
public Result<List<String>> getcustomerids(@RequestBody MenuFormDTO formDTO){
List<String> data = govCustomerMenuService.getcustomerIds(formDTO.getTableId());
return new Result<List<String>>().ok(data);
}
}

Loading…
Cancel
Save