| | |
| | | */ |
| | | @Select("SELECT SUM(now_price) FROM `tb_transition` WHERE `tj_num` = #{tjNum} AND `parent_pro_id` = #{parentProId}") |
| | | BigDecimal getLisPriceByTjNumAndParentProId(@Param("tjNum")String tjNum,@Param("parentProId")String parentProId); |
| | | |
| | | /** |
| | | * 根据tjNum和parentProId查询总价 |
| | | * @param tjNum |
| | | * @param parentProId |
| | | * @return |
| | | */ |
| | | @Select({ |
| | | "<script>", |
| | | "SELECT SUM(now_price) FROM `tb_transition`", |
| | | "WHERE `tj_num` = #{tjNum}", |
| | | "AND `parent_pro_id` IN", |
| | | "<foreach item='item' index='index' collection='parentProId' open='(' separator=',' close=')'>", |
| | | "#{item}", |
| | | "</foreach>", |
| | | "</script>" |
| | | }) |
| | | BigDecimal getLisPriceByTjNumAndInParentProId(@Param("tjNum") String tjNum, @Param("parentProId") List<String> parentProId); |
| | | |
| | | |
| | | |
| | | @Select("SELECT GROUP_CONCAT(c.pro_name SEPARATOR ' ; ' ) FROM tj_package_project b JOIN tj_project c ON c.pro_id=b.pro_id\n" + |
| | | "\n" + |
| | | "WHERE b.pro_id IN(SELECT DISTINCT a.parent_pro_id FROM tb_transition a WHERE a.cus_id=#{idCard} AND ISNULL(a.tj_num))" + |
| | | "AND b.pac_id=#{pacId}") |
| | | String panduantaocanshifouchongfu(@Param("idCard") String idCard,@Param("pacId") Long pacId); |
| | | } |