|
@@ -3,6 +3,7 @@ package thyyxxk.webserver.dao.his.dictionary;
|
|
|
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.dictionary.HisWjwMatchEntity;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -10,9 +11,17 @@ import java.util.List;
|
|
|
@Mapper
|
|
|
public interface HisWjwMatchDao {
|
|
|
|
|
|
- @Select("select code,name,wjw_code from ${table}")
|
|
|
+ @Select("<script>" +
|
|
|
+ "select code,name,wjw_code,py_code from ${table} " +
|
|
|
+ "<if test=\"table == 'zd_unit_code' \">" +
|
|
|
+ "where code like '1%' and isnull(del_flag,0)!=1 " +
|
|
|
+ "</if>" +
|
|
|
+ "</script>")
|
|
|
List<HisWjwMatchEntity> selectHisData(@Param("table") String table);
|
|
|
|
|
|
- @Select("select code,name from ${table}")
|
|
|
+ @Select("select code,name,py_code from ${table}")
|
|
|
List<HisWjwMatchEntity> selectWjwData(@Param("table") String table);
|
|
|
+
|
|
|
+ @Update("update ${label} set wjw_code=#{wjwCode} where code=#{code}")
|
|
|
+ void executeMatchAction(HisWjwMatchEntity entity);
|
|
|
}
|