|
@@ -46,7 +46,7 @@ public class TmContractorServiceImpl extends ServiceImpl<ITmContractorMapper, Tm
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
- public void collaborate(SceneParam param, User user) {
|
|
|
|
|
|
+ public void collaborate(ContractorParam param, User user) {
|
|
if(param.getNumList().isEmpty() || StringUtils.isBlank(param.getUserName())){
|
|
if(param.getNumList().isEmpty() || StringUtils.isBlank(param.getUserName())){
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
}
|
|
}
|
|
@@ -96,7 +96,7 @@ public class TmContractorServiceImpl extends ServiceImpl<ITmContractorMapper, Tm
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void unCollaborate(SceneParam param, User user) {
|
|
|
|
|
|
+ public void unCollaborate(ContractorParam param, User user) {
|
|
if(param.getId() == null){
|
|
if(param.getId() == null){
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
}
|
|
}
|
|
@@ -107,6 +107,15 @@ public class TmContractorServiceImpl extends ServiceImpl<ITmContractorMapper, Tm
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<TmContractorNum> details(ContractorParam param) {
|
|
|
|
+ if(param.getId() == null){
|
|
|
|
+ throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return tmContractorNumService.getByContractorIds(Arrays.asList(param.getId()));
|
|
|
|
+ }
|
|
|
|
+
|
|
private TmContractor getByMainContractor(Long userId, Long userId2) {
|
|
private TmContractor getByMainContractor(Long userId, Long userId2) {
|
|
LambdaQueryWrapper<TmContractor> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<TmContractor> wrapper = new LambdaQueryWrapper<>();
|
|
wrapper.eq(TmContractor::getMainContractorUserId,userId);
|
|
wrapper.eq(TmContractor::getMainContractorUserId,userId);
|