|
|
@@ -9,6 +9,7 @@ import java.util.UUID;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -34,6 +35,7 @@ import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
+import com.goafanti.customer.bo.BusinessListBo;
|
|
|
import com.goafanti.customer.bo.LockingReleaseBo;
|
|
|
import com.goafanti.order.bo.TOrderNewBo;
|
|
|
|
|
|
@@ -396,15 +398,18 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
String aid=TokenManager.getAdminId();
|
|
|
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(5);
|
|
|
- ub.setFollowSituation(5);
|
|
|
- ub.setRemarks("转交客户业务触发");
|
|
|
- userBusinessMapper.insertSelective(ub);
|
|
|
+ List<BusinessListBo> l=userBusinessMapper.selectBusinessProjectByUAPid(uid, aid, pid);
|
|
|
+ if (!l.isEmpty()) {
|
|
|
+ UserBusiness ub=new UserBusiness();
|
|
|
+ ub.setId(UUID.randomUUID().toString());
|
|
|
+ ub.setAid(inputId);
|
|
|
+ ub.setUid(uid);
|
|
|
+ ub.setBusinessProjectId(pid);
|
|
|
+ ub.setCustomerStatus(4);
|
|
|
+ ub.setFollowSituation(5);
|
|
|
+ ub.setRemarks("转交客户业务触发");
|
|
|
+ userBusinessMapper.insertSelective(ub);
|
|
|
+ }
|
|
|
}
|
|
|
return i;
|
|
|
}
|