Browse Source

运营端接口修改

master
sunyuchao 5 years ago
parent
commit
9a6d8639a4
  1. 4
      epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/form/UpdateCustomizedFormDTO.java
  2. 36
      epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/result/CustomerResultDTO.java
  3. 36
      epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/result/FunctionResultDTO.java
  4. 4
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFunctionDetailServiceImpl.java
  5. 8
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/FunctionCustomizedServiceImpl.java

4
epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/form/UpdateCustomizedFormDTO.java

@ -36,8 +36,8 @@ public class UpdateCustomizedFormDTO implements Serializable {
/** /**
* 默认名称 * 默认名称
*/ */
@NotBlank(message = "默认名称不能为空") @NotBlank(message = "功能名称不能为空")
private String customizedName; private String functionName;
/** /**
* 默认大图标 * 默认大图标

36
epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/result/CustomerResultDTO.java

@ -26,10 +26,46 @@ public class CustomerResultDTO implements Serializable {
* 默认功能名称 * 默认功能名称
*/ */
private String customizedName; private String customizedName;
/**
* 自定义功能名称
*/
private String functionName;
/** /**
* 功能所属端(居民端:resi 工作端:work) * 功能所属端(居民端:resi 工作端:work)
*/ */
private String fromApp; private String fromApp;
/**
* 默认大图标
*/
private String defaultLargeImg;
/**
* 自定义大图标
*/
private String iconLargeImg;
/**
* 默认小图标
*/
private String defaultSmallImg;
/**
* 自定义小图标
*/
private String iconSmallImg;
/**
* 上下架(0下架1上架)
*/
private Integer shoppingStatus;
/**
* 业务域名
*/
private String domainName;
/**
* 外链地址
*/
private String targetLink;
/**
* 排序
*/
private Integer displayOrder;
/** /**
* 功能说明 * 功能说明
*/ */

36
epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/result/FunctionResultDTO.java

@ -26,46 +26,10 @@ public class FunctionResultDTO implements Serializable {
* 默认功能名称 * 默认功能名称
*/ */
private String customizedName; private String customizedName;
/**
* 自定义功能名称
*/
private String functionName;
/** /**
* 功能所属端(居民端:resi 工作端:work) * 功能所属端(居民端:resi 工作端:work)
*/ */
private String fromApp; private String fromApp;
/**
* 默认大图标
*/
private String defaultLargeImg;
/**
* 自定义大图标
*/
private String iconLargeImg;
/**
* 默认小图标
*/
private String defaultSmallImg;
/**
* 自定义小图标
*/
private String iconSmallImg;
/**
* 上下架(0下架1上架)
*/
private Integer shoppingStatus;
/**
* 业务域名
*/
private String domainName;
/**
* 外链地址
*/
private String targetLink;
/**
* 排序
*/
private Integer displayOrder;
/** /**
* 功能说明 * 功能说明
*/ */

4
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFunctionDetailServiceImpl.java

@ -183,10 +183,10 @@ public class CustomerFunctionDetailServiceImpl extends BaseServiceImpl<CustomerF
//2.获取客户未有定制功能列表 //2.获取客户未有定制功能列表
List<String> functionIds = customerList.stream().map(CustomerResultDTO::getFunctionId).collect(Collectors.toList()); List<String> functionIds = customerList.stream().map(CustomerResultDTO::getFunctionId).collect(Collectors.toList());
List<FunctionResultDTO> functionList = functionCustomizedDao.selectFunctionCustomizedList(functionIds); List<FunctionResultDTO> functionList = functionCustomizedDao.selectFunctionCustomizedList(functionIds);
resultDTO.setFunctionList(functionList);
functionList.forEach(fl->{ functionList.forEach(fl->{
fl.setCustomerId(customerId); fl.setCustomerId(customerId);
}); });
resultDTO.setFunctionList(functionList);
return resultDTO; return resultDTO;
} }
@ -232,7 +232,7 @@ public class CustomerFunctionDetailServiceImpl extends BaseServiceImpl<CustomerF
CustomerFunctionDetailEntity entity = new CustomerFunctionDetailEntity(); CustomerFunctionDetailEntity entity = new CustomerFunctionDetailEntity();
entity.setCustomerId(formDTO.getCustomerId()); entity.setCustomerId(formDTO.getCustomerId());
entity.setFunctionId(formDTO.getFunctionId()); entity.setFunctionId(formDTO.getFunctionId());
entity.setFunctionName(functionDTO.getFunctionId()); entity.setFunctionName(functionDTO.getCustomizedName());
entity.setIconLargeImg(functionDTO.getIconLargeImg()); entity.setIconLargeImg(functionDTO.getIconLargeImg());
entity.setIconSmallImg(functionDTO.getIconSmallImg()); entity.setIconSmallImg(functionDTO.getIconSmallImg());
entity.setDomainName(functionDTO.getDomainName()); entity.setDomainName(functionDTO.getDomainName());

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

