|
@@ -0,0 +1,39 @@
|
|
|
+package thyyxxk.webserver.dao.his.examinations;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
+import thyyxxk.webserver.entity.examinations.bookablemanage.ExamItem;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author dj
|
|
|
+ */
|
|
|
+@Mapper
|
|
|
+public interface InspectionsDao {
|
|
|
+
|
|
|
+ @Select("select rtrim(max(tj_no)) from mz_patient_mi where social_no=#{socialNo}")
|
|
|
+ String selectTjNo(@Param("socialNo") String socialNo);
|
|
|
+
|
|
|
+ @Select("select rtrim(code) as code, rtrim(name) as name, rtrim(exec_unit) as execUnit, " +
|
|
|
+ "execUnitName=(select rtrim(name) from zd_unit_code where code=exec_unit), " +
|
|
|
+ "rtrim(py_code) as pyCode, rtrim(d_code) as wbCode, wx_bookable_flag " +
|
|
|
+ "from ${tableName} where isnull(del_flag,0)!=1")
|
|
|
+ IPage<ExamItem> searchItems(IPage<ExamItem> iPage,
|
|
|
+ @Param("tableName") String tableName);
|
|
|
+
|
|
|
+ @Select("select rtrim(code) as code, rtrim(name) as name, rtrim(exec_unit) as execUnit, " +
|
|
|
+ "execUnitName=(select rtrim(name) from zd_unit_code where code=exec_unit), " +
|
|
|
+ "rtrim(py_code) as pyCode, rtrim(d_code) as wbCode, wx_bookable_flag " +
|
|
|
+ "from ${tableName} where isnull(del_flag,0)!=1 and ${method} like #{content}")
|
|
|
+ IPage<ExamItem> searchItemsByCondition(IPage<ExamItem> iPage,
|
|
|
+ @Param("tableName") String tableName,
|
|
|
+ @Param("method") String method,
|
|
|
+ @Param("content") String content);
|
|
|
+
|
|
|
+ @Update("update ${tableName} set wx_bookable_flag=#{flag} where code=#{code}")
|
|
|
+ void updateWxBookableFlag(@Param("tableName") String tableName,
|
|
|
+ @Param("code") String code,
|
|
|
+ @Param("flag") Integer flag);
|
|
|
+}
|