上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: select T.timehour,count(T.es_out_in_id) as number from(select o.es_out_in_id, DATE_FORMAT(create_time,'%H') as timehour from t_tm_eq_scan_record as o 阅读全文
posted @ 2022-03-16 16:38 了悟 阅读(52) 评论(0) 推荐(0) 编辑
摘要: select eq_no, count(if(out_in_type = '01',1,null)) as inCount, //01 进场人次 count(if(out_in_type = '02',1,null)) as OutCount, //02 出场人次 ent_name, ent_id, 阅读全文
posted @ 2022-03-15 15:34 了悟 阅读(71) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/fly-book/p/10990839.html 跳转 阅读全文
posted @ 2022-03-03 17:54 了悟 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 我用的是idea 编译器,执行maven clean 之后就可以了 阅读全文
posted @ 2022-02-22 10:47 了悟 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 在SQL语句中有时需要select *from where code in( '112','113','205'...........'451')此语句中的'112','113','205'...........'451'数据格式如数据很多时要手工写成此格式将非常麻烦 所以可以用excel批量格式化 阅读全文
posted @ 2022-02-21 18:16 了悟 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 4种方法,都是四舍五入,例: 推荐直接第二种 m2() import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; public class format { double f 阅读全文
posted @ 2022-02-11 16:56 了悟 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: 原因:click事件的时候用的是id名,不是类名,改成类名就好了 <button class="btn btn-success btn-sm download-cert" id="download-cert" data-test-examId="${item.id }">下载证书</button> 阅读全文
posted @ 2022-02-11 11:32 了悟 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1. textarea 标签 回显需要 th:text="${news.summary}",普通input标签是 th:value="${news.newsTitle}" <div class="col-sm-11"> <textarea id="summary" name="summary" cl 阅读全文
posted @ 2022-02-10 17:52 了悟 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 业务:查询订单数量和订单总金额 根据国家分组当然还有别的条件,这里不全写了select count(DISTINCT t.customer_id) as customerNum, 去重统计一个国家的下单客户数 sum(t.total_amount) as saleAmount, 统计一个国家的销售金 阅读全文
posted @ 2022-01-19 15:35 了悟 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 可以left join 之后加and 条件。这样查询出来的记录不会少,为空的也能查出来,但是仍然能筛选 例子: select t.product_id, t.unit_price as price, t.number, t.item_total_price, t.remark, t.im_cost_ 阅读全文
posted @ 2022-01-17 16:28 了悟 阅读(905) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页