mirror of
https://gitee.com/republicline/rax-remote-v2.git
synced 2025-08-24 00:14:58 +08:00
给药数据为空判断
This commit is contained in:
parent
98e0dfa77a
commit
967ab6f22e
|
@ -30,8 +30,6 @@ import java.util.List;
|
|||
* 字典表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author lengleng
|
||||
* @since 2019-03-19
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -49,7 +49,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||
private final SysRoleMenuMapper sysRoleMenuMapper;
|
||||
|
||||
@Override
|
||||
@Cacheable(value = CacheConstants.MENU_DETAILS, key = "#roleId", unless = "#result.isEmpty()")
|
||||
// @Cacheable(value = CacheConstants.MENU_DETAILS, key = "#roleId", unless = "#result.isEmpty()")
|
||||
public List<SysMenu> findMenuByRoleId(Long roleId) {
|
||||
return baseMapper.listMenusByRoleId(roleId);
|
||||
}
|
||||
|
|
|
@ -47,28 +47,30 @@ public class AIMedicineServiceImpl implements AIMedicineService {
|
|||
query.limit(1);
|
||||
query.with(Sort.by(Sort.Order.desc("Time")));
|
||||
List<Map> aiMedicines = template.find(query, Map.class, "fktable");
|
||||
Map medicine = new HashMap();
|
||||
for (Map map : aiMedicines) {
|
||||
medicine.put("丙泊酚", map.get("rate_1"));
|
||||
medicine.put("丙泊酚sum", map.get("cumu_1"));
|
||||
medicine.put("舒芬太尼", map.get("rate_2"));
|
||||
medicine.put("舒芬太尼sum", map.get("cumu_2"));
|
||||
medicine.put("瑞芬太尼", map.get("rate_3"));
|
||||
medicine.put("瑞芬太尼sum", map.get("cumu_3"));
|
||||
medicine.put("顺阿曲库胺", map.get("rate_4"));
|
||||
medicine.put("顺阿曲库胺sum", map.get("cumu_4"));
|
||||
medicine.put("尼卡地平", map.get("rate_5"));
|
||||
medicine.put("尼卡地平sum", map.get("cumu_5"));
|
||||
medicine.put("艾司洛尔", map.get("rate_6"));
|
||||
medicine.put("艾司洛尔sum", map.get("cumu_6"));
|
||||
medicine.put("麻黄素", map.get("rate_7"));
|
||||
medicine.put("麻黄素sum", map.get("cumu_7"));
|
||||
medicine.put("阿托品", map.get("rate_8"));
|
||||
medicine.put("阿托品sum", map.get("cumu_8"));
|
||||
medicine.put("Time", map.get("Time"));
|
||||
if (!aiMedicines.isEmpty()) {
|
||||
Map medicine = new HashMap();
|
||||
for (Map map : aiMedicines) {
|
||||
medicine.put("丙泊酚", map.get("rate_1"));
|
||||
medicine.put("丙泊酚sum", map.get("cumu_1"));
|
||||
medicine.put("舒芬太尼", map.get("rate_2"));
|
||||
medicine.put("舒芬太尼sum", map.get("cumu_2"));
|
||||
medicine.put("瑞芬太尼", map.get("rate_3"));
|
||||
medicine.put("瑞芬太尼sum", map.get("cumu_3"));
|
||||
medicine.put("顺阿曲库胺", map.get("rate_4"));
|
||||
medicine.put("顺阿曲库胺sum", map.get("cumu_4"));
|
||||
medicine.put("尼卡地平", map.get("rate_5"));
|
||||
medicine.put("尼卡地平sum", map.get("cumu_5"));
|
||||
medicine.put("艾司洛尔", map.get("rate_6"));
|
||||
medicine.put("艾司洛尔sum", map.get("cumu_6"));
|
||||
medicine.put("麻黄素", map.get("rate_7"));
|
||||
medicine.put("麻黄素sum", map.get("cumu_7"));
|
||||
medicine.put("阿托品", map.get("rate_8"));
|
||||
medicine.put("阿托品sum", map.get("cumu_8"));
|
||||
medicine.put("Time", map.get("Time"));
|
||||
}
|
||||
aiMedicines.remove(0);
|
||||
aiMedicines.add(medicine);
|
||||
}
|
||||
aiMedicines.remove(0);
|
||||
aiMedicines.add(medicine);
|
||||
return aiMedicines;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ spring:
|
|||
profiles:
|
||||
active: dev
|
||||
application:
|
||||
name: @project.artifactId@
|
||||
name: ${project.artifactId}
|
||||
# 定时任务属性配置
|
||||
quartz:
|
||||
properties:
|
||||
|
@ -130,14 +130,14 @@ spring:
|
|||
type: redis
|
||||
data:
|
||||
redis:
|
||||
host: 192.168.65.130
|
||||
host: localhost
|
||||
|
||||
# 数据库相关配置
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: root
|
||||
password: root
|
||||
url: jdbc:mysql://192.168.65.130:3306/rax_backend2?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
||||
url: jdbc:mysql://localhost:3306/rax_backend2?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
||||
|
||||
server:
|
||||
port: 9999
|
||||
|
@ -148,11 +148,11 @@ vital-sign:
|
|||
except-database: admin,config,local
|
||||
information-database: information
|
||||
mongodb:
|
||||
host: 192.168.65.130:27017
|
||||
host: localhost:27017
|
||||
password: root
|
||||
username: root
|
||||
|
||||
mysql:
|
||||
host: 192.168.65.130:3306
|
||||
host: localhost:3306
|
||||
password: root
|
||||
username: root
|
Loading…
Reference in New Issue
Block a user