|
@@ -421,196 +421,239 @@ public class AgencyController extends BaseController {
|
|
logger.info("cmClubinfo数据库数据"+cmClubinfos);
|
|
logger.info("cmClubinfo数据库数据"+cmClubinfos);
|
|
//编辑时添加操作日志
|
|
//编辑时添加操作日志
|
|
if(newCmClubs!=null) {
|
|
if(newCmClubs!=null) {
|
|
- if (StringUtils.isBlank(cmClubinfos.getHighestAchievement()) || null == cmClubinfos.getReachPepole() || null == cmClubinfos.getClinchPepole()) {
|
|
|
|
- if (!"".equals(cmClubinfo.getHighestAchievement()) || cmClubinfo.getReachPepole() != null || cmClubinfo.getClinchPepole() != null) {
|
|
|
|
- list.add("新增了活动业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } else {
|
|
|
|
- if (StringUtils.isNotBlank(cmClubinfo.getHighestAchievement())) {
|
|
|
|
- if (!cmClubinfo.getHighestAchievement().equals(cmClubinfos.getHighestAchievement())) {
|
|
|
|
- list.add("修改了活动业绩的最高业绩信息");
|
|
|
|
|
|
+ if (cmClubinfos != null) {
|
|
|
|
+ if (StringUtils.isBlank(cmClubinfos.getHighestAchievement()) || null == cmClubinfos.getReachPepole() || null == cmClubinfos.getClinchPepole()) {
|
|
|
|
+ if (!"".equals(cmClubinfo.getHighestAchievement()) || cmClubinfo.getReachPepole() != null || cmClubinfo.getClinchPepole() != null) {
|
|
|
|
+ list.add("新增了活动业绩信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
- list.add("删除了活动业绩的最高业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getHighestAchievement())) {
|
|
|
|
+ if (!cmClubinfo.getHighestAchievement().equals(cmClubinfos.getHighestAchievement())) {
|
|
|
|
+ list.add("修改了活动业绩的最高业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了活动业绩的最高业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
|
|
- if (cmClubinfo.getReachPepole() != null) {
|
|
|
|
- if (!cmClubinfo.getReachPepole().equals(cmClubinfos.getReachPepole())) {
|
|
|
|
- list.add("修改了活动业绩的到店人数信息");
|
|
|
|
|
|
+ if (cmClubinfo.getReachPepole() != null) {
|
|
|
|
+ if (!cmClubinfo.getReachPepole().equals(cmClubinfos.getReachPepole())) {
|
|
|
|
+ list.add("修改了活动业绩的到店人数信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了活动业绩的到店人数信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了活动业绩的到店人数信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (cmClubinfo.getClinchPepole() != null) {
|
|
|
|
- if (!cmClubinfo.getClinchPepole().equals(cmClubinfos.getClinchPepole())) {
|
|
|
|
- list.add("修改了活动业绩的成交人数信息");
|
|
|
|
|
|
+ if (cmClubinfo.getClinchPepole() != null) {
|
|
|
|
+ if (!cmClubinfo.getClinchPepole().equals(cmClubinfos.getClinchPepole())) {
|
|
|
|
+ list.add("修改了活动业绩的成交人数信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了活动业绩的成交人数信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了活动业绩的成交人数信息");
|
|
|
|
- type = 1;
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- if (cmClubinfos.getConsumeA() == null || cmClubinfos.getConsumeB() == null || cmClubinfos.getConsumeC() == null) {
|
|
|
|
- if (cmClubinfo.getConsumeA() != null || cmClubinfo.getConsumeB() != null || cmClubinfo.getConsumeC() != null) {
|
|
|
|
- list.add("新增了会员消费金额信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (cmClubinfo.getConsumeA() != null) {
|
|
|
|
- if (!cmClubinfo.getConsumeA().equals(cmClubinfos.getConsumeA())) {
|
|
|
|
- list.add("修改了A类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfos.getConsumeA() == null || cmClubinfos.getConsumeB() == null || cmClubinfos.getConsumeC() == null) {
|
|
|
|
+ if (cmClubinfo.getConsumeA() != null || cmClubinfo.getConsumeB() != null || cmClubinfo.getConsumeC() != null) {
|
|
|
|
+ list.add("新增了会员消费金额信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- list.add("删除了A类会员消费金额");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- if (cmClubinfo.getConsumeB() != null) {
|
|
|
|
- if (!cmClubinfo.getConsumeB().equals(cmClubinfos.getConsumeB())) {
|
|
|
|
- list.add("修改了B类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfo.getConsumeA() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeA().equals(cmClubinfos.getConsumeA())) {
|
|
|
|
+ list.add("修改了A类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了A类会员消费金额");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了B类会员消费金额");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- if (cmClubinfo.getConsumeC() != null) {
|
|
|
|
- if (!cmClubinfo.getConsumeC().equals(cmClubinfos.getConsumeC())) {
|
|
|
|
- list.add("修改了C类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfo.getConsumeB() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeB().equals(cmClubinfos.getConsumeB())) {
|
|
|
|
+ list.add("修改了B类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了B类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (cmClubinfo.getConsumeC() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeC().equals(cmClubinfos.getConsumeC())) {
|
|
|
|
+ list.add("修改了C类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了C类会员消费金额");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了C类会员消费金额");
|
|
|
|
- type = 1;
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- if (cmClubinfos.getCateA() == null || cmClubinfos.getCateB() == null || cmClubinfos.getCateC() == null) {
|
|
|
|
- if (null != cmClubinfo.getCateA() || null != cmClubinfo.getCateB() || null != cmClubinfo.getCateC()) {
|
|
|
|
- list.add("新增了会员信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (cmClubinfo.getCateA() != null) {
|
|
|
|
- if (!cmClubinfo.getCateA().equals(cmClubinfos.getCateA())) {
|
|
|
|
- list.add("修改了A会员信息");
|
|
|
|
|
|
+ if (cmClubinfos.getCateA() == null || cmClubinfos.getCateB() == null || cmClubinfos.getCateC() == null) {
|
|
|
|
+ if (null != cmClubinfo.getCateA() || null != cmClubinfo.getCateB() || null != cmClubinfo.getCateC()) {
|
|
|
|
+ list.add("新增了会员信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- list.add("删除了A会员信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
+ if (cmClubinfo.getCateA() != null) {
|
|
|
|
+ if (!cmClubinfo.getCateA().equals(cmClubinfos.getCateA())) {
|
|
|
|
+ list.add("修改了A会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了A会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
|
|
- if (cmClubinfo.getCateB() != null) {
|
|
|
|
- if (!cmClubinfo.getCateB().equals(cmClubinfos.getCateB())) {
|
|
|
|
- list.add("修改了B会员信息");
|
|
|
|
|
|
+ if (cmClubinfo.getCateB() != null) {
|
|
|
|
+ if (!cmClubinfo.getCateB().equals(cmClubinfos.getCateB())) {
|
|
|
|
+ list.add("修改了B会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了B会员信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了B会员信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (cmClubinfo.getCateC() != null) {
|
|
|
|
- if (!cmClubinfo.getCateC().equals(cmClubinfos.getCateC())) {
|
|
|
|
- list.add("修改了C会员信息");
|
|
|
|
|
|
+ if (cmClubinfo.getCateC() != null) {
|
|
|
|
+ if (!cmClubinfo.getCateC().equals(cmClubinfos.getCateC())) {
|
|
|
|
+ list.add("修改了C会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了C会员信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了C会员信息");
|
|
|
|
- type = 1;
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- if ("".equals(cmClubinfos.getMonthAchievement()) || "".equals(cmClubinfos.getPromotionAchievement()) || "".equals(cmClubinfos.getYearAchievement())) {
|
|
|
|
- if (!"".equals(cmClubinfos.getMonthAchievement()) || !"".equals(cmClubinfos.getPromotionAchievement()) || !"".equals(cmClubinfos.getYearAchievement())) {
|
|
|
|
- list.add("新增了业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } else {
|
|
|
|
- if (cmClubinfo.getMonthAchievement() != null) {
|
|
|
|
- if (!cmClubinfo.getMonthAchievement().equals(cmClubinfos.getMonthAchievement())) {
|
|
|
|
- list.add("修改了月业绩信息");
|
|
|
|
|
|
+ if ("".equals(cmClubinfos.getMonthAchievement()) || "".equals(cmClubinfos.getPromotionAchievement()) || "".equals(cmClubinfos.getYearAchievement())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getMonthAchievement()) || StringUtils.isNotBlank(cmClubinfo.getPromotionAchievement()) || StringUtils.isNotBlank(cmClubinfo.getYearAchievement())) {
|
|
|
|
+ list.add("新增了业绩信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
- list.add("删除了月业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
+ if (cmClubinfo.getMonthAchievement() != null) {
|
|
|
|
+ if (!cmClubinfo.getMonthAchievement().equals(cmClubinfos.getMonthAchievement())) {
|
|
|
|
+ list.add("修改了月业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了月业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
|
|
- if (cmClubinfo.getPromotionAchievement() != null) {
|
|
|
|
- if (!cmClubinfo.getPromotionAchievement().equals(cmClubinfos.getPromotionAchievement())) {
|
|
|
|
- list.add("修改了促销业绩信息");
|
|
|
|
|
|
+ if (cmClubinfo.getPromotionAchievement() != null) {
|
|
|
|
+ if (!cmClubinfo.getPromotionAchievement().equals(cmClubinfos.getPromotionAchievement())) {
|
|
|
|
+ list.add("修改了促销业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了促销业绩信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了促销业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (cmClubinfo.getYearAchievement() != null) {
|
|
|
|
- if (!cmClubinfo.getYearAchievement().equals(cmClubinfos.getYearAchievement())) {
|
|
|
|
- list.add("修改了年业绩信息");
|
|
|
|
|
|
+ if (cmClubinfo.getYearAchievement() != null) {
|
|
|
|
+ if (!cmClubinfo.getYearAchievement().equals(cmClubinfos.getYearAchievement())) {
|
|
|
|
+ list.add("修改了年业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了年业绩信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了年业绩信息");
|
|
|
|
- type = 1;
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- if (cmClubinfos.getArea() == null || cmClubinfos.getBedNums() == null || cmClubinfos.getBeauticians() == null) {
|
|
|
|
- if (null != cmClubinfo.getArea() || null != cmClubinfo.getBedNums() || null != cmClubinfo.getBeauticians()) {
|
|
|
|
- list.add("更新了基本信息");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (cmClubinfo.getArea() != null) {
|
|
|
|
- if (!cmClubinfo.getArea().equals(cmClubinfos.getArea())) {
|
|
|
|
- list.add("修改了机构面积");
|
|
|
|
|
|
+ if (cmClubinfos.getArea() == null || cmClubinfos.getBedNums() == null || cmClubinfos.getBeauticians() == null) {
|
|
|
|
+ if (null != cmClubinfo.getArea() || null != cmClubinfo.getBedNums() || null != cmClubinfo.getBeauticians()) {
|
|
|
|
+ list.add("更新了基本信息");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- list.add("删除了机构面积");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
|
|
+ if (cmClubinfo.getArea() != null) {
|
|
|
|
+ if (!cmClubinfo.getArea().equals(cmClubinfos.getArea())) {
|
|
|
|
+ list.add("修改了机构面积");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了机构面积");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
|
|
- if (cmClubinfo.getBedNums() != null) {
|
|
|
|
- if (!cmClubinfo.getBedNums().equals(cmClubinfos.getBedNums())) {
|
|
|
|
- list.add("修改了美容床数");
|
|
|
|
|
|
+ if (cmClubinfo.getBedNums() != null) {
|
|
|
|
+ if (!cmClubinfo.getBedNums().equals(cmClubinfos.getBedNums())) {
|
|
|
|
+ list.add("修改了美容床数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了美容床数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (cmClubinfo.getBeauticians() != null) {
|
|
|
|
+ if (!cmClubinfo.getBeauticians().equals(cmClubinfos.getBeauticians())) {
|
|
|
|
+ list.add("修改了美容师数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了美容师数");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- list.add("删除了美容床数");
|
|
|
|
- type = 1;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if (cmClubinfo.getBeauticians() != null) {
|
|
|
|
- if (!cmClubinfo.getBeauticians().equals(cmClubinfos.getBeauticians())) {
|
|
|
|
- list.add("修改了美容师数");
|
|
|
|
|
|
+ if (cmClubinfos.getEmpnum() != null) {
|
|
|
|
+ if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
+ if (!cmClubinfo.getEmpnum().equals(cmClubinfos.getEmpnum())) {
|
|
|
|
+ list.add("修改了公司人数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了公司人数");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- list.add("删除了美容师数");
|
|
|
|
|
|
+ if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
+ list.add("新增了公司人数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getHighestAchievement()) || cmClubinfo.getReachPepole() != null || cmClubinfo.getClinchPepole() != null) {
|
|
|
|
+ list.add("新增了活动业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (cmClubinfo.getConsumeA() != null || cmClubinfo.getConsumeB() != null || cmClubinfo.getConsumeC() != null) {
|
|
|
|
+ list.add("新增了会员消费金额信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (null != cmClubinfo.getCateA() || null != cmClubinfo.getCateB() || null != cmClubinfo.getCateC()) {
|
|
|
|
+ list.add("新增了会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getMonthAchievement()) || StringUtils.isNotBlank(cmClubinfo.getPromotionAchievement()) || StringUtils.isNotBlank(cmClubinfo.getYearAchievement())) {
|
|
|
|
+ list.add("新增了业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (null != cmClubinfo.getArea() || null != cmClubinfo.getBedNums() || null != cmClubinfo.getBeauticians()) {
|
|
|
|
+ list.add("更新了基本信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
+ list.add("新增了公司人数");
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
if (StringUtils.isNotBlank(newCmClubs.getInfo())) {
|
|
if (StringUtils.isNotBlank(newCmClubs.getInfo())) {
|
|
if (StringUtils.isNotBlank(cmClubinfo.getInfo())) {
|
|
if (StringUtils.isNotBlank(cmClubinfo.getInfo())) {
|
|
if (!cmClubinfo.getInfo().equals(newCmClubs.getInfo())) {
|
|
if (!cmClubinfo.getInfo().equals(newCmClubs.getInfo())) {
|
|
@@ -629,22 +672,6 @@ public class AgencyController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (cmClubinfos.getEmpnum() != null) {
|
|
|
|
- if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
- if (!cmClubinfo.getEmpnum().equals(cmClubinfos.getEmpnum())) {
|
|
|
|
- list.add("修改了公司人数");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- list.add("删除了公司人数");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
- list.add("新增了公司人数");
|
|
|
|
- type = 1;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
if (StringUtils.isNotBlank(newCmClubs.getFax())) {
|
|
if (StringUtils.isNotBlank(newCmClubs.getFax())) {
|
|
if (StringUtils.isNotBlank(cmClubinfo.getFax())) {
|
|
if (StringUtils.isNotBlank(cmClubinfo.getFax())) {
|
|
if (!cmClubinfo.getFax().equals(newCmClubs.getFax())) {
|
|
if (!cmClubinfo.getFax().equals(newCmClubs.getFax())) {
|