add 新增 SysSocialServiceImpl#updateByBo 更新社会化关系 ;

update 更新 RemoteSocialServiceImpl#updateByBo ;
2.X
Michelle.Chung 1 year ago
parent d3460a653e
commit 79f3f87a6b

@ -48,8 +48,7 @@ public class RemoteSocialServiceImpl implements RemoteSocialService {
*/ */
@Override @Override
public void updateByBo(RemoteSocialBo bo) { public void updateByBo(RemoteSocialBo bo) {
SysSocial update = MapstructUtils.convert(bo, SysSocial.class); sysSocialService.updateByBo(MapstructUtils.convert(bo, SysSocialBo.class));
sysSocialMapper.updateById(update);
} }
/** /**

@ -33,6 +33,11 @@ public interface ISysSocialService {
*/ */
Boolean insertByBo(SysSocialBo bo); Boolean insertByBo(SysSocialBo bo);
/**
*
*/
Boolean updateByBo(SysSocialBo bo);
/** /**
* *

@ -65,6 +65,16 @@ public class SysSocialServiceImpl implements ISysSocialService {
return flag; return flag;
} }
/**
*
*/
@Override
public Boolean updateByBo(SysSocialBo bo) {
SysSocial update = MapstructUtils.convert(bo, SysSocial.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/** /**
* *

Loading…
Cancel
Save