pc export 优化

master
zhuqing 2 years ago
parent 7d3a48dbef
commit 620f391a39

@ -63,6 +63,7 @@ public class TDoctorController extends BaseController
public void export(HttpServletResponse response, @RequestBody @Validated PcTDoctorQueryByPageReq pcTDoctorQueryByPageReq)
{
// List<TDoctor> list = tDoctorService.selectTDoctorList(tDoctor);
startPage();
List<PcTDoctorQueryByPageResp> list = tDoctorService.queryByPage(pcTDoctorQueryByPageReq);
ExcelUtil<PcTDoctorQueryByPageResp> util = new ExcelUtil<PcTDoctorQueryByPageResp>(PcTDoctorQueryByPageResp.class);
util.exportExcel(response, list, "医生信息数据");

@ -62,6 +62,7 @@ public class TPatientController extends BaseController
@PostMapping("/export")
public void export(HttpServletResponse response, @RequestBody @Validated PcTPatintQueryByPageReq pcTPatintQueryByPageReq)
{
startPage();
List<PcTPatientQueryByPageResp> list = tPatientService.queryByPage(pcTPatintQueryByPageReq);
//List<TPatient> list = tPatientService.selectTPatientList(tPatient);
ExcelUtil<PcTPatientQueryByPageResp> util = new ExcelUtil<PcTPatientQueryByPageResp>(PcTPatientQueryByPageResp.class);

@ -264,7 +264,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--====================工作台相关接口=====================-->
<select id="selectTRecordDoctorPatientFirst" parameterType="TRecord" resultMap="TRecordResult">
<include refid="selectTRecordVo"/>
select
id,
create_time
from t_record
<where>
<if test="patientId != null "> and patient_id = #{patientId}</if>
<if test="doctorId != null "> and doctor_id = #{doctorId}</if>

Loading…
Cancel
Save