|
@@ -50,9 +50,6 @@ public class ZwywHldsXsxxServiceImpl implements IZwywHldsXsxxService
|
|
|
ZwywHldsXsxx res = zwywHldsXsxxMapper.selectById(id);
|
|
|
SysHljndsSqwh sysHljndsSqwh = sysHljndsSqwhMapper.selectById(res.getSqwhId());
|
|
|
res.setMc(sysHljndsSqwh.getMc());
|
|
|
- if (!res.getCreateUserId().equals(String.valueOf(SecurityUtils.getUserId()))){
|
|
|
- throw new ServiceException("只允许维护自己创建的数据");
|
|
|
- }
|
|
|
res.setSqMc(sysDeptJlMapper.getXzqhNames(res.getSq()));
|
|
|
res.setSq(sysDeptJlMapper.getXzqhCodes(res.getSq()));
|
|
|
return res;
|
|
@@ -112,6 +109,9 @@ public class ZwywHldsXsxxServiceImpl implements IZwywHldsXsxxService
|
|
|
@Override
|
|
|
public int updateZwywHldsXsxx(ZwywHldsXsxx zwywHldsXsxx)
|
|
|
{
|
|
|
+ if (!zwywHldsXsxx.getCreateUserId().equals(String.valueOf(SecurityUtils.getUserId()))){
|
|
|
+ throw new ServiceException("只允许维护自己创建的数据");
|
|
|
+ }
|
|
|
return zwywHldsXsxxMapper.updateById(zwywHldsXsxx);
|
|
|
}
|
|
|
|