|
|
@@ -6,10 +6,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
+import thyyxxk.webserver.entity.CodeName;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.YshHzRecord;
|
|
|
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
|
|
|
+import thyyxxk.webserver.entity.dictionary.CyComboGrid;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.jianyanjiancha.*;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.jianyanjiancha.dto.JyJcCheckItemDto;
|
|
|
+import thyyxxk.webserver.entity.zhuyuanyisheng.jianyanjiancha.vo.JcJyPartOrSample;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.jianyanjiancha.vo.ViewInspectionItemDetailsVo;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.PatientTemp;
|
|
|
|
|
|
@@ -315,7 +318,7 @@ public interface JianYanJianChaDao {
|
|
|
"<foreach collection='list' item='item' separator=','>" +
|
|
|
"(#{item.reqNo}, #{inpatientNo}, #{name}, #{age}, #{admissTimes}, #{bedNo}, #{item.orderName}, " +
|
|
|
" #{item.actOrderNo}, #{item.orderCode}, cast(#{item.orderName} as varchar(60)) , #{item.reqNo}, #{item.reqComment}, #{userCode}, " +
|
|
|
- " #{deptCode}, #{wardCode}, #{item.execDept}, #{reqDate}, '1', #{reqType}, #{reqDate}, #{reqDate},#{item.diagCode},#{item.diagText}, " +
|
|
|
+ " #{deptCode}, #{wardCode}, #{item.execDept}, #{reqDate}, '1', #{item.reqType}, #{reqDate}, #{reqDate},#{item.diagCode},#{item.diagText}, " +
|
|
|
" (select class from ${orderTypeTable} where zy_order_code = #{item.orderCode})," +
|
|
|
" #{item.jzFlag},#{item.reqTzComment},#{item.reqOtherResult}," +
|
|
|
" #{item.inspectStuff}, #{item.inspectPart},#{item.quantity},#{item.chargeFee})" +
|
|
|
@@ -330,7 +333,6 @@ public interface JianYanJianChaDao {
|
|
|
@Param("userCode") String userCode,
|
|
|
@Param("deptCode") String deptCode,
|
|
|
@Param("wardCode") String wardCode,
|
|
|
- @Param("reqType") String reqType,
|
|
|
@Param("orderTypeTable") String orderTypeTable,
|
|
|
@Param("reqDate") Date reqDate);
|
|
|
|
|
|
@@ -397,6 +399,14 @@ public interface JianYanJianChaDao {
|
|
|
" or code like #{name} or d_code like #{name} )")
|
|
|
List<GetDropdownBox> biaoBenOrBuWei(String name, String tableName);
|
|
|
|
|
|
+ @Select("select rtrim(code) as code,rtrim(name) as name,py_code,d_code as wb_code from jy_zd_sample with (NOLOCK) " +
|
|
|
+ "where isnull(del_flag, '0') = '0'")
|
|
|
+ List<JcJyPartOrSample> getJySample();
|
|
|
+
|
|
|
+
|
|
|
+ @Select("select rtrim(code) as code,rtrim(name) as name,py_code,d_code as wb_code,parent_code from ysh_zd_part_code with (NOLOCK) " +
|
|
|
+ "where isnull(del_flag, '0') = '0'")
|
|
|
+ List<JcJyPartOrSample> getJcPartCode();
|
|
|
|
|
|
@Select("select * " +
|
|
|
"from ysh_yj_req with (NOLOCK) where req_no = #{reqNo} and inpatient_no = #{patNo} and admiss_times = #{times}")
|
|
|
@@ -501,10 +511,10 @@ public interface JianYanJianChaDao {
|
|
|
" min_age_restriction,\n" +
|
|
|
" max_age_restriction,\n" +
|
|
|
" rtrim(a.py_code) as py_code,\n" +
|
|
|
- " rtrim(a.d_code) as d_code\n" +
|
|
|
+ " rtrim(a.d_code) as d_code,a.code as id " +
|
|
|
"from jy_zd_item a\n" +
|
|
|
" left join yz_order_item b on (a.zy_order_code = b.order_code)\n" +
|
|
|
- "where isnull(a.del_flag, '0') != '1'\n" +
|
|
|
+ "where isnull(a.del_flag, '0') != '1' and isnull(a.zy_flag, '0') != '1' " +
|
|
|
" and isnull(b.del_flag, '0') <> '1'")
|
|
|
List<JyJcItem> getJyDetailedItems();
|
|
|
|
|
|
@@ -513,9 +523,9 @@ public interface JianYanJianChaDao {
|
|
|
List<JyJcItem> queryCheckClassification();
|
|
|
|
|
|
|
|
|
- @Select("select a.zy_order_code as code, " +
|
|
|
- " isnull(b.name,'') as bw, " +
|
|
|
- " a.name, " +
|
|
|
+ @Select("select a.zy_order_code as code,a.code as id, " +
|
|
|
+ " isnull(b.name,'') as bw,bw_code as part_code, rtrim(b.name) as part_name," +
|
|
|
+ " rtrim(a.name) name, " +
|
|
|
" rtrim(class) as classes, " +
|
|
|
" exec_unit," +
|
|
|
" exec_unit_name = (select name from zd_unit_code where zd_unit_code.code = exec_unit)," +
|
|
|
@@ -568,7 +578,11 @@ public interface JianYanJianChaDao {
|
|
|
" rtrim(name) as name," +
|
|
|
" cast(rtrim(isnull(nullif(del_flag,\n" +
|
|
|
" ''),\n" +
|
|
|
- " 0)) as int) as del_flag ${col} " +
|
|
|
+ " 0)) as int) as del_flag," +
|
|
|
+ " cast(rtrim(isnull(nullif(zy_flag,\n" +
|
|
|
+ " ''),\n" +
|
|
|
+ " 0)) as int) as zy_flag " +
|
|
|
+ " ${col} " +
|
|
|
" from ${tableName} \n" +
|
|
|
" where ${ew.sqlSegment};")
|
|
|
List<JyJcCheckItemDto> selectJyJcCheckItemDtoByOrderCode(@Param("ew") QueryWrapper<?> queryWrapper,
|