|
@@ -414,28 +414,48 @@ public class AgencyController extends BaseController {
|
|
NewCmClub newCmClubs = sysLogService.newCmClub(newCmClub.getClubID());
|
|
NewCmClub newCmClubs = sysLogService.newCmClub(newCmClub.getClubID());
|
|
System.out.println("id>>>>>>>>>>"+ newCmClub.getClubID()+"<<<<<"+cmClubinfo.getUserID());
|
|
System.out.println("id>>>>>>>>>>"+ newCmClub.getClubID()+"<<<<<"+cmClubinfo.getUserID());
|
|
CmClubinfo cmClubinfos = sysLogService.cmclubinfo(cmClubinfo.getClubInfoID());
|
|
CmClubinfo cmClubinfos = sysLogService.cmclubinfo(cmClubinfo.getClubInfoID());
|
|
-
|
|
|
|
|
|
+ int type = 0;
|
|
logger.info("newCmClub页面数据"+newCmClub);
|
|
logger.info("newCmClub页面数据"+newCmClub);
|
|
logger.info("newCmClub数据库数据"+newCmClubs);
|
|
logger.info("newCmClub数据库数据"+newCmClubs);
|
|
logger.info("cmClubinfo页面数据"+cmClubinfo);
|
|
logger.info("cmClubinfo页面数据"+cmClubinfo);
|
|
logger.info("cmClubinfo数据库数据"+cmClubinfos);
|
|
logger.info("cmClubinfo数据库数据"+cmClubinfos);
|
|
//编辑时添加操作日志
|
|
//编辑时添加操作日志
|
|
- if(cmClubinfos!=null) {
|
|
|
|
- if (null == (cmClubinfos.getHighestAchievement()) || null == cmClubinfos.getReachPepole() || null == cmClubinfos.getClinchPepole()) {
|
|
|
|
|
|
+ if(newCmClubs!=null) {
|
|
|
|
+ if (StringUtils.isBlank(cmClubinfos.getHighestAchievement()) || null == cmClubinfos.getReachPepole() || null == cmClubinfos.getClinchPepole()) {
|
|
if (!"".equals(cmClubinfo.getHighestAchievement()) || cmClubinfo.getReachPepole() != null || cmClubinfo.getClinchPepole() != null) {
|
|
if (!"".equals(cmClubinfo.getHighestAchievement()) || cmClubinfo.getReachPepole() != null || cmClubinfo.getClinchPepole() != null) {
|
|
list.add("新增了活动业绩信息");
|
|
list.add("新增了活动业绩信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- if (!cmClubinfo.getHighestAchievement().equals(cmClubinfos.getHighestAchievement())) {
|
|
|
|
- list.add("修改了活动业绩的最高业绩信息");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getHighestAchievement())) {
|
|
|
|
+ if (!cmClubinfo.getHighestAchievement().equals(cmClubinfos.getHighestAchievement())) {
|
|
|
|
+ list.add("修改了活动业绩的最高业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了活动业绩的最高业绩信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
|
|
|
|
- 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;
|
|
}
|
|
}
|
|
- 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -443,16 +463,35 @@ public class AgencyController extends BaseController {
|
|
if (cmClubinfos.getConsumeA() == null || cmClubinfos.getConsumeB() == null || cmClubinfos.getConsumeC() == null) {
|
|
if (cmClubinfos.getConsumeA() == null || cmClubinfos.getConsumeB() == null || cmClubinfos.getConsumeC() == null) {
|
|
if (cmClubinfo.getConsumeA() != null || cmClubinfo.getConsumeB() != null || cmClubinfo.getConsumeC() != null) {
|
|
if (cmClubinfo.getConsumeA() != null || cmClubinfo.getConsumeB() != null || cmClubinfo.getConsumeC() != null) {
|
|
list.add("新增了会员消费金额信息");
|
|
list.add("新增了会员消费金额信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (!cmClubinfo.getConsumeA().equals(cmClubinfos.getConsumeA())) {
|
|
|
|
- list.add("修改了A类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfo.getConsumeA() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeA().equals(cmClubinfos.getConsumeA())) {
|
|
|
|
+ list.add("修改了A类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了A类会员消费金额");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- if (!cmClubinfo.getConsumeB().equals(cmClubinfos.getConsumeB())) {
|
|
|
|
- list.add("修改了B类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfo.getConsumeB() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeB().equals(cmClubinfos.getConsumeB())) {
|
|
|
|
+ list.add("修改了B类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了B类会员消费金额");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- if (!cmClubinfo.getConsumeC().equals(cmClubinfos.getConsumeC())) {
|
|
|
|
- list.add("修改了C类会员消费金额");
|
|
|
|
|
|
+ if (cmClubinfo.getConsumeC() != null) {
|
|
|
|
+ if (!cmClubinfo.getConsumeC().equals(cmClubinfos.getConsumeC())) {
|
|
|
|
+ list.add("修改了C类会员消费金额");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了C类会员消费金额");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -460,16 +499,37 @@ public class AgencyController extends BaseController {
|
|
if (cmClubinfos.getCateA() == null || cmClubinfos.getCateB() == null || cmClubinfos.getCateC() == null) {
|
|
if (cmClubinfos.getCateA() == null || cmClubinfos.getCateB() == null || cmClubinfos.getCateC() == null) {
|
|
if (null != cmClubinfo.getCateA() || null != cmClubinfo.getCateB() || null != cmClubinfo.getCateC()) {
|
|
if (null != cmClubinfo.getCateA() || null != cmClubinfo.getCateB() || null != cmClubinfo.getCateC()) {
|
|
list.add("新增了会员信息");
|
|
list.add("新增了会员信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (!cmClubinfo.getCateA().equals(cmClubinfos.getCateA())) {
|
|
|
|
- list.add("修改了A会员信息");
|
|
|
|
|
|
+ if (cmClubinfo.getCateA() != null) {
|
|
|
|
+ if (!cmClubinfo.getCateA().equals(cmClubinfos.getCateA())) {
|
|
|
|
+ list.add("修改了A会员信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了A会员信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- 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;
|
|
}
|
|
}
|
|
- 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -477,18 +537,38 @@ public class AgencyController extends BaseController {
|
|
if ("".equals(cmClubinfos.getMonthAchievement()) || "".equals(cmClubinfos.getPromotionAchievement()) || "".equals(cmClubinfos.getYearAchievement())) {
|
|
if ("".equals(cmClubinfos.getMonthAchievement()) || "".equals(cmClubinfos.getPromotionAchievement()) || "".equals(cmClubinfos.getYearAchievement())) {
|
|
if (!"".equals(cmClubinfos.getMonthAchievement()) || !"".equals(cmClubinfos.getPromotionAchievement()) || !"".equals(cmClubinfos.getYearAchievement())) {
|
|
if (!"".equals(cmClubinfos.getMonthAchievement()) || !"".equals(cmClubinfos.getPromotionAchievement()) || !"".equals(cmClubinfos.getYearAchievement())) {
|
|
list.add("新增了业绩信息");
|
|
list.add("新增了业绩信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- if (!cmClubinfo.getMonthAchievement().equals(cmClubinfos.getMonthAchievement())) {
|
|
|
|
- list.add("修改了月业绩信息");
|
|
|
|
|
|
+ if (cmClubinfo.getMonthAchievement() != null) {
|
|
|
|
+ if (!cmClubinfo.getMonthAchievement().equals(cmClubinfos.getMonthAchievement())) {
|
|
|
|
+ list.add("修改了月业绩信息");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了月业绩信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
|
|
|
|
- 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;
|
|
}
|
|
}
|
|
- 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -496,157 +576,318 @@ public class AgencyController extends BaseController {
|
|
if (cmClubinfos.getArea() == null || cmClubinfos.getBedNums() == null || cmClubinfos.getBeauticians() == null) {
|
|
if (cmClubinfos.getArea() == null || cmClubinfos.getBedNums() == null || cmClubinfos.getBeauticians() == null) {
|
|
if (null != cmClubinfo.getArea() || null != cmClubinfo.getBedNums() || null != cmClubinfo.getBeauticians()) {
|
|
if (null != cmClubinfo.getArea() || null != cmClubinfo.getBedNums() || null != cmClubinfo.getBeauticians()) {
|
|
list.add("更新了基本信息");
|
|
list.add("更新了基本信息");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (!cmClubinfo.getArea().equals(cmClubinfos.getArea())) {
|
|
|
|
- list.add("修改了机构面积");
|
|
|
|
|
|
+ if (cmClubinfo.getArea() != null) {
|
|
|
|
+ if (!cmClubinfo.getArea().equals(cmClubinfos.getArea())) {
|
|
|
|
+ list.add("修改了机构面积");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了机构面积");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- 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().equals(cmClubinfos.getBeauticians())) {
|
|
|
|
- list.add("修改了美容师数");
|
|
|
|
|
|
+
|
|
|
|
+ if (cmClubinfo.getBeauticians() != null) {
|
|
|
|
+ if (!cmClubinfo.getBeauticians().equals(cmClubinfos.getBeauticians())) {
|
|
|
|
+ list.add("修改了美容师数");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了美容师数");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (null == (newCmClubs.getInfo())) {
|
|
|
|
- if (!"".equals(newCmClub.getInfo())) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getInfo())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getInfo())) {
|
|
|
|
+ if (!cmClubinfo.getInfo().equals(newCmClubs.getInfo())) {
|
|
|
|
+ list.add("修改了公司简介");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了公司简介");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getInfo())) {
|
|
list.add("新增了公司简介");
|
|
list.add("新增了公司简介");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- } else if (!newCmClub.getInfo().equals(newCmClubs.getInfo())) {
|
|
|
|
- list.add("修改了公司简介");
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
- if (!cmClubinfo.getEmpnum().equals(cmClubinfos.getEmpnum())) {
|
|
|
|
- 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;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (cmClubinfo.getEmpnum() != null) {
|
|
|
|
+ list.add("新增了公司人数");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (null == (newCmClubs.getFax())) {
|
|
|
|
- if (!"".equals(newCmClub.getFax())) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getFax())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getFax())) {
|
|
|
|
+ if (!cmClubinfo.getFax().equals(newCmClubs.getFax())) {
|
|
|
|
+ list.add("修改了传真");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了传真");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getFax())) {
|
|
list.add("新增了传真");
|
|
list.add("新增了传真");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- } else if (!newCmClub.getFax().equals(newCmClubs.getFax())) {
|
|
|
|
- list.add("修改了传真");
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (null == (newCmClubs.getContractPhone())) {
|
|
|
|
- if (!"".equals(newCmClub.getContractPhone())) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getContractPhone())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getContractPhone())) {
|
|
|
|
+ if (!cmClubinfo.getContractPhone().equals(newCmClubs.getContractPhone())) {
|
|
|
|
+ list.add("修改了固定电话");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了固定电话");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getContractPhone())) {
|
|
list.add("新增了固定电话");
|
|
list.add("新增了固定电话");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- } else if (!newCmClub.getContractPhone().equals(newCmClubs.getContractPhone())) {
|
|
|
|
- list.add("修改了固定电话");
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if (!newCmClub.getAddress().equals(newCmClubs.getAddress())) {
|
|
|
|
- list.add("修改了详细地址");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getAddress())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getAddress())) {
|
|
|
|
+ if (!cmClubinfo.getAddress().equals(newCmClubs.getAddress())) {
|
|
|
|
+ list.add("修改了详细地址");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了详细地址");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!"".equals(cmClubinfo.getAddress())) {
|
|
|
|
+ list.add("新增了详细地址");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- if (newCmClub.getLinkManIdentity() != null) {
|
|
|
|
- if (!newCmClub.getLinkManIdentity().equals(newCmClubs.getLinkManIdentity())) {
|
|
|
|
- list.add("修改了联系人身份");
|
|
|
|
|
|
+
|
|
|
|
+ if (newCmClubs.getLinkManIdentity() != null) {
|
|
|
|
+ if (cmClubinfo.getLinkManIdentity() != null) {
|
|
|
|
+ if (!cmClubinfo.getLinkManIdentity().equals(newCmClubs.getLinkManIdentity())) {
|
|
|
|
+ list.add("修改了联系人身份");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了联系人身份");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (cmClubinfo.getLinkManIdentity() != null) {
|
|
|
|
+ list.add("新增了联系人身份");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (newCmClubs.getLinkMan() == null) {
|
|
|
|
- if (newCmClub.getUserName() != null) {
|
|
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getLinkMan())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getUserName())) {
|
|
|
|
+ if (!cmClubinfo.getUserName().equals(newCmClubs.getLinkMan())) {
|
|
|
|
+ list.add("修改了联系人");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了联系人");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getUserName())) {
|
|
list.add("新增了联系人");
|
|
list.add("新增了联系人");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!newCmClub.getUserName().equals(newCmClubs.getLinkMan())) {
|
|
|
|
- list.add("修改了联系人");
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (newCmClubs.getMainpro() != null) {
|
|
|
|
- if (!newCmClub.getMainpro().equals(newCmClubs.getMainpro())) {
|
|
|
|
- list.add("修改了主营内容");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getMainpro())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getMainpro())) {
|
|
|
|
+ if (!cmClubinfo.getMainpro().equals(newCmClubs.getMainpro())) {
|
|
|
|
+ list.add("修改了主营内容");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了主营内容");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getMainpro())) {
|
|
|
|
+ list.add("新增了主营内容");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (newCmClubs.getFirstClubType() == null) {
|
|
|
|
- if (newCmClub.getFirstClubType() != null) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getFirstClubType())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getFirstClubType())) {
|
|
|
|
+ if (!cmClubinfo.getFirstClubType().equals(newCmClubs.getFirstClubType())) {
|
|
|
|
+ list.add("修改了机构类型");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了机构类型");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getFirstClubType())) {
|
|
list.add("新增了机构类型");
|
|
list.add("新增了机构类型");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- } else if (!newCmClub.getFirstClubType().equals(newCmClubs.getFirstClubType())) {
|
|
|
|
- list.add("修改了机构类型");
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (newCmClubs.getBusinessLicenseImage() == null) {
|
|
|
|
- if (newCmClub.getBusinessLicenseImage() != null) {
|
|
|
|
- list.add("新增了营业执照");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getBusinessLicenseImage())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getBusinessLicenseImage())) {
|
|
|
|
+ if (!cmClubinfo.getBusinessLicenseImage().equals(newCmClubs.getBusinessLicenseImage())) {
|
|
|
|
+ list.add("修改了营业执照");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了营业执照");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (!newCmClub.getBusinessLicenseImage().equals(newCmClubs.getBusinessLicenseImage())) {
|
|
|
|
- list.add("修改了营业执照");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getBusinessLicenseImage())) {
|
|
|
|
+ list.add("新增了营业执照");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (newCmClubs.getHeadpic() == null) {
|
|
|
|
- if (newCmClub.getHeadpic() != null) {
|
|
|
|
- list.add("新增了门头照");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getHeadpic())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getHeadpic())) {
|
|
|
|
+ if (!cmClubinfo.getHeadpic().equals(newCmClubs.getHeadpic())) {
|
|
|
|
+ list.add("修改了门头照");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了门头照");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- if (!newCmClub.getHeadpic().equals(newCmClubs.getHeadpic())) {
|
|
|
|
- list.add("修改了门头照");
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getHeadpic())) {
|
|
|
|
+ list.add("新增了门头照");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (newCmClubs.getSocialCreditCode() == null) {
|
|
|
|
- if (newCmClub.getSocialCreditCode() != null) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getSocialCreditCode())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getSocialCreditCode())) {
|
|
|
|
+ if (!cmClubinfo.getSocialCreditCode().equals(newCmClubs.getSocialCreditCode())) {
|
|
|
|
+ list.add("修改了营业执照编号");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了营业执照编号");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getSocialCreditCode())) {
|
|
list.add("新增了营业执照编号");
|
|
list.add("新增了营业执照编号");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!newCmClub.getSocialCreditCode().equals(newCmClubs.getSocialCreditCode())) {
|
|
|
|
- list.add("修改了营业执照编号");
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- if (newCmClubs.getAddress() == null) {
|
|
|
|
- if (newCmClub.getAddress() != null) {
|
|
|
|
- list.add("新增了详细地址");
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getSname())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getSname())) {
|
|
|
|
+ if (!cmClubinfo.getSname().equals(newCmClubs.getSname())) {
|
|
|
|
+ list.add("修改了机构简称");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了机构简称");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if (newCmClubs.getSname() == null) {
|
|
|
|
- if (newCmClub.getSname() != null) {
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getSname())) {
|
|
list.add("新增了机构简称");
|
|
list.add("新增了机构简称");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!newCmClub.getSname().equals(newCmClubs.getSname())) {
|
|
|
|
- list.add("修改了机构简称");
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (newCmClubs.getName() == null) {
|
|
|
|
- if (newCmClub.getName() != null) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getName())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getName())) {
|
|
|
|
+ if (!cmClubinfo.getName().equals(newCmClubs.getName())) {
|
|
|
|
+ list.add("修改了机构名称");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了机构名称");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getName())) {
|
|
list.add("新增了机构名称");
|
|
list.add("新增了机构名称");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!newCmClub.getName().equals(newCmClubs.getName())) {
|
|
|
|
- list.add("修改了机构名称");
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if ("".equals(newCmClubs.getContractMobile())) {
|
|
|
|
- if (!newCmClub.getBindMobile().equals(null)) {
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClubs.getContractMobile())) {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getBindMobile())) {
|
|
|
|
+ if (!cmClubinfo.getBindMobile().equals(newCmClubs.getContractMobile())) {
|
|
|
|
+ list.add("修改了手机号");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了手机号");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(cmClubinfo.getBindMobile())) {
|
|
list.add("新增了手机号");
|
|
list.add("新增了手机号");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!newCmClub.getBindMobile().equals(newCmClubs.getContractMobile())) {
|
|
|
|
- list.add("修改了手机号");
|
|
|
|
- }
|
|
|
|
- if ("".equals(newCmClubs.getContractEmail())) {
|
|
|
|
- if (!newCmClub.getContractEmail().equals(null)) {
|
|
|
|
- list.add("新增了注册邮箱");
|
|
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClub.getContractEmail())) {
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClub.getContractEmail())) {
|
|
|
|
+ if (!newCmClub.getContractEmail().equals(newCmClubs.getContractEmail())) {
|
|
|
|
+ list.add("修改了邮箱");
|
|
|
|
+ type = 1;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ list.add("删除了邮箱");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- if (!"".equals(newCmClub.getContractEmail())) {
|
|
|
|
- if (!newCmClub.getContractEmail().equals(newCmClubs.getContractEmail())) {
|
|
|
|
- list.add("修改了邮箱");
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (StringUtils.isNotBlank(newCmClub.getContractEmail())) {
|
|
|
|
+ list.add("新增了注册邮箱");
|
|
|
|
+ type = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
list.add("新机构添加了信息");
|
|
list.add("新机构添加了信息");
|
|
}
|
|
}
|
|
sysLog.setActioncontent(StringUtils.strip(list.toString(), "[]"));
|
|
sysLog.setActioncontent(StringUtils.strip(list.toString(), "[]"));
|
|
@@ -743,6 +984,9 @@ public class AgencyController extends BaseController {
|
|
newCmClub.setLinkManIdentity(cmClubinfo.getLinkManIdentity());
|
|
newCmClub.setLinkManIdentity(cmClubinfo.getLinkManIdentity());
|
|
newCmClub.setName(name);
|
|
newCmClub.setName(name);
|
|
newCmClub.setSname(cmClubinfo.getSname());
|
|
newCmClub.setSname(cmClubinfo.getSname());
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ newCmClub.setLastModify(new Date());
|
|
|
|
+ }
|
|
CmUser user = new CmUser();
|
|
CmUser user = new CmUser();
|
|
user.setUserID(newCmClub.getUserID());
|
|
user.setUserID(newCmClub.getUserID());
|
|
user.setEmail(cmClubinfo.getContractEmail());
|
|
user.setEmail(cmClubinfo.getContractEmail());
|
|
@@ -751,7 +995,7 @@ public class AgencyController extends BaseController {
|
|
user.setBindMobile(bindMobile);
|
|
user.setBindMobile(bindMobile);
|
|
cmUserService.update(user);
|
|
cmUserService.update(user);
|
|
newCmClubService.update(newCmClub);//更新机构表数据
|
|
newCmClubService.update(newCmClub);//更新机构表数据
|
|
- System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>"+cmClubinfo);
|
|
|
|
|
|
+
|
|
cmClubinfoService.save(cmClubinfo);
|
|
cmClubinfoService.save(cmClubinfo);
|
|
addMessage(redirectAttributes, "保存机构资料成功");
|
|
addMessage(redirectAttributes, "保存机构资料成功");
|
|
redirectAttributes.addAttribute("searchName", newCmClub.getSearchName());
|
|
redirectAttributes.addAttribute("searchName", newCmClub.getSearchName());
|