|
@@ -14,6 +14,7 @@ import com.ym.mec.biz.dal.wrapper.InstrumentWrapper;
|
|
|
import com.ym.mec.biz.service.InstrumentService;
|
|
|
import com.ym.mec.biz.service.SubjectService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -36,6 +37,9 @@ public class InstrumentServiceImpl extends ServiceImpl<InstrumentDao, Instrument
|
|
|
@Resource
|
|
|
private SubjectService subjectService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private InstrumentDao instrumentDao;
|
|
|
+
|
|
|
/**
|
|
|
* 查询详情
|
|
|
*
|
|
@@ -189,10 +193,8 @@ public class InstrumentServiceImpl extends ServiceImpl<InstrumentDao, Instrument
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<Integer> getInstrumentIdsBySubjectId(Integer subjectId) {
|
|
|
- List<Instrument> list = this.lambdaQuery()
|
|
|
- .eq(Instrument::getSubjectId, subjectId)
|
|
|
- .list();
|
|
|
+ public List<Integer> getInstrumentIdsBySubjectId(String subjectId) {
|
|
|
+ List<Instrument> list = instrumentDao.getBySubjectId(subjectId);
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
return new ArrayList<>();
|
|
|
}
|