|
@@ -316,7 +316,7 @@ public interface JianYanJianChaDao {
|
|
|
"values " +
|
|
|
"<foreach collection='list' item='item' separator=','>" +
|
|
|
"(#{item.reqNo}, #{inpatientNo}, #{name}, #{age}, #{admissTimes}, #{bedNo}, #{item.orderName}, " +
|
|
|
- " #{item.actOrderNo}, #{item.orderCode}, #{item.orderName}, #{item.reqNo}, #{item.reqComment}, #{userCode}, " +
|
|
|
+ " #{item.actOrderNo}, #{item.orderCode}, cast(#{item.orderName} as varchar(60)) , #{item.reqNo}, #{item.reqComment}, #{userCode}, " +
|
|
|
" #{deptCode}, #{wardCode}, #{item.execDept}, #{reqDate}, '1', #{reqType}, #{reqDate}, #{item.startTime},#{item.diagCode},#{item.diagText}, " +
|
|
|
" (select class from ${orderTypeTable} where zy_order_code = #{item.orderCode})," +
|
|
|
" #{item.jzFlag},#{item.reqTzComment},#{item.reqOtherResult}," +
|
|
@@ -483,21 +483,18 @@ public interface JianYanJianChaDao {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select distinct rtrim(zy_order_code) as code, " +
|
|
|
- " rtrim(name) as name, " +
|
|
|
- " rtrim(class) as classes, " +
|
|
|
- " exec_unit, " +
|
|
|
- " exec_unit_name = (select name from zd_unit_code where zd_unit_code.code = exec_unit), " +
|
|
|
- " '2' as type, " +
|
|
|
- " inspect_stuff as inspectStuff, " +
|
|
|
- " inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff) " +
|
|
|
- "from jy_zd_item a, " +
|
|
|
- " zy_tc_detail_yj b " +
|
|
|
- "where isnull(del_flag, '0') = '0' " +
|
|
|
- " and isnull(zy_flag, '0') = '0' " +
|
|
|
- " and a.zy_order_code = b.order_code " +
|
|
|
- " and inspect_stuff is not null " +
|
|
|
- " and nullif(exec_unit, '') is not null")
|
|
|
+ @Select("select distinct rtrim(zy_order_code) as code, " +
|
|
|
+ " rtrim(name) as name, " +
|
|
|
+ " rtrim(class) as classes, " +
|
|
|
+ " exec_unit, " +
|
|
|
+ " exec_unit_name = (select name from zd_unit_code where zd_unit_code.code = exec_unit), " +
|
|
|
+ " '2' as type, " +
|
|
|
+ " inspect_stuff as inspectStuff, " +
|
|
|
+ " inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff) " +
|
|
|
+ "from jy_zd_item a " +
|
|
|
+ " left join zy_tc_detail_yj b on (a.zy_order_code = b.order_code) " +
|
|
|
+ "where isnull(del_flag, '0') = '0' " +
|
|
|
+ " and isnull(zy_flag, '0') = '0'")
|
|
|
List<JyJcItem> getJyDetailedItems();
|
|
|
|
|
|
|