|
|
@ -200,18 +200,18 @@ public class FunctionCustomizedServiceImpl extends BaseServiceImpl<FunctionCusto |
|
|
|
&& customizedDTO.getIconSmallImg().equals(customizedId.get(i).getIconSmallImg()) |
|
|
|
&& customizedDTO.getDomainName().equals(customizedId.get(i).getDomainName()) |
|
|
|
&& customizedDTO.getTargetLink().equals(customizedId.get(i).getTargetLink()) ){ |
|
|
|
// 这个功能,客户使用的是默认的,则判断本次修改的字段,如果是功能名称和大小图标,则批量更新客户数据,负责提示 不能修改
|
|
|
|
// 这个功能,客户使用的是默认的,则判断本次修改的字段,如果是功能名称和大小图标、功能说明,则批量更新客户数据,负责提示 不能修改
|
|
|
|
if (!formDTO.getShoppingStatus().equals(customizedDTO.getShoppingStatus()) |
|
|
|
|| !formDTO.getFunctionExplain().equals(customizedDTO.getFunctionExplain()) |
|
|
|
|| !formDTO.getTargetLink().equals(customizedDTO.getTargetLink()) |
|
|
|
|| !formDTO.getDomainName().equals(customizedDTO.getDomainName()) |
|
|
|
|| !formDTO.getFromApp().equals(customizedDTO.getFromApp()) ){ |
|
|
|
// 4.1 如果修改的内容是其他字段,则返回语句
|
|
|
|
tipCustomizedInfoUserId.append(customizedId.get(i).getId() + ","); |
|
|
|
} else if (!formDTO.getFunctionName().equals(customizedDTO.getCustomizedName()) |
|
|
|
|| !formDTO.getFunctionExplain().equals(customizedDTO.getFunctionExplain()) |
|
|
|
|| !formDTO.getIconLargeImg().equals(customizedDTO.getIconLargeImg()) |
|
|
|
|| !formDTO.getIconSmallImg().equals(customizedDTO.getIconSmallImg())){ |
|
|
|
// 4.2 如果修改的内容只是:功能名称和大小图标,, 需要批量更新客户数据
|
|
|
|
// 4.2 如果修改的内容只是:功能名称和大小图标、功能说明,, 需要批量更新客户数据
|
|
|
|
CustomerFunctionDetailEntity customer = new CustomerFunctionDetailEntity(); |
|
|
|
customer.setFunctionName(formDTO.getFunctionName()); |
|
|
|
customer.setIconLargeImg(formDTO.getIconLargeImg()); |
|
|
@ -340,9 +340,9 @@ public class FunctionCustomizedServiceImpl extends BaseServiceImpl<FunctionCusto |
|
|
|
entity.setId(formDTO.getFunctionId()); |
|
|
|
entity.setFunctionName(formDTO.getFunctionName()); |
|
|
|
entity.setFunctionIcon(formDTO.getIconLargeImg()); |
|
|
|
entity.setFunctionExplain(formDTO.getFunctionExplain()); |
|
|
|
if (NumConstant.ONE == flag){ |
|
|
|
entity.setShoppingStatus(Integer.valueOf(formDTO.getShoppingStatus())); |
|
|
|
entity.setFunctionExplain(formDTO.getFunctionExplain()); |
|
|
|
} |
|
|
|
functionService.updateById(entity); |
|
|
|
} |
|
|
|