|
@@ -52,25 +52,15 @@ public interface DictTypeMapper
|
|
|
})
|
|
|
int update(DictType dictType);
|
|
|
|
|
|
- @Select({"select id from `dict_type` where dict_name = #{dictName}"})
|
|
|
+ @Select({"select dict_id from `dict_type` where dict_name = #{dictName}"})
|
|
|
Long getByNameWithProjectId(@Param("dictName") String dictName);
|
|
|
|
|
|
+ @Select({"select dict_id from `dict_type` where dict_type = #{dictType}"})
|
|
|
+ Long getByDictType(@Param("dictType") String dictType);
|
|
|
+
|
|
|
@Select({"select * from `dict_type`"})
|
|
|
List<DictType> getDictTypeList();
|
|
|
|
|
|
- @Select({
|
|
|
- "SELECT s.id, s.`name`, s.`type`, s.`config`,",
|
|
|
- " p.id 'project.id',",
|
|
|
- " p.`name` 'project.name',",
|
|
|
- " p.`description` 'project.description',",
|
|
|
- " p.`pic` 'project.pic',",
|
|
|
- " p.`user_id` 'project.userId',",
|
|
|
- " p.`org_id` 'project.orgId',",
|
|
|
- " p.`visibility` 'p.visibility'",
|
|
|
- "FROM source s INNER JOIN project p on p.id = s.project_id",
|
|
|
- "where s.id = #{sourceId}"
|
|
|
- })
|
|
|
-// SourceWithProject getSourceWithProjectById(@Param("sourceId") Long sourceId);
|
|
|
|
|
|
int insertBatch(@Param("list") List<DictType> dictTypeList);
|
|
|
|