修复添加目录SQL错误 #881
parent
8d6de72429
commit
b7d85a270e
|
@ -12,7 +12,7 @@ import java.util.List;
|
||||||
@Repository
|
@Repository
|
||||||
public interface PlatformCatalogMapper {
|
public interface PlatformCatalogMapper {
|
||||||
|
|
||||||
@Insert("INSERT INTO platform_catalog (id, name, platform_id, parent_id, civil_code, business_group_id) VALUES" +
|
@Insert("INSERT INTO wvp_platform_catalog (id, name, platform_id, parent_id, civil_code, business_group_id) VALUES" +
|
||||||
"(#{id}, #{name}, #{platformId}, #{parentId}, #{civilCode}, #{businessGroupId})")
|
"(#{id}, #{name}, #{platformId}, #{parentId}, #{civilCode}, #{businessGroupId})")
|
||||||
int add(PlatformCatalog platformCatalog);
|
int add(PlatformCatalog platformCatalog);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ public interface PlatformCatalogMapper {
|
||||||
PlatformCatalog select(String id);
|
PlatformCatalog select(String id);
|
||||||
|
|
||||||
@Update(value = {" <script>" +
|
@Update(value = {" <script>" +
|
||||||
"UPDATE platform_catalog " +
|
"UPDATE wvp_platform_catalog " +
|
||||||
"SET name=#{name}" +
|
"SET name=#{name}" +
|
||||||
"WHERE id=#{id}"+
|
"WHERE id=#{id}"+
|
||||||
"</script>"})
|
"</script>"})
|
||||||
|
@ -41,11 +41,11 @@ public interface PlatformCatalogMapper {
|
||||||
@Select("SELECT *, (SELECT COUNT(1) from wvp_platform_catalog where parent_id = pc.id) as children_count from wvp_platform_catalog pc WHERE pc.platform_id=#{platformId}")
|
@Select("SELECT *, (SELECT COUNT(1) from wvp_platform_catalog where parent_id = pc.id) as children_count from wvp_platform_catalog pc WHERE pc.platform_id=#{platformId}")
|
||||||
List<PlatformCatalog> selectByPlatForm(String platformId);
|
List<PlatformCatalog> selectByPlatForm(String platformId);
|
||||||
|
|
||||||
@Select("SELECT pc.* FROM platform_catalog pc WHERE pc.id = (SELECT pp.catalog_id from wvp_platform pp WHERE pp.server_gb_id=#{platformId})")
|
@Select("SELECT pc.* FROM wvp_platform_catalog pc WHERE pc.id = (SELECT pp.catalog_id from wvp_platform pp WHERE pp.server_gb_id=#{platformId})")
|
||||||
PlatformCatalog selectDefaultByPlatFormId(String platformId);
|
PlatformCatalog selectDefaultByPlatFormId(String platformId);
|
||||||
|
|
||||||
|
|
||||||
@Select("SELECT pc.* FROM platform_catalog pc WHERE pc.id = #{id}")
|
@Select("SELECT pc.* FROM wvp_platform_catalog pc WHERE pc.id = #{id}")
|
||||||
PlatformCatalog selectParentCatalog(String id);
|
PlatformCatalog selectParentCatalog(String id);
|
||||||
|
|
||||||
@Select("SELECT pc.id as channel_id, pc.name, pc.civil_code, pc.business_group_id,'1' as parental, pc.parent_id " +
|
@Select("SELECT pc.id as channel_id, pc.name, pc.civil_code, pc.business_group_id,'1' as parental, pc.parent_id " +
|
||||||
|
|
|
@ -356,7 +356,7 @@ public class PlayController {
|
||||||
message.setKey(key);
|
message.setKey(key);
|
||||||
message.setId(uuid);
|
message.setId(uuid);
|
||||||
|
|
||||||
String fileName = deviceId + "_" + channelId + "_" + DateUtil.getNowForUrl() + "jpg";
|
String fileName = deviceId + "_" + channelId + "_" + DateUtil.getNowForUrl() + ".jpg";
|
||||||
playService.getSnap(deviceId, channelId, fileName, (code, msg, data) -> {
|
playService.getSnap(deviceId, channelId, fileName, (code, msg, data) -> {
|
||||||
if (code == InviteErrorCode.SUCCESS.getCode()) {
|
if (code == InviteErrorCode.SUCCESS.getCode()) {
|
||||||
message.setData(data);
|
message.setData(data);
|
||||||
|
|
Loading…
Reference in New Issue