Explorar el Código

项目分类修改开发

anderx hace 1 año
padre
commit
d590444456

+ 6 - 6
src/main/java/com/goafanti/business/service/impl/BusinessProjectServiceImpl.java

@@ -111,7 +111,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	}
 	@Override
 	public int deleteProject(String id) {
-		BusinessProject bp=businessProjectMapper.queryById(id);
+		BusinessProject bp=businessProjectMapper.selectById(id);
 		if (bp.getDeleteSign()==0) {
 			bp.setDeleteSign(1);
 		}else {
@@ -122,7 +122,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	}
 	@Override
 	public int updateStopProject(String id) {
-		BusinessProject bp=businessProjectMapper.queryById(id);
+		BusinessProject bp=businessProjectMapper.selectById(id);
 		if (Integer.valueOf(bp.getStatus())==0) {
 			bp.setStatus("1");
 		}else {
@@ -133,7 +133,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	}
 	@Override
 	public BusinessProjectBo orgProjects(String id) {
-		BusinessProject bp=businessProjectMapper.queryById(id);
+		BusinessProject bp=businessProjectMapper.selectById(id);
 		BusinessProjectBo bpo=new BusinessProjectBo();
 		BeanUtils.copyProperties(bp,bpo);
 		String cname=getAllCname(bpo.getCid());
@@ -208,7 +208,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 
 	@Override
 	public int updateProject(BusinessProject s) {
-		BusinessProject bp=businessProjectMapper.queryById(s.getId());
+		BusinessProject bp=businessProjectMapper.selectById(s.getId());
 		BeanUtils.copyProperties(s, bp);
 		return businessProjectMapper.update(bp);
 	}
@@ -307,7 +307,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	}
 	@Override
 	public boolean judgeStatus(BusinessProjectModel ps) {
-		 BusinessProject bp=businessProjectMapper.queryById(ps.getPid());
+		 BusinessProject bp=businessProjectMapper.selectById(ps.getPid());
 		if (Integer.valueOf(bp.getStatus())==1) {
 			return true;
 		}else {
@@ -317,7 +317,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	}
 	@Override
 	public boolean judgeBeing(BusinessProject s) {
-		BusinessProject bp=businessProjectMapper.queryById(s.getId());
+		BusinessProject bp=businessProjectMapper.selectById(s.getId());
 		BusinessProject bp1=businessProjectMapper.selectByPrimaryBname(s.getBname());
 		if (null==bp||null==bp1||bp.getId().equals(bp1.getId())) {
 			return false;

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

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

+ 1 - 1
src/main/java/com/goafanti/common/dao/BusinessProjectMapper.java

@@ -25,7 +25,7 @@ public interface BusinessProjectMapper {
      * @param id 主键
      * @return 实例对象
      */
-    BusinessProject queryById(String id);
+    BusinessProject selectById(String id);
 
     
 

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

@@ -822,7 +822,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 			userBusiness = new UserBusiness();
 			userFollowBusiness = new UserFollowBusiness();
 			ufbId = UUID.randomUUID().toString();
-			businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
+			businessName = businessProjectMapper.selectById(ub.getBusinessProjectId()).getBname();
 			UserBusiness us = userBusinessMapper.selectByPrimaryKey(ub.getBusinessId());
 			if (StringUtils.isNotBlank(ub.getBusinessId())) {
 				// 更新业务表
@@ -885,7 +885,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 				userBusiness = new UserBusiness();
 				userFollowBusiness = new UserFollowBusiness();
 				ufbId = UUID.randomUUID().toString();
-				businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
+				businessName = businessProjectMapper.selectById(ub.getBusinessProjectId()).getBname();
 				UserBusiness us = userBusinessMapper.selectByPrimaryKey(ub.getBusinessId());
 				if (StringUtils.isNotBlank(ub.getBusinessId())) {
 					// 更新业务表
@@ -1091,7 +1091,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 			UserFollowBusiness userFollowBusiness = null;
 			for (BusinessListBo ub : fbb.getUserBusinessList()) {
 				userFollowBusiness = new UserFollowBusiness();
-				businessName = businessProjectMapper.queryById(ub.getBusinessProjectId()).getBname();
+				businessName = businessProjectMapper.selectById(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.queryById(tt.getCommodityId());
+					BusinessProject bp = businessProjectMapper.selectById(tt.getCommodityId());
 					Integer member=null;
 					if (t.getType()==3) {
 

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

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

@@ -178,7 +178,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 			//处理客户已派项目
 			projectDistributionPushUserMid(tn);
 			//处理限定项目状态
-			BusinessProject businessProject = businessProjectMapper.queryById(t.getCommodityId());
+			BusinessProject businessProject = businessProjectMapper.selectById(t.getCommodityId());
 			if (businessProject.getRestrictStatus()==1){
 				RestrictProject use = restrictProjectMapper.selectByParam(new InputRestrictProject(tn.getBuyerId(), null, t.getCommodityId()));
 				if (use!=null){
@@ -810,7 +810,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.queryById(task2.getCommodityId());
+						BusinessProject bp=businessProjectMapper.selectById(task2.getCommodityId());
 						if (bp.getType()==0&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 							flag=true;
 						}
@@ -877,7 +877,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.queryById(task2.getCommodityId());
+						BusinessProject bp=businessProjectMapper.selectById(task2.getCommodityId());
 						if (bp.getType()==0&&projectStatus==NewProjectStatus.YWCXZ.getCode()) {
 							flag=true;
 						}