Commit 7e3a8fca authored by tianbo's avatar tianbo

1、隐患bug修改

2、消防监督app优化 3、数据库配置文件修改
parent 488f71da
...@@ -113,7 +113,7 @@ public class PageParam<K, V> extends HashMap<K, V> implements Pageable { ...@@ -113,7 +113,7 @@ public class PageParam<K, V> extends HashMap<K, V> implements Pageable {
if (this.get("current") instanceof String) { if (this.get("current") instanceof String) {
return Integer.parseInt((String) this.get("current")); return Integer.parseInt((String) this.get("current"));
} else { } else {
return (Integer)(this.get("current")); return (Integer)(this.get("current")) <= 0 ? 1 : (Integer)(this.get("current"));
} }
} }
......
...@@ -2043,6 +2043,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD ...@@ -2043,6 +2043,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
if (ValidationUtil.isEmpty(latentDanger)) { if (ValidationUtil.isEmpty(latentDanger)) {
throw new Exception("隐患不存"); throw new Exception("隐患不存");
} }
latentDangerDto.setDangerPosition(null);
Bean.copyExistPropertis(latentDangerDto, latentDanger); Bean.copyExistPropertis(latentDangerDto, latentDanger);
if (!ValidationUtil.isEmpty(latentDangerDto.getPhotoUrl())) { if (!ValidationUtil.isEmpty(latentDangerDto.getPhotoUrl())) {
latentDanger.setPhotoUrls(Joiner.on(",").join(latentDangerDto.getPhotoUrl())); latentDanger.setPhotoUrls(Joiner.on(",").join(latentDangerDto.getPhotoUrl()));
...@@ -2066,6 +2067,9 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD ...@@ -2066,6 +2067,9 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
executeSubmit(executeParam, latentDanger, userId, userName, deptId, deptName, executeSubmitDto, reginParams); executeSubmit(executeParam, latentDanger, userId, userName, deptId, deptName, executeSubmitDto, reginParams);
if (!executeSubmitDto.getIsOk()) {
throw new Exception(executeSubmitDto.getMsg());
}
return executeSubmitDto; return executeSubmitDto;
} }
......
...@@ -18,7 +18,8 @@ ribbon.MaxAutoRetriesNextServer = 2 ...@@ -18,7 +18,8 @@ ribbon.MaxAutoRetriesNextServer = 2
ribbon.MaxAutoRetries = 1 ribbon.MaxAutoRetries = 1
#DB properties: #DB properties:
spring.datasource.url = jdbc:mysql://172.16.10.66:3306/safety-business-3.0.1?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai spring.datasource.url = jdbc:mysql://172.16.6.60:3306/safety-business-3.0\
.1?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username= root spring.datasource.username= root
spring.datasource.password= root_123 spring.datasource.password= root_123
spring.datasource.driver-class-name = com.mysql.jdbc.Driver spring.datasource.driver-class-name = com.mysql.jdbc.Driver
......
#DB properties: #DB properties:
spring.datasource.url = jdbc:mysql://172.16.11.20:3306/amos-supervision_v1.0?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai spring.datasource.url = jdbc:mysql://172.16.6.60:3306/amos_supervision_v1\
.0?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username= root spring.datasource.username= root
spring.datasource.password= root_123 spring.datasource.password= root_123
## eureka properties: ## eureka properties:
......
...@@ -1168,8 +1168,9 @@ ...@@ -1168,8 +1168,9 @@
LEFT JOIN p_check_input pci ON pci.route_point_item_id = ppi.id LEFT JOIN p_check_input pci ON pci.route_point_item_id = ppi.id
LEFT JOIN p_check_shot pcs ON pci.id = pcs.check_input_id LEFT JOIN p_check_shot pcs ON pci.id = pcs.check_input_id
WHERE WHERE
prp.route_id = #{routeId} AND prp.point_id = #{pointId} AND pii.is_delete = 0 AND prp.route_id = #{routeId} AND prp.point_id = #{pointId} AND pii.is_delete = 0
( pci.input_value is NULL OR pci.input_value <![CDATA[<>]]> 'pass') # AND
# ( pci.input_value is NULL OR pci.input_value <![CDATA[<>]]> 'pass')
GROUP BY ppi.id GROUP BY ppi.id
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment