| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceEthicalreviewopinionsVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, InfoID, DonorNo, ExpertOpinion, ExpertConclusion, ExpertName, ConclusionTime, ConclusionAnnex, ConclusionOrder from service_ethicalreviewopinions |
| | | select ID, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | InfoID, |
| | | DonorNo, |
| | | ExpertOpinion, |
| | | ExpertConclusion, |
| | | ExpertName, |
| | | ConclusionTime, |
| | | ConclusionAnnex, |
| | | ConclusionOrder |
| | | from service_ethicalreviewopinions |
| | | </sql> |
| | | |
| | | <select id="selectServiceEthicalreviewopinionsList" parameterType="com.ruoyi.project.domain.ServiceEthicalreviewopinions" resultMap="ServiceEthicalreviewopinionsResult"> |
| | | <select id="selectServiceEthicalreviewopinionsList" |
| | | parameterType="com.ruoyi.project.domain.ServiceEthicalreviewopinions" |
| | | resultMap="ServiceEthicalreviewopinionsResult"> |
| | | <include refid="selectServiceEthicalreviewopinionsVo"/> |
| | | <where> |
| | | <if test="infoid != null "> and InfoID = #{infoid}</if> |
| | |
| | | `service_donatebaseinfo`.`DiseaseType` AS `DiseaseType`, |
| | | `service_donatebaseinfo`.`PatientState` AS `PatientState`, |
| | | `service_donatebaseinfo`.`create_by` AS `basecreateby`, |
| | | `service_donatebaseinfo`.`workflow` AS `workflow;`, |
| | | `service_donatebaseinfo`.`termination_case` AS `terminationCase;`, |
| | | `service_donateflowchart`.`ID` AS `fcID`, |
| | | `service_donateflowchart`.`InfoID` AS `InfoID`, |
| | | `service_donateflowchart`.`DonorNo` AS `fcDonorNo`, |
| | |
| | | `base_organization`.`OrganizationID` = `service_donatebaseinfo`.`TreatmentHospitalNo` |
| | | <where> |
| | | <if test="donorno != null and donorno != ''"> and `service_donatebaseinfo`.`DonorNo` = #{donorno}</if> |
| | | <if test="name != null and name != ''"> and `service_donatebaseinfo`.`Name` like concat('%', #{name}, '%')</if> |
| | | <if test="name != null and name != ''">and `service_donatebaseinfo`.`Name` like concat('%', #{name}, '%') |
| | | </if> |
| | | <if test="idcardno != null and idcardno != ''"> and `service_donatebaseinfo`.`IDCardNo` = #{idcardno}</if> |
| | | <if test="treatmenthospitalno != null and treatmenthospitalno != ''"> and `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno}</if> |
| | | <if test="recordstate != null and recordstate != ''"> and `service_donatebaseinfo`.`RecordState` = #{recordstate}</if> |
| | | <if test="basecreateby != null and basecreateby != ''"> and `service_donatebaseinfo`.`create_by` = #{basecreateby}</if> |
| | | <if test="treatmenthospitalno != null and treatmenthospitalno != ''">and |
| | | `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno} |
| | | </if> |
| | | <if test="recordstate != null and recordstate != ''">and `service_donatebaseinfo`.`RecordState` = |
| | | #{recordstate} |
| | | </if> |
| | | <if test="basecreateby != null and basecreateby != ''">and `service_donatebaseinfo`.`create_by` = |
| | | #{basecreateby} |
| | | </if> |
| | | <if test="starttime != null "> and `service_donateflowchart`.create_time >= #{starttime} </if> |
| | | <if test="endtime != null "> and `service_donateflowchart`.create_time <= #{endtime}</if> |
| | | <if test="reporterno != null and reporterno != ''"> and `service_donatebaseinfo`.ReporterNo = #{reporterno}</if> |
| | | <if test="reporterno != null and reporterno != ''">and `service_donatebaseinfo`.ReporterNo = |
| | | #{reporterno} |
| | | </if> |
| | | <if test="city != null and city != ''"> and `base_organization`.`City` = #{city}</if> |
| | | <if test="fcid != null "> and `service_donateflowchart`.`ID` = #{fcid}</if> |
| | | <if test="workflow != null "> and `service_donatebaseinfo`.`workflow` = #{workflow}</if> |
| | | </where> |
| | | |
| | | order by `service_donateflowchart`.`create_time` desc |
| | | |
| | | </select> |
| | | <select id="countNumber" resultType="java.lang.Integer"> |
| | | select count(*) from service_donateflowchart where `service_donateflowchart`.`FlowName` = '伦理审查' |
| | | and create_time >= #{starttime} and create_time <= #{endtime} |
| | | select count(*) |
| | | from service_donateflowchart |
| | | where `service_donateflowchart`.`FlowName` = '伦理审查' |
| | | and create_time >= #{starttime} |
| | | and create_time <= #{endtime} |
| | | </select> |
| | | |
| | | </mapper> |