初始化
This commit is contained in:
parent
e838d2cb88
commit
b19f1ccabd
@ -24,6 +24,6 @@ public interface SourceDao {
|
|||||||
@Param("projection") String projection);
|
@Param("projection") String projection);
|
||||||
public Integer findSourceCount();
|
public Integer findSourceCount();
|
||||||
public Integer insertSource(Source source);
|
public Integer insertSource(Source source);
|
||||||
|
public Integer updateSource(Source source);
|
||||||
public Integer deleteSourcesById(Set<String> sourceIds);
|
public Integer deleteSourcesById(Set<String> sourceIds);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,6 @@ public interface SourceService {
|
|||||||
public Integer findSourceCount();
|
public Integer findSourceCount();
|
||||||
|
|
||||||
public Integer insertSource(Source source);
|
public Integer insertSource(Source source);
|
||||||
|
public Integer updateSource(Source source);
|
||||||
public Integer deleteSourcesById(Set<String> sourceIds);
|
public Integer deleteSourcesById(Set<String> sourceIds);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,11 @@ public class SourceServiceImpl implements SourceService {
|
|||||||
return sourceDao.insertSource(source);
|
return sourceDao.insertSource(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer updateSource(Source source) {
|
||||||
|
return sourceDao.updateSource(source);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer deleteSourcesById(Set<String> sourceIds) {
|
public Integer deleteSourcesById(Set<String> sourceIds) {
|
||||||
return sourceDao.deleteSourcesById(sourceIds);
|
return sourceDao.deleteSourcesById(sourceIds);
|
||||||
|
|||||||
@ -74,7 +74,15 @@
|
|||||||
, #{description}
|
, #{description}
|
||||||
);
|
);
|
||||||
</insert>
|
</insert>
|
||||||
|
<update id="updateSource" parameterType="com.gis3c.ol.entity.Source">
|
||||||
|
UPDATE c3gis_ol_source SET
|
||||||
|
sourceName = #{sourceName},
|
||||||
|
type = #{type},
|
||||||
|
projection = #{projection},
|
||||||
|
options = #{options, javaType=ObjectJSON}::jsonb,
|
||||||
|
description = #{description}
|
||||||
|
WHERE sourceId = #{sourceId};
|
||||||
|
</update>
|
||||||
<delete id="deleteSourcesById" parameterType="java.util.Set">
|
<delete id="deleteSourcesById" parameterType="java.util.Set">
|
||||||
delete from c3gis_ol_source
|
delete from c3gis_ol_source
|
||||||
WHERE sourceId in
|
WHERE sourceId in
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user