|
@@ -37,7 +37,7 @@ public class LcdInfoServiceImpl implements ILcdInfoService {
|
|
* @param id 消息主键
|
|
* @param id 消息主键
|
|
* @return 消息
|
|
* @return 消息
|
|
*/
|
|
*/
|
|
- @Override
|
|
|
|
|
|
+ /* @Override
|
|
public List<LcdInfoVo> selectLcdInfoById(Long id) {
|
|
public List<LcdInfoVo> selectLcdInfoById(Long id) {
|
|
|
|
|
|
List list = new ArrayList<>();
|
|
List list = new ArrayList<>();
|
|
@@ -52,6 +52,12 @@ public class LcdInfoServiceImpl implements ILcdInfoService {
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
return lcdInfoVos;
|
|
return lcdInfoVos;
|
|
}
|
|
}
|
|
|
|
+*/
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<LcdInfoVo> selectLcdInfoById(Long id) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询消息列表
|
|
* 查询消息列表
|
|
@@ -73,20 +79,22 @@ public class LcdInfoServiceImpl implements ILcdInfoService {
|
|
@Override
|
|
@Override
|
|
public int insertLcdInfo(LcdInfoVo lcdInfoVo) {
|
|
public int insertLcdInfo(LcdInfoVo lcdInfoVo) {
|
|
lcdInfoVo.setCreateTime(DateUtils.getNowDate());
|
|
lcdInfoVo.setCreateTime(DateUtils.getNowDate());
|
|
- lcdInfoMapper.insertLcdInfo(lcdInfoVo);
|
|
|
|
- int userId = lcdInfoMapper.selectUserId(lcdInfoVo);
|
|
|
|
|
|
+ int id = lcdInfoMapper.insertLcdInfo(lcdInfoVo);
|
|
long info_id =lcdInfoVo.getId();
|
|
long info_id =lcdInfoVo.getId();
|
|
- LcdInfoUserRelation lcdInfoUserRelation = new LcdInfoUserRelation();
|
|
|
|
- lcdInfoUserRelation.setLcdInfoId(info_id);
|
|
|
|
- lcdInfoUserRelation.setLcdReceiveUserId(userId);
|
|
|
|
- return lcdInfoUserRelationMapper.insertLcdInfoUserRelation(lcdInfoUserRelation);
|
|
|
|
|
|
+ for (int i = 0; i < lcdInfoVo.getMobile().size(); i++) {
|
|
|
|
+ int userId = lcdInfoMapper.selectUserId(lcdInfoVo.getMobile().get(i));
|
|
|
|
+ LcdInfoUserRelation lcdInfoUserRelation = new LcdInfoUserRelation();
|
|
|
|
+ lcdInfoUserRelation.setLcdInfoId(info_id);
|
|
|
|
+ lcdInfoUserRelation.setLcdReceiveUserId(userId);
|
|
|
|
+ lcdInfoUserRelationMapper.insertLcdInfoUserRelation(lcdInfoUserRelation);
|
|
|
|
+ }
|
|
|
|
+ return id;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public int selectUserId(LcdInfoVo lcdInfoVo) {
|
|
public int selectUserId(LcdInfoVo lcdInfoVo) {
|
|
- return lcdInfoMapper.selectUserId(lcdInfoVo);
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 修改消息
|
|
* 修改消息
|
|
*
|
|
*
|