|
@@ -81,11 +81,12 @@ public class QcModuleInfoFacade extends QcModuleInfoServiceImpl {
|
|
|
* @param getModuleMapVO
|
|
|
* @return
|
|
|
*/
|
|
|
+// @Cacheable(value = "cache", key = "'qcmodule'")
|
|
|
public Map<Long, GetModuleInfoOneDTO> getModuleMap(GetModuleMapVO getModuleMapVO) {
|
|
|
Map<Long, GetModuleInfoOneDTO> res = new LinkedHashMap<>();
|
|
|
List<QcModuleInfo> qcModuleInfoList = this.list(new QueryWrapper<QcModuleInfo>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("mode_id", getModuleMapVO.getModeId())
|
|
|
+ .eq(getModuleMapVO.getModeId() != null, "mode_id", getModuleMapVO.getModeId())
|
|
|
.eq("hospital_id", getModuleMapVO.getHospitalId())
|
|
|
);
|
|
|
List<Long> ids = qcModuleInfoList.stream().map(r -> r.getId()).collect(Collectors.toList());
|