|
@@ -1,15 +1,17 @@
|
|
|
package thyyxxk.webserver.dao.his.yp;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
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.inpatient.YpZdDict;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Mapper
|
|
|
-public interface YpDictDao {
|
|
|
+public interface YpDictDao extends BaseMapper<YpZdDict> {
|
|
|
|
|
|
@Select(" select yf.charge_code as chargeCode, " +
|
|
|
" yf.serial, " +
|
|
@@ -36,4 +38,25 @@ public interface YpDictDao {
|
|
|
int updateYpVisibleFlag(@Param("chargeCode") String chargeCode, @Param("serial") String serial, @Param("groupNo") String groupNo,
|
|
|
@Param("visibleFlagMz") String visibleFlagMz, @Param("visibleFlagZy") String visibleFlagZy);
|
|
|
|
|
|
+ @Select(" select rtrim(zd.code) as code, " +
|
|
|
+ " zd.serial, " +
|
|
|
+ " rtrim(zd.name) as name, " +
|
|
|
+ " zd.specification, " +
|
|
|
+ " zd.pack_retprice as packRetprice, " +
|
|
|
+ " isnull(zd.del_flag, '0') as delFlag, " +
|
|
|
+ " zd.py_code as pyCode, " +
|
|
|
+ " zd.d_code as dCode " +
|
|
|
+ " from yp_zd_dict as zd " +
|
|
|
+ " where zd.code like '%${text}%' or zd.name like '%${text}%' " +
|
|
|
+ " or zd.py_code like ('%' + upper(#{text}) + '%') " +
|
|
|
+ " or zd.d_code like ('%' + upper(#{text}) + '%') " +
|
|
|
+ " order by zd.code ")
|
|
|
+ List<YpZdDict> selectYpDict(@Param("text") String text);
|
|
|
+
|
|
|
+ @Select(" select * from yp_zd_dict where code = #{code} ")
|
|
|
+ YpZdDict selectYpDictByCode(@Param("code") String code);
|
|
|
+
|
|
|
+ @Update(" update yp_zd_dict set del_flag = #{delFlag} where code = #{code} ")
|
|
|
+ int updateYpDictDelFlagByCode(@Param("code") String code, @Param("delFlag") String delFlag);
|
|
|
+
|
|
|
}
|