Bladeren bron

项目修改接口新增等级分类

anderx 1 jaar geleden
bovenliggende
commit
e240e50960

+ 1 - 1
src/main/java/com/goafanti/business/service/impl/RestrictProjectServiceImpl.java

@@ -84,7 +84,7 @@ public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMa
         userBusinessMapper.insertSelective(ub);
         addUserLog(in,0);
         User user = userMapper.selectByPrimaryKey(in.getUid());
-        BusinessProject businessProject = businessProjectMapper.selectByPrimaryKey(in.getPid());
+        BusinessProject businessProject = businessProjectMapper.queryById(in.getPid());
         String str =String.format("客户:%s,已被营销员%s领取了【限定项目:%s】",user.getNickname(),TokenManager.getAdminToken().getName(),businessProject.getBname());
         //如果客户是当事人的不提示消息
         if (user.getAid()!=null&&!user.getAid().equals(aid)){

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

@@ -815,7 +815,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 			userBusiness = new UserBusiness();
 			userFollowBusiness = new UserFollowBusiness();
 			ufbId = UUID.randomUUID().toString();
-			businessName = businessProjectMapper.selectByPrimaryKey(ub.getBusinessProjectId()).getBname();
+			businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
 			UserBusiness us = userBusinessMapper.selectByPrimaryKey(ub.getBusinessId());
 			if (StringUtils.isNotBlank(ub.getBusinessId())) {
 				// 更新业务表
@@ -879,7 +879,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 				userBusiness = new UserBusiness();
 				userFollowBusiness = new UserFollowBusiness();
 				ufbId = UUID.randomUUID().toString();
-				businessName = businessProjectMapper.selectByPrimaryKey(ub.getBusinessProjectId()).getBname();
+				businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
 				UserBusiness us = userBusinessMapper.selectByPrimaryKey(ub.getBusinessId());
 				if (StringUtils.isNotBlank(ub.getBusinessId())) {
 					// 更新业务表
@@ -1085,7 +1085,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 			UserFollowBusiness userFollowBusiness = null;
 			for (BusinessListBo ub : fbb.getUserBusinessList()) {
 				userFollowBusiness = new UserFollowBusiness();
-				businessName = businessProjectMapper.selectByPrimaryKey(ub.getBusinessProjectId()).getBname();
+				businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
 				if (StringUtils.isNotBlank(ub.getUfbId())) {
 					userFollowBusiness.setId(ub.getUfbId());
 					userFollowBusiness.setFollowSituation(ub.getFollowSituation());

+ 1 - 1
src/main/java/com/goafanti/order/service/impl/OrderChangeServiceImpl.java

@@ -1421,7 +1421,7 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 				if(t.getTid()!=null) {
 					//type 0正常 1新增 2修改 3删除
 					TChangeTask tt=tChangeTaskMapper.selectByPrimaryKey(t.getId());
-					BusinessProject bp = businessProjectMapper.selectByPrimaryKey(tt.getCommodityId());
+					BusinessProject bp = businessProjectMapper.queryById(tt.getCommodityId());
 					Integer member=null;
 					if (t.getType()==3) {
 

+ 2 - 2
src/main/java/com/goafanti/order/service/impl/OrderNewServiceImpl.java

@@ -242,7 +242,7 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 		addTTaskMember(t);
 		addTaskMid(t);
 		//如果是会员添加同性质不同项目
-		BusinessProject bp=businessProjectMapper.selectByPrimaryKey(t.getCommodityId());
+		BusinessProject bp=businessProjectMapper.queryById(t.getCommodityId());
 		if (bp.getType()==ProjectType.HY.getCode()){
 			InputAddTask t2=new InputAddTask();
 			BeanUtils.copyProperties(t,t2);
@@ -325,7 +325,7 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 		tm.setTid(t.getId());
 		//判断这个项目是不是高新复审
 		int highNewRetrial=0;
-		BusinessProject b=businessProjectMapper.selectByPrimaryKey(t.getCommodityId());
+		BusinessProject b=businessProjectMapper.queryById(t.getCommodityId());
 		if (b.getType()==5){
 			int i=tOrderTaskMapper.getHighNewRetrial(t.getOrderNo());
 			if (i>0) {

+ 3 - 3
src/main/java/com/goafanti/order/service/impl/OrderProjectServiceImpl.java

@@ -174,7 +174,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 			//处理客户已派项目
 			projectDistributionPushUserMid(tn);
 			//处理限定项目状态
-			BusinessProject businessProject = businessProjectMapper.selectByPrimaryKey(t.getCommodityId());
+			BusinessProject businessProject = businessProjectMapper.queryById(t.getCommodityId());
 			if (businessProject.getRestrictStatus()==1){
 				RestrictProject use = restrictProjectMapper.selectByParam(new InputRestrictProject(tn.getBuyerId(), null, t.getCommodityId()));
 				if (use!=null){
@@ -803,7 +803,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 					if(ob.getDunType()==3&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 						flag=true;
 					}else if (ob.getDunType()==2) {
-						BusinessProject bp=businessProjectMapper.selectByPrimaryKey(task2.getCommodityId());
+						BusinessProject bp=businessProjectMapper.queryById(task2.getCommodityId());
 						if (bp.getType()==0&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 							flag=true;
 						}
@@ -870,7 +870,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 					if(op.getDunType()==3&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 						flag=true;
 					}else if (op.getDunType()==2) {
-						BusinessProject bp=businessProjectMapper.selectByPrimaryKey(task2.getCommodityId());
+						BusinessProject bp=businessProjectMapper.queryById(task2.getCommodityId());
 						if (bp.getType()==0&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 							flag=true;
 						}