|
|
@@ -22,10 +22,12 @@ import com.goafanti.admin.service.AdminService;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.dao.AdminLocationMapper;
|
|
|
import com.goafanti.common.dao.AdminMapper;
|
|
|
+import com.goafanti.common.dao.UserBusinessMapper;
|
|
|
import com.goafanti.common.dao.UserLockReleaseMapper;
|
|
|
import com.goafanti.common.dao.UserMapper;
|
|
|
import com.goafanti.common.dao.UserRoleMapper;
|
|
|
import com.goafanti.common.model.Admin;
|
|
|
+import com.goafanti.common.model.UserBusiness;
|
|
|
import com.goafanti.common.utils.LoggerUtils;
|
|
|
import com.goafanti.common.utils.PasswordUtil;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
@@ -44,7 +46,9 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
@Autowired
|
|
|
private AdminLocationMapper adminLocationMapper;
|
|
|
@Autowired
|
|
|
- private UserLockReleaseMapper UserLockReleaseMapper;
|
|
|
+ private UserLockReleaseMapper userLockReleaseMapper;
|
|
|
+ @Autowired
|
|
|
+ private UserBusinessMapper userBusinessMapper;
|
|
|
@Resource(name = "passwordUtil")
|
|
|
private PasswordUtil passwordUtil;
|
|
|
@Override
|
|
|
@@ -390,7 +394,18 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
@Override
|
|
|
public int updatePrivateBusinessTransfer(String inputId, String uid, String pid) {
|
|
|
String aid=TokenManager.getAdminId();
|
|
|
- int i=UserLockReleaseMapper.updatePrivateBusinessTransfer( inputId, uid, pid,aid);
|
|
|
+ int i=userLockReleaseMapper.updatePrivateBusinessTransfer( inputId, uid, pid,aid);
|
|
|
+ if (i>0) {
|
|
|
+ UserBusiness ub=new UserBusiness();
|
|
|
+ ub.setId(UUID.randomUUID().toString());
|
|
|
+ ub.setAid(inputId);
|
|
|
+ ub.setUid(uid);
|
|
|
+ ub.setBusinessProjectId(pid);
|
|
|
+ ub.setCustomerStatus(0);
|
|
|
+ ub.setFollowSituation(5);
|
|
|
+ ub.setRemarks("转交客户业务触发");
|
|
|
+ userBusinessMapper.insertSelective(ub);
|
|
|
+ }
|
|
|
return i;
|
|
|
}
|
|
|
|