|
|
@@ -522,7 +522,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
user.setIntegrity(countIntegrity(bo));
|
|
|
if (StringUtils.isNotBlank(bo.getPojectApplicationUrl())) {
|
|
|
List<OrganizationApplicationInfo> l = organizationApplicationInfoMapper.selectByUid(bo.getUid());
|
|
|
- if (l.size() > 0) {
|
|
|
+ if (!l.isEmpty()) {
|
|
|
oa = l.get(0);
|
|
|
oa.setPojectApplicationUrl(bo.getPojectApplicationUrl());
|
|
|
organizationApplicationInfoMapper.updateByPrimaryKey(oa);
|
|
|
@@ -548,13 +548,12 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
if (bo.getSalesTarget().contains(",")) {
|
|
|
String[] ss = bo.getSalesTarget().split(",");
|
|
|
List<OrganizationSalesTarget> list = new ArrayList<>();
|
|
|
- for (int i = 0; i < ss.length; i++) {
|
|
|
- String string = ss[i];
|
|
|
- OrganizationSalesTarget obs = new OrganizationSalesTarget();
|
|
|
- obs.setUid(bo.getUid());
|
|
|
- obs.setKeyword(string);
|
|
|
- list.add(obs);
|
|
|
- }
|
|
|
+ for (String string : ss) {
|
|
|
+ OrganizationSalesTarget obs = new OrganizationSalesTarget();
|
|
|
+ obs.setUid(bo.getUid());
|
|
|
+ obs.setKeyword(string);
|
|
|
+ list.add(obs);
|
|
|
+ }
|
|
|
organizationSalesTargetMapper.insertBatch(list);
|
|
|
} else {
|
|
|
OrganizationSalesTarget obs = new OrganizationSalesTarget();
|
|
|
@@ -570,10 +569,6 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @param uid
|
|
|
- * @param businnessScope
|
|
|
- * @param useBusinnessScope
|
|
|
- * @param date
|
|
|
*/
|
|
|
private void updateBusinessScope( String uid, String businnessScope,String useBusinnessScope, Date date) {
|
|
|
if(date==null)date=new Date();
|
|
|
@@ -581,13 +576,12 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
if (businnessScope.contains(",")) {
|
|
|
String[] ss = businnessScope.split(",");
|
|
|
List<OrganizationBusinessScope> list = new ArrayList<>();
|
|
|
- for (int i = 0; i < ss.length; i++) {
|
|
|
- String string = ss[i];
|
|
|
- OrganizationBusinessScope obs = new OrganizationBusinessScope();
|
|
|
- obs.setUid(uid);
|
|
|
- obs.setKeyword(string);
|
|
|
- list.add(obs);
|
|
|
- }
|
|
|
+ for (String string : ss) {
|
|
|
+ OrganizationBusinessScope obs = new OrganizationBusinessScope();
|
|
|
+ obs.setUid(uid);
|
|
|
+ obs.setKeyword(string);
|
|
|
+ list.add(obs);
|
|
|
+ }
|
|
|
organizationBusinessScopeMapper.insertBatch(list);
|
|
|
|
|
|
} else {
|
|
|
@@ -608,7 +602,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
um.setAid(aid);
|
|
|
userMidMapper.insertSelective(um);
|
|
|
}
|
|
|
- StringBuffer str=new StringBuffer(a.getName()).append("修改了主营产品");
|
|
|
+ StringBuilder str=new StringBuilder(a.getName()).append("修改了主营产品");
|
|
|
if (useBusinnessScope==null){useBusinnessScope="无";}
|
|
|
str.append("[").append(useBusinnessScope).append("=> ").append(businnessScope).append("]");
|
|
|
userDataLogMapper.insert(new UserDataLog(uid,str.toString()));
|