| | |
| | | // @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)") |
| | |
| | | "a.ord_price=a.now_price,\n" + |
| | | "a.now_price=a.ord_price*(#{discount}/10)," + |
| | | "a.tj_num=#{tjNum}"+ |
| | | " WHERE a.cus_id=#{cusId} ") |
| | | " WHERE a.cus_id=#{cusId} AND ISNULL(a.tj_num) ") |
| | | boolean updateTbTransitionPriceByCusId(@Param("cusId")String cusId,@Param("discount")BigDecimal discount,@Param("tjNum")String tjNum); |
| | | |
| | | |
| | |
| | | "\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" + |
| | |
| | | "\tAND a.tj_num = #{tjNumber}") |
| | | boolean updateCardIdByTjNumAndIdCard(@Param("idCard")String idCard,@Param("cardId")String cardId,@Param("tjNumber") String tjNumber); |
| | | |
| | | |
| | | @Delete("DELETE FROM tb_transition WHERE jxbz=#{bldh}") |
| | | void deleteTjOrderDetailByjxbz(String bldh); |
| | | } |