- 博客(7)
- 收藏
- 关注
原创 数据分表实现
判断数据表是否写满 更信记录历史使用表信息(logControl:开始时间、结束时间、是否存满flag)redis和数据库(sys_setting:上次使用数据库表名,已存数据总量)更新即将使用的表信息。在进行分页计算,获取需要从每张表获取的数据map 【start,end】TableDataSizeField (该日志表的总数据量)如果redis无相关信息,则查询数据库。把每张表符合条件的数据总数计算出来。redis 获取 表相关属性;先按时间把要查询的表过滤出来。如果表已经用完需要新建表。
2023-03-31 15:22:22 79 1
原创 js eval()
$(".renderWarningData").children(‘td’).each(function (){let id = $(this).attr(‘id’);if (typeof(id) != ‘undefined’){let count = eval(‘data.’+id);if (typeof(count) != ‘undefined’){if (count == 0){$(this).text(0)} else {let redirect = $(this).attr(‘re
2021-07-13 17:01:18 73
原创 js关闭当前页面提交父页面
//提交父页面function submitParent() { var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name parent.layer.close(index); $('#editForm', window.parent.document).submit();}
2021-07-12 16:24:10 165
原创 mq mock
org.mockito mockito-core 3.8.0 test private static final String MESSAGE = “”;@Resourceprivate JcOrderConsumer jcOrderConsumer;@Testpublic ...
2021-07-02 13:28:49 231
原创 上传excle,解析,下载excle模板,压缩下载
public void batchDownLoadcustomerInfo(SearchAssist searchAssist, HttpServletRequest request, HttpServletResponse response ) { HashSet<String> traderNameSets = new HashSet<>(); try { // 获取excel路径 Workbook workbook = WorkbookFactory.c
2021-04-21 15:45:07 88
原创 同步请求浏览器返回错误提醒
public void alertShowMessage(HttpServletResponse response, String message){ response.setContentType("text/html; charset=UTF-8"); PrintWriter pw = null; try { pw = response.getWriter(); pw.print("<script type='text/javascript'>alert('" +
2021-04-21 11:30:41 92
原创 提交检验信息,通过后 ,弹窗网页
function checkGeInfo(buyorderId) {$.ajax({type: “POST”,url: page_url + “/order/georder/checkInfo.do”,data: {“buyorderId”: buyorderId},dataType: ‘json’,success: function (data) {console.log(data)if (data.code==0) {layer.open({type: 2,shadeClose:
2020-11-19 15:24:52 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人