病人信息更新
This commit is contained in:
@@ -223,7 +223,7 @@ public class PatientInformationController {
|
||||
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00007, null));
|
||||
}
|
||||
|
||||
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"病人信息"}));
|
||||
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"病人信息"}));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -249,11 +249,7 @@ public class PatientInformationController {
|
||||
Page<PatientInformationDto> patientInformationPage = new Page<>(pageNo, pageSize, total);
|
||||
patientInformationPage.setRecords(listPatients);
|
||||
|
||||
if (patientInformationPage == null || patientInformationPage.getRecords().isEmpty()) {
|
||||
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00006, null));
|
||||
}
|
||||
return R.ok(patientInformationPage,
|
||||
MessageUtils.createMessage(PromptMsgConstant.Common.M00009, new Object[] {"病人信息"}));
|
||||
return R.ok(patientInformationPage);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,12 +42,17 @@
|
||||
<where>
|
||||
<!-- 如果传入busNo参数,且不为空 -->
|
||||
<if test="busNo != null and busNo != ''">
|
||||
AND busNo LIKE CONCAT(#{busNo}, '%')
|
||||
AND pt.busNo LIKE CONCAT('%',#{busNo}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 如果传入name参数,且不为空 -->
|
||||
<if test="name != null and name != ''">
|
||||
AND name LIKE CONCAT(#{name}, '%')
|
||||
AND pt.name LIKE CONCAT( '%', #{name}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 如果传入name参数,且不为空 -->
|
||||
<if test="name != null and name != ''">
|
||||
AND pt.py_str LIKE CONCAT('%',#{name}, '%')
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY pt.bus_no
|
||||
@@ -62,12 +67,16 @@
|
||||
<where>
|
||||
<!-- 如果传入busNo参数,且不为空 -->
|
||||
<if test="busNo != null and busNo != ''">
|
||||
AND busNo LIKE CONCAT(#{busNo}, '%')
|
||||
AND pt.busNo LIKE CONCAT('%',#{busNo}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 如果传入name参数,且不为空 -->
|
||||
<if test="name != null and name != ''">
|
||||
AND name LIKE CONCAT(#{name}, '%')
|
||||
AND pt.name LIKE CONCAT('%',#{name}, '%')
|
||||
</if>
|
||||
<!-- 如果传入name参数,且不为空 -->
|
||||
<if test="name != null and name != ''">
|
||||
AND pt.py_str LIKE CONCAT('%',#{name}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user