摘要: 1、引入依赖:(对于依赖冲突自行解决) <dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-pay</artifactId> <!--<version>3.4.9.B</version>--> < 阅读全文
posted @ 2019-10-18 20:56 qing222 阅读(3490) 评论(2) 推荐(0) 编辑
摘要: package com.dhht.wechat.util;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject;import java.util.HashMap;import java.util.Map;imp 阅读全文
posted @ 2019-10-18 20:38 qing222 阅读(2267) 评论(0) 推荐(0) 编辑
摘要: <!-- https://mvnrepository.com/artifact/com.github.binarywang/weixin-java-mp --><dependency> <groupId>com.github.binarywang</groupId> <artifactId>weix 阅读全文
posted @ 2019-10-18 20:35 qing222 阅读(536) 评论(0) 推荐(0) 编辑
摘要: !注意:,一定要有 <update id="updateByPrimaryKeySelective" parameterType="com.dhht.model.order.OrderInfo"> update order_info <set> <if test="sendOutStatus != 阅读全文
posted @ 2019-10-18 20:23 qing222 阅读(414) 评论(0) 推荐(0) 编辑
摘要: DELIMITER $$ -- USE `dev_seal_chip_sell_ms_v1`$$; DROP FUNCTION IF EXISTS `GET_ORDER_STATUS`$$ CREATE FUNCTION `get_order_status`(orderId VARCHAR(32)) 阅读全文
posted @ 2019-10-18 20:17 qing222 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 通常情况下,主动回滚事务,可以手动抛异常即可,不抛异常可以如下方式回滚 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); 阅读全文
posted @ 2019-10-18 20:13 qing222 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 由于spring中的aop拦截的是代理对象 当拦截的目标方法被本类的另一个方法调用时,会出现拦截失效 最佳实践: 例如拦截RegulationService的update(regulation)方法,当RegulationService的add方法(当前类的非update方法)调用update方法时 阅读全文
posted @ 2019-10-18 20:09 qing222 阅读(5483) 评论(0) 推荐(0) 编辑
摘要: // 后台数据设置到js变量中var down_url = [[${downUrl}]];//"http://127.0.0.1:8080/downFile";var arry = [];arry = [[${FileList}]]; 阅读全文
posted @ 2019-10-18 19:58 qing222 阅读(202) 评论(0) 推荐(0) 编辑
摘要: package com.dhht.config.articleAdvice;import com.dhht.util.UUIDUtil;import lombok.extern.slf4j.Slf4j;import org.aspectj.lang.JoinPoint;import org.aspe 阅读全文
posted @ 2019-10-18 19:48 qing222 阅读(191) 评论(0) 推荐(0) 编辑
摘要: RestfulToolkit:url定位controller,快捷键:ctrl+\Maven Helper:依赖分析JRebel:热部署Rainbow Brackets:个性化花括号aiXcode:ai智能代码SonarLint:代码质量分析Lombok:mybatis-helper:mybatis 阅读全文
posted @ 2019-10-18 19:42 qing222 阅读(344) 评论(0) 推荐(0) 编辑
摘要: <select id="orderProductStatistics" resultMap="ProductStatisticsVOMap"> SELECT ls.*,IFNULL(sr.out_count,0) AS out_count FROM ( SELECT od.product_id,pr 阅读全文
posted @ 2019-10-18 19:32 qing222 阅读(762) 评论(0) 推荐(0) 编辑
摘要: -- help_text:帮助说明 -- help_content -- raw USE pro_seal_chip_sell_portal_v1; -- 表修改ALTER TABLE `help_text` CHARACTER SET = utf8mb4, COLLATE = utf8mb4_ge 阅读全文
posted @ 2019-10-18 19:26 qing222 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 1、表字段字符集建议使用: utf8mb4、utf8mb4_general_ci 2、保险起见spring-boot配置: spring:datasource:connection-init-sqls: set names utf8mb4; 阅读全文
posted @ 2019-10-18 19:24 qing222 阅读(5238) 评论(0) 推荐(0) 编辑