给药数据为空判断

This commit is contained in:
zhaoyz 2024-07-03 10:48:48 +08:00
parent 98e0dfa77a
commit 967ab6f22e
4 changed files with 29 additions and 29 deletions

View File

@ -30,8 +30,6 @@ import java.util.List;
* 字典表 前端控制器
* </p>
*
* @author lengleng
* @since 2019-03-19
*/
@RestController
@AllArgsConstructor

View File

@ -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);
}

View File

@ -47,6 +47,7 @@ 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");
if (!aiMedicines.isEmpty()) {
Map medicine = new HashMap();
for (Map map : aiMedicines) {
medicine.put("丙泊酚", map.get("rate_1"));
@ -69,6 +70,7 @@ public class AIMedicineServiceImpl implements AIMedicineService {
}
aiMedicines.remove(0);
aiMedicines.add(medicine);
}
return aiMedicines;
}

View File

@ -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