| | |
| | | package com.ltkj.hosp.mapper; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ltkj.hosp.domain.TjGroupingPro; |
| | | import com.ltkj.hosp.vodomain.AddNewReservationConfirm; |
| | | import org.apache.ibatis.annotations.Insert; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.*; |
| | | |
| | | /** |
| | | * 体检项目分组Mapper接口 |
| | |
| | | List<AddNewReservationConfirm> getAddNewReservationConfirm(String groupingId); |
| | | |
| | | |
| | | @Select("DELETE FROM tj_grouping_pro a WHERE a.grouping_id =#{groupingId}") |
| | | @Delete("DELETE FROM tj_grouping_pro WHERE grouping_id =#{groupingId}") |
| | | void deletedTjGroupingProByGroupingId(String groupingId); |
| | | |
| | | |
| | | @Update(" update tj_grouping_pro " + |
| | | " SET " + |
| | | " limits=#{limits}," + |
| | | " ys_price=pro_price*(#{limits}/10)" + |
| | | " where grouping_id=#{groupId} ") |
| | | boolean updateGroupProLimitsByGroupId(@Param("groupId") String groupId,@Param("limits") String limits); |
| | | // |
| | | // @Insert("") |
| | | // boolean saveTjOrderDetailsByGroupId(@Param("groupingId") String groupingId,@Param("userName") String userName,@Param("userId") String userId,@Param("orderId")String orderId); |
| | | |
| | | @Select("SELECT aa.parent_pro_id xmid,(g.ys_price-aa.ys)cj FROM tj_grouping_pro g JOIN (\n" + |
| | | "\n" + |
| | | "SELECT a.parent_pro_id,SUM(a.now_price)ys FROM tb_transition a WHERE a.cus_id=#{cusIdCard} AND pac_id=#{groupingId} AND ISNULL(a.tj_num) GROUP BY a.parent_pro_id)aa\n" + |
| | | "ON\n" + |
| | | "g.pro_id=aa.parent_pro_id AND g.grouping_id=#{groupingId} AND (g.ys_price-aa.ys)>0") |
| | | List<Map<String,Object>> huoquxiangmuchajia(@Param("groupingId") String groupingId, @Param("cusIdCard") String cusIdCard); |
| | | |
| | | } |