新增了结算导出
This commit is contained in:
+59
@@ -127,4 +127,63 @@
|
||||
where t_caseplatform_case.id=#{case_id}
|
||||
</select>
|
||||
|
||||
<select id="getExportExpertCaseExcelList" resultType="net.lab1024.sa.admin.module.business.caseplatformcase.domain.vo.ExportExpertCaseExcelVo">
|
||||
SELECT
|
||||
t_caseplatform_case.id caseId,
|
||||
(select name from t_area where id=t_caseplatform_bank.prov_id) prov,
|
||||
(select name from t_area where id=t_caseplatform_bank.city_id) city,
|
||||
t_caseplatform_expert.id expertId,
|
||||
t_caseplatform_expert.mobile mobile,
|
||||
t_caseplatform_expert.hospital_name hospitalName,
|
||||
t_caseplatform_bank.id_card_name idCardName,
|
||||
t_caseplatform_bank.id_card_no idCardNo,
|
||||
t_caseplatform_bank.bank_card_no bankCardNo,
|
||||
t_caseplatform_bank.bank_name bankName
|
||||
FROM t_caseplatform_case
|
||||
inner join t_caseplatform_expert on t_caseplatform_case.expert_id = t_caseplatform_expert.id
|
||||
inner join t_caseplatform_bank on t_caseplatform_bank.expert_id = t_caseplatform_expert.id
|
||||
|
||||
<where>
|
||||
<!--name-->
|
||||
<if test="queryForm.name != null and queryForm.name != ''">
|
||||
AND ( INSTR(t_caseplatform_case.user_id,#{queryForm.name})
|
||||
OR INSTR(t_caseplatform_case.expert_name,#{queryForm.name})
|
||||
)
|
||||
</if>
|
||||
<!--0待审核 1审核通过 2审核不通过-->
|
||||
<if test="queryForm.status != null">
|
||||
AND t_caseplatform_case.status = 1
|
||||
</if>
|
||||
<if test="queryForm.settlementFlag != null">
|
||||
AND t_caseplatform_case.settlement_flag = #{queryForm.settlementFlag}
|
||||
</if>
|
||||
<choose>
|
||||
<when test="queryForm.provId != null and queryForm.provId != ''">
|
||||
AND t_caseplatform_expert.prov_id =#{queryForm.provId}
|
||||
</when>
|
||||
<when test="provList != null and provList.size > 0">
|
||||
and
|
||||
t_caseplatform_expert.prov_id
|
||||
in
|
||||
<foreach collection="provList" open="(" close=")" separator="," item="item">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</when>
|
||||
<otherwise>
|
||||
and 1=2
|
||||
</otherwise>
|
||||
</choose>
|
||||
<if test="queryForm.cityId != null and queryForm.cityId != ''">
|
||||
AND t_caseplatform_expert.city_id =#{queryForm.cityId}
|
||||
</if>
|
||||
<if test="queryForm.hospitalUuid != null and queryForm.hospitalUuid != ''">
|
||||
AND t_caseplatform_expert.hospital_uuid =#{queryForm.hospitalUuid}
|
||||
</if>
|
||||
<!-- 审核时间区间 -->
|
||||
<if test="queryForm.examineTime != null and queryForm.examineTime.size == 2">
|
||||
AND t_caseplatform_case.examine_time BETWEEN #{queryForm.examineTime[0]} AND #{queryForm.examineTime[1]}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user