package com.ltkj.hosp.mapper;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ltkj.common.core.domain.entity.SysDictData;
|
import com.ltkj.hosp.domain.TjSurveyTemplate;
|
import com.ltkj.hosp.domain.TjSurveyTempQues;
|
import com.ltkj.hosp.domain.TreeTjSurveryTemplate;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Select;
|
|
/**
|
* 问卷模板Mapper接口
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-04-07
|
*/
|
@Mapper
|
public interface TjSurveyTemplateMapper extends BaseMapper<TjSurveyTemplate> {
|
/**
|
* 查询问卷模板
|
*
|
* @param mid 问卷模板主键
|
* @return 问卷模板
|
*/
|
public TjSurveyTemplate selectTjSurveyTemplateByMid(Long mid);
|
|
public TjSurveyTemplate selectTemplateByMid1(Long mid);
|
public int qybzTjSurveyTemplateByQy(Long mid);
|
public int qybzTjSurveyTemplateByJy(Long mid);
|
|
|
/**
|
* 查询问卷模板列表
|
*
|
* @param tjSurveyTemplate 问卷模板
|
* @return 问卷模板集合
|
*/
|
public List<TjSurveyTemplate> selectTjSurveyTemplateList(TjSurveyTemplate tjSurveyTemplate);
|
|
/**
|
* 新增问卷模板
|
*
|
* @param tjSurveyTemplate 问卷模板
|
* @return 结果
|
*/
|
public int insertTjSurveyTemplate(TjSurveyTemplate tjSurveyTemplate);
|
|
/**
|
* 修改问卷模板
|
*
|
* @param tjSurveyTemplate 问卷模板
|
* @return 结果
|
*/
|
public int updateTjSurveyTemplate(TjSurveyTemplate tjSurveyTemplate);
|
|
/**
|
* 删除问卷模板
|
*
|
* @param mid 问卷模板主键
|
* @return 结果
|
*/
|
public int deleteTjSurveyTemplateByMid(Long mid);
|
|
/**
|
* 批量删除问卷模板
|
*
|
* @param mids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteTjSurveyTemplateByMids(Long[] mids);
|
|
/**
|
* 批量删除问卷模板问题
|
*
|
* @param mids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteTjSurveyTempQuesByMids(Long[] mids);
|
|
/**
|
* 批量新增问卷模板问题
|
*
|
* @param tjSurveyTempQuesList 问卷模板问题列表
|
* @return 结果
|
*/
|
public int batchTjSurveyTempQues(List<TjSurveyTempQues> tjSurveyTempQuesList);
|
|
|
/**
|
* 通过问卷模板主键删除问卷模板问题信息
|
*
|
* @param mid 问卷模板ID
|
* @return 结果
|
*/
|
public int deleteTjSurveyTempQuesByMid(Long mid);
|
|
List<TreeTjSurveryTemplate> selectDictDataList(SysDictData dictData);
|
|
|
@Select("SELECT a.mid id,a.temp_name name,a.mid vaule FROM tj_survey_template a WHERE a.temp_type=#{vaule} AND a.qybz='0'")
|
List<TreeTjSurveryTemplate> getTreeTjSurveryTemplate(String vaule);
|
|
|
@Select("SELECT * FROM tj_survey_template a WHERE a.temp_type=#{tjCategory} AND a.qybz='0'")
|
TjSurveyTemplate selectTemplateByTjCategory(String tjCategory);
|
}
|