|
@@ -0,0 +1,30 @@
|
|
|
+package thyyxxk.wxservice_server.dao;
|
|
|
+
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import thyyxxk.wxservice_server.entity.pricequery.ItemPrice;
|
|
|
+import thyyxxk.wxservice_server.entity.pricequery.MedicinePrice;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Mapper
|
|
|
+public interface QueryPriceDao {
|
|
|
+
|
|
|
+ @Select("select drug_kind, " +
|
|
|
+ "drugkindName=(select name from yp_zd_drug_kind where code=drug_kind),name,national_code, " +
|
|
|
+ "max(specification) as specification, " +
|
|
|
+ "max(pack_retprice) as price " +
|
|
|
+ "from yp_zd_dict where isnull(national_code,'')!='' and isnull(del_flag,'0')!=1 " +
|
|
|
+ "group by name,national_code,drug_kind " +
|
|
|
+ "order by drug_kind")
|
|
|
+ List<MedicinePrice> selectMedicinePrices();
|
|
|
+
|
|
|
+ @Select("SELECT " +
|
|
|
+ "class_code, " +
|
|
|
+ "(SELECT name FROM zd_charge_class WHERE code=class_code) AS classCodeName, " +
|
|
|
+ "name,national_code,charge_unit, " +
|
|
|
+ "charge_amount AS price " +
|
|
|
+ "FROM zd_charge_item WHERE isnull(del_flag, '0')!=1 AND isnull(national_code, '')!='' " +
|
|
|
+ "order by class_code")
|
|
|
+ List<ItemPrice> selectItemPrices();
|
|
|
+}
|