投资计划
This commit is contained in:
parent
fe6f1a4226
commit
9c7bdec3c4
@ -85,7 +85,7 @@ public class SystemUserAuthController {
|
|||||||
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
||||||
checkLogin(user, userInfo, result);
|
checkLogin(user, userInfo, result);
|
||||||
if (result.getCode() != CommonConstant.SC_INTERNAL_SERVER_ERROR_500) {
|
if (result.getCode() != CommonConstant.SC_INTERNAL_SERVER_ERROR_500) {
|
||||||
String token = jwtTokenProvider.createToken(userInfo.getAccount(), 3600 * 24);
|
String token = jwtTokenProvider.createToken(userInfo.getAccount(), 3600 * 24 * 1000L);
|
||||||
userInfo.setToken(token);
|
userInfo.setToken(token);
|
||||||
userInfo.setIsEngineering(systemUserDataScopeService.count(Wrappers.<SystemUserDataScope>lambdaQuery()
|
userInfo.setIsEngineering(systemUserDataScopeService.count(Wrappers.<SystemUserDataScope>lambdaQuery()
|
||||||
.eq(SystemUserDataScope::getUserId, userInfo.getUserId())) > 0);
|
.eq(SystemUserDataScope::getUserId, userInfo.getUserId())) > 0);
|
||||||
@ -240,7 +240,8 @@ public class SystemUserAuthController {
|
|||||||
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
||||||
checkLogin(user, userInfo, result);
|
checkLogin(user, userInfo, result);
|
||||||
if (result.getCode() != CommonConstant.SC_INTERNAL_SERVER_ERROR_500) {
|
if (result.getCode() != CommonConstant.SC_INTERNAL_SERVER_ERROR_500) {
|
||||||
String token = jwtTokenProvider.createToken(userInfo.getAccount(), 3600 * 24);
|
Long time = decrypt.getLong("exp") - System.currentTimeMillis();
|
||||||
|
String token = jwtTokenProvider.createToken(userInfo.getAccount(), time/1000);
|
||||||
userInfo.setToken(token);
|
userInfo.setToken(token);
|
||||||
userInfo.setIsEngineering(systemUserDataScopeService.count(Wrappers.<SystemUserDataScope>lambdaQuery()
|
userInfo.setIsEngineering(systemUserDataScopeService.count(Wrappers.<SystemUserDataScope>lambdaQuery()
|
||||||
.eq(SystemUserDataScope::getUserId, userInfo.getUserId())) > 0);
|
.eq(SystemUserDataScope::getUserId, userInfo.getUserId())) > 0);
|
||||||
|
|||||||
@ -106,4 +106,10 @@ public class InvestmentPaymentDetail implements Serializable {
|
|||||||
@Excel(name = "截止本期末累计完成金额", width = 15)
|
@Excel(name = "截止本期末累计完成金额", width = 15)
|
||||||
@ApiModelProperty(value = "截止本期末累计完成金额")
|
@ApiModelProperty(value = "截止本期末累计完成金额")
|
||||||
private String endAmount;
|
private String endAmount;
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
@Excel(name = "备注", width = 15)
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remark;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,10 +46,10 @@ public class JwtTokenProvider {
|
|||||||
* @param validityInMilliseconds 单位是秒
|
* @param validityInMilliseconds 单位是秒
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String createToken(String username, Integer validityInMilliseconds) {
|
public String createToken(String username, Long validityInMilliseconds) {
|
||||||
Claims claims = Jwts.claims().setSubject(username);
|
Claims claims = Jwts.claims().setSubject(username);
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
Date validity = new Date(now.getTime() + validityInMilliseconds * 1000);
|
Date validity = new Date(now.getTime() + validityInMilliseconds);
|
||||||
String token = Jwts.builder()//
|
String token = Jwts.builder()//
|
||||||
.setClaims(claims)//
|
.setClaims(claims)//
|
||||||
.setIssuedAt(now)//
|
.setIssuedAt(now)//
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"groupId" : "1f3d3e5b9fe340bab84de67b0de08f44",
|
"groupId" : "1f3d3e5b9fe340bab84de67b0de08f44",
|
||||||
"name" : "在建项目指标",
|
"name" : "在建项目指标",
|
||||||
"createTime" : null,
|
"createTime" : null,
|
||||||
"updateTime" : 1688264176650,
|
"updateTime" : 1688352901714,
|
||||||
"lock" : null,
|
"lock" : null,
|
||||||
"createBy" : null,
|
"createBy" : null,
|
||||||
"updateBy" : "admin",
|
"updateBy" : "admin",
|
||||||
@ -34,4 +34,4 @@
|
|||||||
"responseBodyDefinition" : null
|
"responseBodyDefinition" : null
|
||||||
}
|
}
|
||||||
================================
|
================================
|
||||||
return db.selectOne("SELECT IFNULL(SUM(IF(major_project_type = 1, 1, 0)), 0) importance, IFNULL(SUM(IF(project_type = 1 AND state = 1, 1, 0)), 0) bridge, IFNULL(SUM(IF(project_type = 2 AND state = 1, 1, 0)), 0) tunnel, IFNULL(SUM(IF(project_type = 3 AND state = 1, 1, 0)), 0) station, IFNULL(SUM(IF(build_status = 1, 1, 0)), 0) newBuild, IFNULL(SUM(IF(build_status = 5, 1, 0)), 0) reBuild, IFNULL(SUM(IF(build_status = 6, 1, 0)), 0) extension, IFNULL(SUM(IF(build_status in (1, 5, 6), 1, 0)), 0) total, IFNULL(SUM(IF(build_status = 4, 1, 0)), 0) finished, IFNULL(SUM(IF(build_status = 2, 1, 0)), 0) shutdown, IFNULL(SUM(IF(build_status in (1, 2, 4), 1, 0)), 0) total1 FROM project WHERE #project ")
|
return db.selectOne("SELECT IFNULL(SUM(IF(major_project_type = 1, 1, 0)), 0) importance, IFNULL(SUM(IF(project_type = 1 AND state = 1, 1, 0)), 0) bridge, IFNULL(SUM(IF(project_type = 2 AND state = 1, 1, 0)), 0) tunnel, IFNULL(SUM(IF(project_type = 3 AND state = 1, 1, 0)), 0) station, IFNULL(SUM(IF(build_status in (0,1), 1, 0)), 0) newBuild, IFNULL(SUM(IF(build_status = 5, 1, 0)), 0) reBuild, IFNULL(SUM(IF(build_status = 6, 1, 0)), 0) extension, IFNULL(SUM(IF(build_status in (1, 5, 6), 1, 0)), 0) total, IFNULL(SUM(IF(build_status = 4, 1, 0)), 0) finished, IFNULL(SUM(IF(build_status = 2, 1, 0)), 0) shutdown, IFNULL(SUM(IF(build_status in (1, 2, 4), 1, 0)), 0) total1 FROM project WHERE #project ")
|
||||||
@ -5,7 +5,7 @@
|
|||||||
"groupId" : "1f3d3e5b9fe340bab84de67b0de08f44",
|
"groupId" : "1f3d3e5b9fe340bab84de67b0de08f44",
|
||||||
"name" : "扬尘报警趋势(近30天)",
|
"name" : "扬尘报警趋势(近30天)",
|
||||||
"createTime" : null,
|
"createTime" : null,
|
||||||
"updateTime" : 1688264934773,
|
"updateTime" : 1688352724279,
|
||||||
"lock" : null,
|
"lock" : null,
|
||||||
"createBy" : null,
|
"createBy" : null,
|
||||||
"updateBy" : "admin",
|
"updateBy" : "admin",
|
||||||
@ -27,9 +27,10 @@ import java.text.SimpleDateFormat;
|
|||||||
List list = db.select("SELECT create_time FROM environment_alarm where DATE_SUB(CURDATE(), INTERVAL 15 DAY) <= date(create_time)")
|
List list = db.select("SELECT create_time FROM environment_alarm where DATE_SUB(CURDATE(), INTERVAL 15 DAY) <= date(create_time)")
|
||||||
List result = new ArrayList()
|
List result = new ArrayList()
|
||||||
for (value in range(0,15)) {
|
for (value in range(0,15)) {
|
||||||
|
var offday = value - 15
|
||||||
Map map = new HashMap()
|
Map map = new HashMap()
|
||||||
Calendar c = Calendar.getInstance();
|
Calendar c = Calendar.getInstance();
|
||||||
c.add(Calendar.DATE, -value);
|
c.add(Calendar.DATE, offday);
|
||||||
Date startDate = c.getTime();
|
Date startDate = c.getTime();
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
String time = sdf.format(startDate);
|
String time = sdf.format(startDate);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user