freemarker的使用

    

    导出报告

    

    <#setting datetime_format="yyyy-MM-dd HH:mm:ss"/>

    

        

        

            

                

                ${assetScanningTask.taskName!}

            

            

                

                <#if (assetScanningTask.dsName)??>

                  ${assetScanningTask.dsName!}

                <#else>

                     

                

            

            

                

                ${assetScanningTask.startTime!}

            

            

                

                ${assetScanningTask.endTime!}

            

        

    

    

        

            

                数据地图系统 

                ${assetScanningTask.taskName}任务报告

            

        

        

            

                © 2019 顺丰科技 版权所有 

                page /

            

        

    

    

        

            基本信息

            

                

                    

                        

                        ${assetScanningTask.taskName!}

                    

                    

                        

                        ${assetScanningTask.startTime!}

                    

                    

                        <#if assetScanningTask.scanningCycle == 1>

                            <#assign scanningCycle='仅一次'/>

                        <#elseif assetScanningTask.scanningCycle == 2>

                            <#assign scanningCycle='每日一次'/>

                        <#elseif assetScanningTask.scanningCycle == 3>

                            <#assign scanningCycle='每周一次'/>

                        <#elseif assetScanningTask.scanningCycle == 4>

                            <#assign scanningCycle='每月一次'/>

                        <#elseif assetScanningTask.scanningCycle == 5>

                            <#assign scanningCycle='每年一次'/>

                        

                        

                        ${scanningCycle!}

                    

                

                

                    

                        

                        ${assetScanningTask.includeIp!}

                    

                    

                        

                        

                    

                    

                        <#if assetScanningTask.taskStatus == 1>

                            <#assign taskStatus='未开始'/>

                        <#elseif assetScanningTask.taskStatus == 2 >

                            <#assign taskStatus='执行中'/>

                        <#elseif assetScanningTask.taskStatus == 3>

                            <#assign taskStatus='停止'/>

                        <#elseif assetScanningTask.taskStatus == 4>

                            <#assign taskStatus='已完成'/>

                        

                        

                        ${taskStatus!}

                    

                

                

                    

                        

                        ${assetScanningTask.port!}

                    

                    

                        

                        ${assetScanningTask.assetNum!}

                    

                    

                        

                        ${assetScanningTask.sensiAssetNum!}

                    

                

            

            

            

                

                    列表信息

                

            

            

                

                    

                        序号

                        资产IP

                        资产类别

                        协议

                        端口

                        服务

                        资产状态

                        资产发现时间

                        是否敏感资产

                    

                

                

                    <#list assetList as x>

                        

                            ${x.id!}

                            ${x.host!}

                            ${x.assetType!}

                            ${x.protocol!}

                            ${x.port!}

                            ${x.service!}

                            ${x.status!}

                            ${x.createTime!}

                            ${x.isSensitive!}

                        

                    

                

            

        

    

你可能感兴趣的:(freemarker的使用)