|
|
|
|
@ -40,14 +40,15 @@ public class GateInfoServiceImpl implements IGateInfoService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int updateGate(IrrBDGate irrBDGate) { |
|
|
|
|
int k = 0; |
|
|
|
|
/* int k = 0; |
|
|
|
|
//编辑时如果站点更换清除之前数据配置
|
|
|
|
|
IrrBDGate judgeGate = irrBDGateMapper.selectByPrimaryKey(irrBDGate.getStrobeCode()); |
|
|
|
|
int i = irrBDGateMapper.updateByPrimaryKeySelective(irrBDGate); |
|
|
|
|
if (!irrBDGate.getDeptId().equals(judgeGate.getDeptId())) { |
|
|
|
|
k = irrBDGateRefDataMapper.deleteByPrimaryKey(irrBDGate.getStrobeCode()); |
|
|
|
|
} |
|
|
|
|
return i+k; |
|
|
|
|
return i+k;*/ |
|
|
|
|
return irrBDGateMapper.updateByPrimaryKeySelective(irrBDGate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|