|
|
@@ -4,9 +4,11 @@ import com.goafanti.business.bo.InputRestrictProject;
|
|
|
import com.goafanti.business.bo.RestrictProjectPageList;
|
|
|
import com.goafanti.business.service.RestrictProjectService;
|
|
|
import com.goafanti.common.dao.RestrictProjectMapper;
|
|
|
+import com.goafanti.common.dao.UserBusinessMapper;
|
|
|
import com.goafanti.common.dao.UserTransferLogMapper;
|
|
|
import com.goafanti.common.error.BusinessException;
|
|
|
import com.goafanti.common.model.RestrictProject;
|
|
|
+import com.goafanti.common.model.UserBusiness;
|
|
|
import com.goafanti.common.model.UserTransferLog;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
@@ -16,10 +18,7 @@ import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMapper> implements RestrictProjectService {
|
|
|
@@ -27,6 +26,8 @@ public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMa
|
|
|
private RestrictProjectMapper restrictProjectMapper;
|
|
|
@Resource
|
|
|
private UserTransferLogMapper userTransferLogMapper;
|
|
|
+ @Resource
|
|
|
+ private UserBusinessMapper userBusinessMapper;
|
|
|
@Override
|
|
|
public int add(InputRestrictProject in) {
|
|
|
String aid = TokenManager.getAdminId();
|
|
|
@@ -43,6 +44,15 @@ public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMa
|
|
|
in.setId(use.getId());
|
|
|
restrictProjectMapper.updateByPrimaryKeySelective(in);
|
|
|
}
|
|
|
+ UserBusiness ub=new UserBusiness();
|
|
|
+ ub.setId(UUID.randomUUID().toString());
|
|
|
+ ub.setAid(aid);
|
|
|
+ ub.setUid(in.getUid());
|
|
|
+ ub.setBusinessProjectId(in.getPid());
|
|
|
+ ub.setCustomerStatus(in.getCustomerStatus());
|
|
|
+ ub.setFollowSituation(in.getFollowSituation());
|
|
|
+ ub.setRemarks("领取限定项目触发");
|
|
|
+ userBusinessMapper.insertSelective(ub);
|
|
|
addUserLog(in,0);
|
|
|
return 1;
|
|
|
}
|