| | |
| | | */ |
| | | public int deleteTjOrderDetailByOrderDetailId(String orderDetailId); |
| | | |
| | | @Delete(" delete\n" + |
| | | " from tj_order_detail\n" + |
| | | " where order_id = #{orderId}") |
| | | int deleteTjOrderDetailByOrderId(String orderId); |
| | | |
| | | /** |
| | | * 批量删除体检项目明细 |
| | | * |
| | |
| | | * 查询已缴费项目 |
| | | */ |
| | | @Select("SELECT * FROM tj_project p WHERE p.pro_parent_id =0 AND p.pro_id IN (\n" + |
| | | " SELECT a.pro_id FROM tj_order_detail a WHERE !ISNULL(flowing_water_id) AND order_id=#{orderId})") |
| | | " SELECT a.pro_id FROM tj_order_detail a WHERE !ISNULL(flowing_water_id) AND order_id=#{orderId} and a.deleted=0 )") |
| | | public List<TjProject> selectTjOrderDetailListByFlowingWaterIdIsNotNull(String orderId); |
| | | |
| | | /** |
| | | * 查询未缴费项目 |
| | | */ |
| | | @Select("SELECT * FROM tj_project p WHERE p.pro_parent_id =0 AND p.pro_id IN (\n" + |
| | | " SELECT a.pro_id FROM tj_order_detail a WHERE ISNULL(flowing_water_id) AND order_id=#{orderId})") |
| | | " SELECT a.pro_id FROM tj_order_detail a WHERE ISNULL(flowing_water_id) AND order_id=#{orderId} and a.deleted=0 )") |
| | | public List<TjProject> selectTjOrderDetailListByFlowingWaterIdIsNull(String orderId); |
| | | |
| | | |
| | |
| | | "(select pro_id from tj_project where pro_parent_id=#{proParentId})") |
| | | public List<TjOrderDetail> getDetailByOrderIdAndParId(@Param("orderId")Long orderId,@Param("proParentId")Long proParentId); |
| | | |
| | | |
| | | public List<TjOrderDetail> getDetailByOrderIdAndParIds(@Param("orderId")Long orderId,@Param("proParentIds")List<Long> proParentIds); |
| | | |
| | | @Select("call pro_lis_sqdbgd(1,#{tjnumber,mode=IN})") |
| | | // @Select("select * from test_detail") |