|
@@ -550,10 +550,10 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
|
|
|
|
|
|
WmDaAgent wmDaAgent1 = wmDaAgentMapper.selectOne(Wrappers.query(query));
|
|
WmDaAgent wmDaAgent1 = wmDaAgentMapper.selectOne(Wrappers.query(query));
|
|
if (wmDaAgent1 != null) {
|
|
if (wmDaAgent1 != null) {
|
|
- for (String upId : ids) {
|
|
|
|
|
|
+ for (String upId : deptIds) {
|
|
WmRelation wmRelation = new WmRelation();
|
|
WmRelation wmRelation = new WmRelation();
|
|
wmRelation.setUpId(Integer.parseInt(upId));
|
|
wmRelation.setUpId(Integer.parseInt(upId));
|
|
- wmRelation.setDownId(Integer.parseInt(wmDaAgent1.getId()));
|
|
|
|
|
|
+ wmRelation.setDownId(Integer.parseInt(wmDaAgent1.getDeptId()));
|
|
newList.add(wmRelation);
|
|
newList.add(wmRelation);
|
|
wmRelationMapper.deleteByPrimaryKey(Long.valueOf(wmRelation.getDownId()));
|
|
wmRelationMapper.deleteByPrimaryKey(Long.valueOf(wmRelation.getDownId()));
|
|
}
|
|
}
|