@ -196,12 +196,12 @@ public class FunctionCustomizedServiceImpl extends BaseServiceImpl<FunctionCusto
|| !formDTO.getFromApp().equals(customizedDTO.getFromApp()) ){ || !formDTO.getFromApp().equals(customizedDTO.getFromApp()) ){
// 4.1 如果修改的内容是其他字段,则返回语句 // 4.1 如果修改的内容是其他字段,则返回语句
tipCustomizedInfoUserId.append(customizedId.get(i).getId() + ","); tipCustomizedInfoUserId.append(customizedId.get(i).getId() + ",");
} else if (!formDTO.getCustomizedName().equals(customizedDTO.getCustomizedName()) } else if (!formDTO.getFunctionName().equals(customizedDTO.getCustomizedName())
|| !formDTO.getIconLargeImg().equals(customizedDTO.getIconLargeImg()) || !formDTO.getIconLargeImg().equals(customizedDTO.getIconLargeImg())
|| !formDTO.getIconSmallImg().equals(customizedDTO.getIconSmallImg())){ || !formDTO.getIconSmallImg().equals(customizedDTO.getIconSmallImg())){
// 4.2 如果修改的内容只是:功能名称和大小图标,, 需要批量更新客户数据 // 4.2 如果修改的内容只是:功能名称和大小图标,, 需要批量更新客户数据
CustomerFunctionDetailEntity customer = new CustomerFunctionDetailEntity(); CustomerFunctionDetailEntity customer = new CustomerFunctionDetailEntity();
customer.setFunctionName(formDTO.getCustomizedName()); customer.setFunctionName(formDTO.getFunctionName());
customer.setIconLargeImg(formDTO.getIconLargeImg()); customer.setIconLargeImg(formDTO.getIconLargeImg());
customer.setIconSmallImg(formDTO.getIconSmallImg()); customer.setIconSmallImg(formDTO.getIconSmallImg());
customer.setId(customizedId.get(i).getId()); customer.setId(customizedId.get(i).getId());
@ -316,7 +316,7 @@ public class FunctionCustomizedServiceImpl extends BaseServiceImpl<FunctionCusto
private void upFunction(UpdateCustomizedFormDTO formDTO, Integer flag){ private void upFunction(UpdateCustomizedFormDTO formDTO, Integer flag){
FunctionEntity entity = new FunctionEntity(); FunctionEntity entity = new FunctionEntity();
entity.setId(formDTO.getFunctionId()); entity.setId(formDTO.getFunctionId());
entity.setFunctionName(formDTO.getCustomizedName()); entity.setFunctionName(formDTO.getFunctionName());
entity.setFunctionIcon(formDTO.getIconLargeImg()); entity.setFunctionIcon(formDTO.getIconLargeImg());
if (NumConstant.ONE == flag){ if (NumConstant.ONE == flag){
entity.setShoppingStatus(Integer.valueOf(formDTO.getShoppingStatus())); entity.setShoppingStatus(Integer.valueOf(formDTO.getShoppingStatus()));
@ -354,7 +354,7 @@ public class FunctionCustomizedServiceImpl extends BaseServiceImpl<FunctionCusto
// 2.修改 定制功能表, 修改的字段范围,是:功能名称和大小图标 // 2.修改 定制功能表, 修改的字段范围,是:功能名称和大小图标
FunctionCustomizedEntity entity = new FunctionCustomizedEntity(); FunctionCustomizedEntity entity = new FunctionCustomizedEntity();
entity.setFunctionId(formDTO.getFunctionId()); entity.setFunctionId(formDTO.getFunctionId());
entity.setCustomizedName(formDTO.getCustomizedName()); entity.setCustomizedName(formDTO.getFunctionName());
entity.setIconLargeImg(formDTO.getIconLargeImg()); entity.setIconLargeImg(formDTO.getIconLargeImg());
entity.setIconSmallImg(formDTO.getIconSmallImg()); entity.setIconSmallImg(formDTO.getIconSmallImg());
baseDao.updateFunctionCustomized(entity); baseDao.updateFunctionCustomized(entity);

Loading…
Cancel
Save