From 5f1d1c462bbf49bc6a22b9e17b49733bcc1e0bc6 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期五, 20 六月 2025 19:01:13 +0800 Subject: [PATCH] zjh20250620 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjFlowingWaterMapper.java | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjFlowingWaterMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjFlowingWaterMapper.java index 5b50aa5..95e3f7d 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjFlowingWaterMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjFlowingWaterMapper.java @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ltkj.hosp.domain.TjFlowingWater; import com.ltkj.hosp.domain.TjOrderDetail; +import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -72,7 +73,7 @@ " tj_flowing_water b ON a.order_id = b.order_id WHERE a.tj_number =#{tjNum} AND a.deleted='0' AND b.deleted='0'") List<String> getFlowingWaterIds(String tjNum); - @Select("\tSELECT a.discount/10 FROM tj_flowing_water a WHERE 1=1 AND a.deleted =0 AND a.order_id=#{orderId} AND a.discount !='/'") + @Select("SELECT a.discount/10 FROM tj_flowing_water a WHERE 1=1 AND a.deleted =0 AND a.order_id=#{orderId} AND a.discount !='/'AND a.is_addition='N' AND a.pay_stasus !=2 ") String getDiscount(String orderId); @@ -93,4 +94,17 @@ "AND a.pay_stasus !=0 " + "AND a.update_time BETWEEN #{beginTime} AND #{endTime}") List<Long> getFlowingWaterIdList(@Param("userId") String userId,@Param("beginTime") Date beginTime,@Param("endTime") Date endTime); + + @Delete(" delete" + + " from tj_flowing_water" + + " where order_id = #{order}") + public int deleteTjFlowingWaterByOrderId(String order); + + @Delete(" delete" + + " from tj_flowing_water" + + " where jxbz = #{bldh}") + void deleteTjOrderDetailByjxbz(String bldh); + + @Select("call tj_bl(#{tjh,mode=IN})") + void getTjBlCall(@Param("tjh") String tjh); } -- Gitblit v1.8.0