代码提交 定价管理代码修改
This commit is contained in:
@@ -63,13 +63,10 @@
|
||||
ON T3.id = T4.medication_def_id) T5
|
||||
<where>
|
||||
T5.instance_table = 'med_medication_definition'
|
||||
<if test="itemDefSearchParam.getSearchKey() != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.py_code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getStatusEnum() != null">
|
||||
AND T5.status_enum = #{itemDefSearchParam.statusEnum}
|
||||
<if test="searchKey != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.item_no LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.py_str LIKE CONCAT('%', #{searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getChargeItem() != null">
|
||||
AND T5.category_code = #{itemDefSearchParam.chargeItem}
|
||||
@@ -101,8 +98,8 @@
|
||||
T5.priority,
|
||||
T5.amount,
|
||||
T5.item_no,
|
||||
T5.py_code,
|
||||
T5.wb_code,
|
||||
T5.py_str,
|
||||
T5.wb_str,
|
||||
T5.unit_code,
|
||||
T5.category_code,
|
||||
T5.lot_number,
|
||||
@@ -125,11 +122,11 @@
|
||||
T2.condition_yb_code,
|
||||
T2.priority,
|
||||
T2.amount,
|
||||
T3.code AS item_no,
|
||||
T3.py_code,
|
||||
T3.wb_code,
|
||||
T3.bus_no AS item_no,
|
||||
T3.py_str,
|
||||
T3.wb_str,
|
||||
T3.unit_code AS unit_code,
|
||||
T3.device_class AS category_code,
|
||||
T3.category_enum AS category_code,
|
||||
T4.lot_number
|
||||
FROM
|
||||
adm_charge_item_definition T1
|
||||
@@ -138,16 +135,13 @@
|
||||
LEFT JOIN adm_device_definition T3
|
||||
ON T1.instance_id = T3.id
|
||||
LEFT JOIN adm_device T4
|
||||
ON T3.id = T4.def_id) T5
|
||||
ON T3.id = T4.device_def_id) T5
|
||||
<where>
|
||||
T5.instance_table = 'adm_device_definition'
|
||||
<if test="itemDefSearchParam.getSearchKey() != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.py_code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getStatusEnum() != null">
|
||||
AND T5.status_enum = #{itemDefSearchParam.statusEnum}
|
||||
<if test="searchKey != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.item_no LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.py_str LIKE CONCAT('%', #{searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getChargeItem() != null">
|
||||
AND T5.category_code = #{itemDefSearchParam.chargeItem}
|
||||
@@ -179,8 +173,8 @@
|
||||
T5.priority,
|
||||
T5.amount,
|
||||
T5.item_no,
|
||||
T5.py_code,
|
||||
T5.wb_code,
|
||||
T5.py_str,
|
||||
T5.wb_str,
|
||||
T5.unit_code,
|
||||
T5.category_code,
|
||||
COUNT(1) OVER() AS TOTAL_COUNT
|
||||
@@ -202,10 +196,10 @@
|
||||
T2.condition_yb_code,
|
||||
T2.priority,
|
||||
T2.amount,
|
||||
T3.code AS item_no,
|
||||
T3.py_code,
|
||||
T3.wb_code,
|
||||
T3.permitted_unit AS unit_code,
|
||||
T3.bus_no AS item_no,
|
||||
T3.py_str,
|
||||
T3.wb_str,
|
||||
T3.permitted_unit_code AS unit_code,
|
||||
T3.type_enum AS category_code
|
||||
FROM
|
||||
adm_charge_item_definition T1
|
||||
@@ -215,13 +209,10 @@
|
||||
ON T1.instance_id = T3.id) T5
|
||||
<where>
|
||||
T5.instance_table = 'wor_activity_definition'
|
||||
<if test="itemDefSearchParam.getSearchKey() != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
OR T5.py_code LIKE CONCAT('%', #{itemDefSearchParam.searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getStatusEnum() != null">
|
||||
AND T5.status_enum = #{itemDefSearchParam.statusEnum}
|
||||
<if test="searchKey != null">
|
||||
AND T5.charge_name LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.item_no LIKE CONCAT('%', #{searchKey}, '%')
|
||||
OR T5.py_str LIKE CONCAT('%', #{searchKey}, '%')
|
||||
</if>
|
||||
<if test="itemDefSearchParam.getChargeItem() != null">
|
||||
AND T5.category_code = #{itemDefSearchParam.chargeItem}
|
||||
|
||||
Reference in New Issue
Block a user