ソースを参照

修改公出逻辑,只有在主跟进才会刷新中间表最后跟进时间与人

anderx 4 年 前
コミット
66449a3781

+ 1 - 1
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -458,7 +458,7 @@ public class AdminCustomerApiController extends BaseApiController{
 		fbb.setResult(result);
 		fbb.setFollowTime(followTime);
 		fbb.setUserBusinessList(list);	
-		customerService.addFollow(fbb,null);
+		customerService.addFollow(fbb,null,1);
 		return res;
 	}
 	

+ 2 - 1
src/main/java/com/goafanti/customer/service/CustomerService.java

@@ -171,8 +171,9 @@ public interface CustomerService {
 	/**
 	 * 添加拜访记录
 	 * @param fbb
+	 * @param mainStatus 0辅助跟进 1主要跟进
 	 */
-	int addFollow(FollowBusinessBo fbb,String ufid) throws BusinessException;
+	int addFollow(FollowBusinessBo fbb,String ufid,Integer mainStatus) throws BusinessException;
 	
 	/**
 	 * 查询拜访记录详情

+ 3 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -636,7 +636,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 
 	@Override
 	@Transactional
-	public int addFollow(FollowBusinessBo fbb,String ufid) throws BusinessException {
+	public int addFollow(FollowBusinessBo fbb,String ufid,Integer mainStatus) throws BusinessException {
 		// 更新跟进记录表
 		SimpleDateFormat format = new SimpleDateFormat(AFTConstants.YYYYMMDDHHMMSS);
 		UserFollow userFollow = new UserFollow();
@@ -785,7 +785,9 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 
 			}
 		}
+		if (mainStatus==1){
 		followProject(fbb.getUid());
+		}
 		return 1;
 	}
 

+ 1 - 1
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -260,7 +260,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 			fbb.setFollowTime(DateUtils.formatDate(p.getClockInTime(), AFTConstants.YYYYMMDDHHMMSS));
 			String ufid=UUID.randomUUID().toString();
 			p.setUfid(ufid);
-			customerService.addFollow(fbb,ufid);
+			customerService.addFollow(fbb,ufid,use.getMianStatus());
 			str="公出人员打卡";
 		}else {
 			str="刷新打卡";