|
@@ -1,5 +1,6 @@
|
|
|
package com.diagbot.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.dto.QcTypePageDTO;
|
|
|
import com.diagbot.entity.QcType;
|
|
@@ -23,4 +24,13 @@ public class QcTypeServiceImpl extends ServiceImpl<QcTypeMapper, QcType> impleme
|
|
|
public IPage<QcTypePageDTO> getList(QcTypePageVO qcTypePageVO) {
|
|
|
return baseMapper.getList(qcTypePageVO);
|
|
|
}
|
|
|
+
|
|
|
+ public Long saveT(QcType qcType){
|
|
|
+ this.baseMapper.insert(qcType);
|
|
|
+ QueryWrapper<QcType> qWrapper =new QueryWrapper<>();
|
|
|
+ qWrapper.eq("name",qcType.getName());
|
|
|
+ qWrapper.eq("hospital_id", qcType.getHospitalId());
|
|
|
+ QcType entity=this.baseMapper.selectOne(qWrapper);
|
|
|
+ return entity.getId();
|
|
|
+ }
|
|
|
}
|