Browse Source

运营端功能增删改查

dev_shibei_match
zhaoqifeng 5 years ago
parent
commit
be3471de0b
  1. 5
      epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/FunctionDTO.java
  2. 5
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/entity/FunctionEntity.java
  3. 3
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/excel/FunctionExcel.java
  4. 8
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/FunctionServiceImpl.java

5
epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/FunctionDTO.java

@ -43,6 +43,11 @@ public class FunctionDTO implements Serializable {
*/
private String functionName;
/**
* 功能图标
*/
private String functionIcon;
/**
* 功能类型0.默认功能1.定制功能
*/

5
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/entity/FunctionEntity.java

@ -43,6 +43,11 @@ public class FunctionEntity extends BaseEpmetEntity {
*/
private String functionName;
/**
* 功能图标
*/
private String functionIcon;
/**
* 功能类型0.默认功能1.定制功能
*/

3
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/excel/FunctionExcel.java

@ -37,6 +37,9 @@ public class FunctionExcel {
@Excel(name = "功能名称")
private String functionName;
@Excel(name = "功能图标")
private String functionIcon;
@Excel(name = "功能类型:0.默认功能,1.定制功能")
private Integer functionGroup;

8
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/FunctionServiceImpl.java

@ -68,9 +68,15 @@ public class FunctionServiceImpl extends BaseServiceImpl<FunctionDao, FunctionEn
private QueryWrapper<FunctionEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
String functionName = (String)params.get("functionName");
String functionGroup = (String)params.get("functionGroup");
String shoppingStatus = (String)params.get("shoppingStatus");
QueryWrapper<FunctionEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id)
.like(StringUtils.isNotBlank(functionName), "FUNCTION_NAME", functionName)
.eq(StringUtils.isNotBlank(functionGroup), "FUNCTION_GROUP", functionGroup)
.eq(StringUtils.isNotBlank(shoppingStatus), "SHOPPING_STATUS", shoppingStatus);
return wrapper;
}

Loading…
Cancel
Save