|
@@ -4,6 +4,7 @@ import cn.hnthyy.thmz.entity.yb.SelinfoSold;
|
|
|
import cn.hnthyy.thmz.vo.MzDrugWinVo;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -13,10 +14,17 @@ public interface SelinfoSoldMapper extends BaseMapper<SelinfoSold> {
|
|
|
|
|
|
@Insert("insert into selinfo_sold_drugtrac(id,selinfo_sold_id,trac_codg,success_flag)" +
|
|
|
" values(#{id,jdbcType=VARCHAR},#{selinfoSoldId,jdbcType=VARCHAR},#{tracCodg,jdbcType=VARCHAR},,#{successFlag,jdbcType=VARCHAR})")
|
|
|
- int insertSelinfoSoldDrugtrac(String id, String selinfoSoldId, String tracCodg, String successFlag);
|
|
|
+ int insertSelinfoSoldDrugtrac(@Param("id") String id,
|
|
|
+ @Param("selinfoSoldId") String selinfoSoldId,
|
|
|
+ @Param("tracCodg") String tracCodg,
|
|
|
+ @Param("successFlag") String successFlag);
|
|
|
|
|
|
@Select("select * from selinfo_sold where patient_id=#{patientId} and times=#{times} and order_no=#{orderNo} and charge_item_code=#{chargeItemCode} and real_no=#{realNo}")
|
|
|
- List<SelinfoSold> getSelinfoSoldList(String patientId, Integer times, Integer orderNo, String chargeItemCode, Integer realNo);
|
|
|
+ List<SelinfoSold> getSelinfoSoldList(@Param("patientId") String patientId,
|
|
|
+ @Param("times") Integer times,
|
|
|
+ @Param("orderNo") Integer orderNo,
|
|
|
+ @Param("chargeItemCode") String chargeItemCode,
|
|
|
+ @Param("realNo") Integer realNo);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select * from selinfo_sold_drugtrac " +
|