| | |
| | | public boolean deletedTbTransitionListByCusIdAndPac(String cusId); |
| | | |
| | | //根据身份证号和套餐id查询和项目id |
| | | @Select("SELECT * FROM tb_transition WHERE cus_id=#{cusId} AND pro_id =#{proId}") |
| | | @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 DISTINCT pac_id FROM tb_transition WHERE cus_id=#{cusId} AND !ISNULL(pac_id)") |
| | |
| | | "LEFT JOIN tj_package_project b\n" + |
| | | "\tON aa.pac_id=b.pac_id WHERE b.pro_id=#{proId} ") |
| | | BigDecimal getTbTransitionPriceAndOrdPrice(@Param("cusId")String cusId,@Param("proId")Long proId); |
| | | |
| | | |
| | | @Select("SELECT SUM(c.pro_price) FROM tj_project c WHERE c.pro_id IN " + |
| | | "(SELECT b.pro_id FROM tb_transition b WHERE" + |
| | | " b.cus_id=(SELECT a.cus_idcard FROM tj_customer a " + |
| | | "WHERE a.cus_id=#{cusId}) AND b.parent_pro_id=#{proId}) ") |
| | | BigDecimal getTbTransitionDxPriceAndOrdPrice(@Param("cusId")String cusId,@Param("proId")Long proId); |
| | | } |