|
@@ -1,10 +1,7 @@
|
|
|
package thyyxxk.webserver.dao.his.datamodify;
|
|
|
|
|
|
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 org.apache.ibatis.annotations.*;
|
|
|
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
|
|
|
import thyyxxk.webserver.entity.datamodify.InOrOutOfWarehousePojo;
|
|
|
import thyyxxk.webserver.entity.datamodify.YpInDetl;
|
|
@@ -95,6 +92,12 @@ public interface InOrOutOfWarehouseDao {
|
|
|
"<if test=\"param.drawNo!=null and param.drawNo!=''\">" +
|
|
|
"and draw_no=#{param.drawNo}" +
|
|
|
"</if>" +
|
|
|
+ "<if test=\"param.inDrawNo!=null and param.inDrawNo!=''\">" +
|
|
|
+ "and in_draw_no=#{param.inDrawNo}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"param.chargeCode!=null and param.chargeCode!=''\">" +
|
|
|
+ "and charge_code=#{param.chargeCode}" +
|
|
|
+ "</if>" +
|
|
|
"</script>")
|
|
|
List<YpOutDetl> queryChuKuXinXi(IPage<InOrOutOfWarehousePojo> page, @Param("param") InOrOutOfWarehousePojo param);
|
|
|
|
|
@@ -129,5 +132,24 @@ public interface InOrOutOfWarehouseDao {
|
|
|
"where out_seri=#{outSeri} and draw_no=#{oldDrawNo} and charge_code = #{chargeCode}")
|
|
|
void xiuGaiChuKu(YpOutDetl param);
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除出库的一条记录
|
|
|
+ *
|
|
|
+ * @param drawNo 出库号
|
|
|
+ * @param chargeCode 药品编码
|
|
|
+ * @param outSeri 序号
|
|
|
+ * @param inDrawNo 入库单号
|
|
|
+ */
|
|
|
+ @Delete("<script>" +
|
|
|
+ "delete from yp_out_detl where draw_no=#{drawNo} and charge_code=#{chargeCode} and out_seri=#{outSeri} " +
|
|
|
+ "<if test=\"inDrawNo!=null and inDrawNo!=''\">" +
|
|
|
+ "and in_draw_no=#{inDrawNo}" +
|
|
|
+ "</if> " +
|
|
|
+ "</script>")
|
|
|
+ void shanChuChuKuXinXin(@Param("drawNo") String drawNo,
|
|
|
+ @Param("chargeCode") String chargeCode,
|
|
|
+ @Param("outSeri") Integer outSeri,
|
|
|
+ @Param("inDrawNo") String inDrawNo);
|
|
|
+
|
|
|
|
|
|
}
|