Merge branch 'master' of https://gitee.com/wjl2008_admin/nuttyreading-java into zcc
This commit is contained in:
@@ -13,6 +13,10 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.jdbc.datasource.DriverManagerDataSource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 用户管理
|
||||
@@ -78,6 +82,25 @@ public class UserManageController {
|
||||
return R.ok().put("result",page);
|
||||
}
|
||||
|
||||
@RequestMapping("/getTest")
|
||||
public R getTest(){
|
||||
DriverManagerDataSource dataSourceSecond = new DriverManagerDataSource();
|
||||
dataSourceSecond.setDriverClassName("com.mysql.cj.jdbc.Driver");
|
||||
dataSourceSecond.setUrl("jdbc:mysql://goldorchid.mysql.rds.aliyuncs.com:3309/everhealth?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull");
|
||||
dataSourceSecond.setUsername("yljkmaster");
|
||||
dataSourceSecond.setPassword("Wu751019!@");
|
||||
|
||||
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSourceSecond);
|
||||
|
||||
List<Map<String, Object>> maps = jdbcTemplate.queryForList("select * from t_customer where POINT>0 or pointbyjf>0 limit 100");
|
||||
for (Map<String, Object> m:maps){
|
||||
System.out.println(m.get("nameCN")+"/"+m.get("point"));
|
||||
}
|
||||
System.out.println(maps);
|
||||
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ aliyun:
|
||||
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
||||
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
||||
singName: 疯子读书国际
|
||||
templateCode: SMS_248840040
|
||||
templateCode: SMS_483250023
|
||||
sTemplateCode: SMS_463780139
|
||||
|
||||
server:
|
||||
|
||||
Reference in New Issue
Block a user