| | |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND pac_id=#{pacId}") |
| | | public List<TbTransition> getTbTransitionListByCusIdAndPac(@Param("cusId") String cusId,@Param("pacId") String pacId); |
| | | |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId}") |
| | | public List<TbTransition> getTbTransitionListByCusId(String cusId); |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} and card_id=#{cardId}") |
| | | public List<TbTransition> getTbTransitionListByCusId(@Param("cusId")String cusId,@Param("cardId")String cardId); |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId} AND !ISNULL(pac_id)") |
| | | public boolean deletedTbTransitionListByCusIdAndPac(String cusId); |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId} AND !ISNULL(pac_id) and card_id=#{cardId}") |
| | | public boolean deletedTbTransitionListByCusIdAndPac(@Param("cusId")String cusId,@Param("cardId")String cardId); |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId} AND ISNULL(tj_num)and card_id=#{cardId}") |
| | | public boolean deletedTbTransitionListByCusIdAndTjNum(@Param("cusId")String cusId,@Param("cardId")String cardId); |
| | | |
| | | //根据身份证号和套餐id查询和项目id |
| | | // @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND ISNULL(pac_id) AND pro_id =#{proId}") |
| | |
| | | |
| | | @Update("UPDATE tb_transition a SET \n" + |
| | | "a.ord_price=a.now_price,\n" + |
| | | "a.now_price=a.ord_price*#{discount}" + |
| | | "a.now_price=a.ord_price*#{discount}," + |
| | | "a.tj_num=#{tjNum}"+ |
| | | " WHERE a.cus_id=#{cusId} ") |
| | | boolean updateTbTransitionPriceByCusId(@Param("cusId")String cusId,@Param("discount")BigDecimal discount); |
| | | boolean updateTbTransitionPriceByCusId(@Param("cusId")String cusId,@Param("discount")BigDecimal discount,@Param("tjNum")String tjNum); |
| | | |
| | | |
| | | @Insert("INSERT INTO tb_transition(\n" + |