package com.trs.project.test;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.trs.project.util.RSAUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Date;


public class Test2 {
    public static void main(String[] args) throws SQLException {

        System.out.println(3/2);
        System.out.println((double)3/2);
        //(int)Math.ceil((double)3/2);
        System.out.println((int)Math.ceil((double)3/2));
        String html = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-top:1px solid #3d92dc;border-left:1px solid #3d92dc;border-right:1px solid #3d92dc;\">\n" +
                "    <tbody>\n" +
                "        <tr>\n" +
                "            <td>\n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">职权编码</td>\n" +
                "                            <td width=\"250\" style=\"padding-left:15px;\"><!--<$[职权编号]>begin-->H0200300<!--<$[职权编号]>end--></td>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">职权类别</td>\n" +
                "                            <td style=\"padding-left:15px;\">行政确认</td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">职权名称</td>\n" +
                "                            <td style=\"padding-left:15px;\"><!--<$[职权名称]>begin-->评定自然科学研究系列专业技术职务任职资格<!--<$[职权名称]>end--></td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                \n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">行使层级</td>\n" +
                "                            <td style=\"padding-left:15px;\"><!--<$[行使层级]>begin-->市级<!--<$[行使层级]>end--></td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">实施机关</td>\n" +
                "                            <td style=\"padding-left:15px;\"><!--<$[实施机关]>begin-->北京市科学技术委员会<!--<$[实施机关]>end--></td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                \n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">办理处室</td>\n" +
                "                            <td style=\"padding-left:15px;\"><!--<$[办理处室]>begin-->人事处<!--<$[办理处室]>end--></td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">设定依据</td>\n" +
                "                            <td style=\"padding:10px 15px;\">\n" +
                "                                <p>\n" +
                "                                    <!--<$[设定依据]>begin-->《北京市科学技术委员会职能配置、内设机构和人员编制规定》<!--<$[设定依据]>end--></p>\n" +
                "                            </td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                \n" +
                "                \n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">流程图</td>\n" +
                "                            <td style=\"padding-left:15px;\">\n" +
                "                                <a href=\"/attach/0/4a4b7ede853840508fa3abbe391d4b62.pdf\" target=\"_blank\"><!--<$[职权名称]>begin-->评定自然科学研究系列专业技术职务任职资格<!--<$[职权名称]>end-->流程图</a>\n" +
                "                            </td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">责任清单</td>\n" +
                "                            <td style=\"padding-left:15px;\">\n" +
                "                                \n" +
                "<a href=\"/attach/0/f754a228cf4c4c4d96fea6c60cb46a5d.pdf\" target=\"_blank\"><!--<$[职权名称]>begin-->评定自然科学研究系列专业技术职务任职资格<!--<$[职权名称]>end-->责任清单</a>\t\t\t\t\t\t\t\t</td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "                <table width=\"100%\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"txt\" style=\"border-bottom:1px solid #3d92dc;\">\n" +
                "                    <tbody>\n" +
                "                        <tr>\n" +
                "                            <td width=\"150\" align=\"center\" bgcolor=\"#f8f8f8\">监督电话</td>\n" +
                "                            <td style=\"padding-left:15px;\"><!--<$[监督电话]>begin-->（010）55577949<!--<$[监督电话]>end--></td>\n" +
                "                        </tr>\n" +
                "                    </tbody>\n" +
                "                </table>\n" +
                "            </td>\n" +
                "        </tr>\n" +
                "    </tbody>\n" +
                "</table>";
    }


}
