台桌统计报表

This commit is contained in:
Tankaikai
2025-04-02 13:25:56 +08:00
parent 6eb0a765c1
commit 84b7ac9e39
12 changed files with 314 additions and 38 deletions

View File

@@ -18,6 +18,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
public class ProductApplication {
public static void main(String[] args) {
SpringApplication.run(ProductApplication.class, args);
}

View File

@@ -1,5 +1,7 @@
server:
port: 9300
servlet:
context-path: /product
spring:
application:
@@ -14,6 +16,7 @@ wx:
operationMsgTmpId: wFdoUG-dUT7bDRHq8bMJD9CF5TjyH9x_uJQgQByZqHg
warnMsgTmpId: C08OUr80x6wGmUN1zpFhSQ3Sv7VF5vksdZigiEx2pD0
logging:
config: classpath:logback.xml
@@ -28,4 +31,6 @@ pagehelper:
helper-dialect: mysql
support-methods-arguments: true
dubbo:
consumer:
check: false

View File

@@ -18,4 +18,27 @@ public class DemoTest {
System.out.println(password);
}
public static void main(String[] args) {
//System.out.println(StrUtil.sub("下架商品:情人节固",0,20));
/*Map<String, Object> data = new HashMap<String, Object>() {{
put("thing19", new HashMap<String, Object>() {{
put("value", "张三");
}});
put("thing8", new HashMap<String, Object>() {{
put("value", "财务票据");
}});
put("time21", new HashMap<String, Object>() {{
put("value", DateUtil.format(DateUtil.date(), "yyyy-MM-dd HH:mm:ss"));
}});
}};
JSONObject req = new JSONObject();
req.put("template_id", "wFdoUG-dUT7bDRHq8bMJD9CF5TjyH9x_uJQgQByZqHg");
req.put("touser", "ojC-S6iKBL7sHUb-E0UYq-Q1J4AA");
req.put("data", data);
String accessToken = "90_zBsyBkkK9cYx3GpbydWV97yPr-2WkRYqc2ESQKLGbr_IxqWgb3t9MZO-9jFNUlJoQCYyKyR1-tHOh_e5GKYPWdSY9wGSzEvC_uNM_MaHHbG1IiI0A0nzDrJmDNgEXBbAJAVOS";
String post = HttpUtil.post("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".concat(accessToken), req.toString());
System.out.println(post);*/
}
}