|
|
@@ -570,8 +570,6 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
}else{
|
|
|
if(!isUserOwner) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_LOCKED,businessName,""));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
// if (us.getFollowSituation()!=5&&ub.getFollowSituation()==5) {//如果改成已签合同,则锁定业务
|
|
|
// if (StringUtils.isNotBlank(fbb.getUid())) ub.setUid(fbb.getUid());
|
|
|
// lockProject(ub);//锁定客户业务
|
|
|
@@ -669,33 +667,6 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 锁定用户
|
|
|
- * @param ub
|
|
|
- */
|
|
|
- private void lockProject(BusinessListBo ub) {
|
|
|
- UserLockRelease ulr= new UserLockRelease();
|
|
|
- ulr.setId(UUID.randomUUID().toString());
|
|
|
- ulr.setType(1);
|
|
|
- ulr.setAid(TokenManager.getAdminId());
|
|
|
- ulr.setBusinessProjectId(ub.getBusinessProjectId());
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat( " yyyy-MM-dd HH:mm:ss " );
|
|
|
- try {
|
|
|
- if (null==ub.getCreateTime()) {
|
|
|
- ulr.setLockTime(new Date());
|
|
|
- }else {
|
|
|
- ulr.setLockTime(sdf.parse(ub.getCreateTime()));
|
|
|
- }
|
|
|
- } catch (ParseException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- ulr.setStatus(UserLockReleaseStatus.LOCKED.getCode());
|
|
|
- ulr.setUid(ub.getUid());
|
|
|
-
|
|
|
- userLockReleaseMapper.insert(ulr);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
@SuppressWarnings("unused")
|
|
|
private void releaseProject(List<LockingReleaseBo> businessLockedList) {
|
|
|
if(businessLockedList != null && businessLockedList.size()>0){
|