2021与蓝度共同重构项目,服务端
liuhaonan
2022-04-15 860833edc66eb9918ebb82f2b7f7469aa34ce610
诺瓦更改
已修改7个文件
33 ■■■■ 文件已修改
dao/src/main/java/com/sandu/ximon/dao/domain/LEDProgramFile.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/java/com/sandu/ximon/dao/domain/LedSFile.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/resources/mapper/LEDProgramFileMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/resources/mapper/LedSFileMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ximon-admin/src/main/java/com/sandu/ximon/admin/param/LEDProgramFileParam.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LEDProgramFileService.java 补丁 | 查看 | 原始文档 | blame | 历史
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LedSFileService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/java/com/sandu/ximon/dao/domain/LEDProgramFile.java
@@ -46,18 +46,22 @@
     */
    private String fileType;
    /**
     * 缩略图
     */
    private String screenShot;
    /**
     * 链接
     */
    private String fileUrl;
    /**
     *
     */
    private String screenShot;
    /**
     *
     */
    private String md5;
    /**
     * 适用型号 0:N 1:S
     */
    private Integer kind;
dao/src/main/java/com/sandu/ximon/dao/domain/LedSFile.java
@@ -58,6 +58,11 @@
    private String screenShot;
    /**
     * md5
     */
    private String md5;
    /**
     * 图片高度
     */
    private Integer height;
dao/src/main/resources/mapper/LEDProgramFileMapper.xml
@@ -13,6 +13,7 @@
            <result property="fileType" column="file_type" jdbcType="VARCHAR"/>
            <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
            <result property="screenShot" column="screen_shot" jdbcType="VARCHAR"/>
            <result property="md5" column="md5" jdbcType="VARCHAR"/>
            <result property="kind" column="kind" jdbcType="INTEGER"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
    </resultMap>
@@ -20,7 +21,7 @@
    <sql id="Base_Column_List">
        id,user_id,user_name,
        name,size,file_type,
        file_url,screen_shot,kind,
        create_time
        file_url,screen_shot,md5,
        kind,create_time
    </sql>
</mapper>
dao/src/main/resources/mapper/LedSFileMapper.xml
@@ -12,6 +12,7 @@
        <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
        <result property="screenShot" column="screen_shot" jdbcType="VARCHAR"/>
        <result property="fileType" column="file_type" jdbcType="VARCHAR"/>
        <result property="md5" column="md5" jdbcType="VARCHAR"/>
        <result property="fileSize" column="file_size" jdbcType="BIGINT"/>
        <result property="height" column="height" jdbcType="INTEGER"/>
        <result property="width" column="width" jdbcType="INTEGER"/>
ximon-admin/src/main/java/com/sandu/ximon/admin/param/LEDProgramFileParam.java
@@ -36,5 +36,9 @@
     */
    private String screenShot;
    /**
     * md5
     */
    private String md5;
}
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LEDProgramFileService.java
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LedSFileService.java
@@ -34,7 +34,7 @@
        }
        FileOperationRecord fileOperationRecord=new FileOperationRecord();
        if("mp4".equals(fileUploadDto.getFileType())){
            fileUploadDto.setScreenShot(fileUploadDto.getFileUrl()+"?x-oss-process=video/snapshot,t_10000,m_fast");
            fileOperationRecord.setScreenShot(fileUploadDto.getFileUrl()+"?x-oss-process=video/snapshot,t_10000,m_fast");
        }
        BeanUtils.copyProperties(fileUploadDto, fileOperationRecord);
        fileOperationRecordService.save(fileOperationRecord);