| | |
| | | */ |
| | | public int deleteTbTransitionByIds(String[] ids); |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId}") |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId} and isnull(tj_num)") |
| | | public boolean deletedTbTransitionByCusId(String cusId); |
| | | |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE tj_num=#{tjNum}") |
| | | public boolean deletedTbTransitionByTjNum(String tjNum); |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE isnull(tj_num) and cus_id=#{cdId} and parent_pro_id=#{proId}") |
| | | public boolean delTbBycusCardIdAndProId(@Param("cdId") String cdId,@Param("proId")String proId); |
| | | |
| | | @Update("UPDATE tb_transition a SET "+ |
| | | "a.tj_num=null" + |
| | |
| | | @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) and card_id=#{cardId}") |
| | | @Delete("DELETE FROM tb_transition WHERE cus_id=#{cusId} AND !ISNULL(pac_id) and isnull(tj_num)") |
| | | 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}") |
| | |
| | | // @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND ISNULL(pac_id) AND pro_id =#{proId}") |
| | | // public List<TbTransition> getTbTransitionListByCusIdAndPacIdAndProId(@Param("cusId") String cusId,@Param("proId") String proId); |
| | | |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND pro_id =#{proId}") |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND pro_id =#{proId} and ISNULL(tj_num)") |
| | | public List<TbTransition> getTbTransitionListByCusIdAndPacIdAndProId(@Param("cusId") String cusId,@Param("proId") String proId); |
| | | |
| | | @Select("SELECT DISTINCT pac_id FROM tb_transition WHERE cus_id=#{cusId} AND !ISNULL(pac_id)") |
| | |
| | | "\tb.pro_id,\n" + |
| | | "\tb.pro_name,\n" + |
| | | "\tTRUNCATE(c.pro_price,2),\n" + |
| | | " IFNULL(TRUNCATE(c.pro_price * (TRUNCATE ( a.price_now / b.pro_price, 5 )),2),0), " + |
| | | "\tTRUNCATE(c.pro_price,2),\n" + |
| | | // " IFNULL(TRUNCATE(c.pro_price * (TRUNCATE ( a.price_now / b.pro_price, 5 )),2),0), " + |
| | | "\tSYSDATE(),\n" + |
| | | "\tc.pro_check_method,\n" + |
| | | "\tIFNULL(c.pro_type,''),\n" + |
| | |
| | | "a.card_id=#{cardId}\n" + |
| | | "WHERE\n" + |
| | | "\ta.cus_id =#{idCard}\n" + |
| | | "\tAND ISNULL(a.tj_num)") |
| | | boolean updateCardIdByTjNumAndIdCard(@Param("idCard")String idCard,@Param("cardId")String cardId); |
| | | "\tAND a.tj_num = #{tjNumber}") |
| | | boolean updateCardIdByTjNumAndIdCard(@Param("idCard")String idCard,@Param("cardId")String cardId,@Param("tjNumber") String tjNumber); |
| | | |
| | | } |